ActionScript 3.0 :: Audio Progress Bar Scrubbing/slider?

Jan 31, 2012

I have an audio progress bar that I have created. It uses the following code:

Code:
import flash.events.Event;progress_bar_inst.tb_mc.scaleX = 0;
addEventListener(Event.ENTER_FRAME,EnterFrame);
function EnterFrame(evt:Event):void {
progress_bar_inst.tb_mc.scaleX = instructor_audio.currentFrame/instructor_audio.totalFrames;
}

It works great! But I would like to add the ability to "scrub" or use a slider to move forward and back in the audio clip. (like it does with FLV Playback component) I have no idea how to do this. DOes anyone have any info on this, or is there an easy way to add to my existing code to add this functionality?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Possible To Have Audio 'scrubbing' That Allows To Hear Audio As Scrub?

Jul 21, 2009

I was wondering if anyone could help me get some information on audio limitations in flash. Is it possible to have audio "scrubbing" that allows you to hear the audio as you scrub? Currently the only way I know to do this is by having it on the timeline, and set to stream. Using this method seems to be causing more issues than it solves. Preferably I would just like to load the audio in dynamically and then scrub through it. Is it possible to use that method and then still retain the ability to hear it as you scrub through it?I am having with the audio on the timeline. The main issue with this is that I have to manually add frames to the timeline, in addition to that I can not dynamically load the audio through xml. Well not that I know of.I think the best route is probably loading in the audio dynamically.

View 0 Replies

Professional :: Scrubbing Timeline With Slider - How To Smooth It Out

Sep 2, 2010

I've created a simple slider to scrub through some frames of a MC named states. Each frame has the same MC (states) just in a different color. I've setup the slider using

[Code]....

View 6 Replies

Create A Progress Bar (248px Wide) With A Slider That Moves According To The Movie Progress

Jun 4, 2010

I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress. I'm doing that next way:Calculating the distance for the slider to be moved each frame (248 / 1375) On each ENTER_FRAME moving the slider for the calculated distance The problem is - the movie ends far before the slider reaches the end of the progress bar.

I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way. My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?

View 2 Replies

ActionScript 2.0 :: Audio Playhead For Scrubbing Along Timeline?

May 31, 2010

I'm working on an audio player with a scrubbable playhead, per Kenny Bellew's outstanding tutorials [URL]In order to learn the mechanics and test drive it, I was able to create a fully functional model in its own movie. Now I'm trying to apply it to an MC nested in a larger project and I'm having trouble.The main website (w/o the audio part installed) is [URL]A smaller version that only has the part I'm working on (for this question) is [URL]The songloading and play/pause/stop are working fine. (I'll be adding a song loading preloader later--the songs are dynamically loaded), but I can NOT get the playhead working completely. It will track the progress of the song, but if dragged, the song stops, the playhead snaps back into its original place, and the song stops for good (until re-loaded).

I'm just calling something incorrectly--the whole Audio section is in the _root.Audio MC, and the songs are loaded in to audioSong.

The code for the drag head:

------
onClipEvent (load) {
startPosition= _root.Audio.hslider._x; // hslider is the knob.
left = _root.Audio.hslider._x;
top = _root.Audio.hslider._y;

[code]...

View 3 Replies

Professional :: Scrubbing Animation Frames - Coordination With Audio?

Nov 25, 2010

If I have a 2 minute audio, and I want to scrub the animation frames around the 1 minute point, to see how they coordinate with the audio, is that possible?

View 3 Replies

IDE :: Progress Bar For An Audio Player Streaming Audio From Wowza Server?

Feb 24, 2011

I am new in action script 3.0. i am trying to build an audio player which will stream audio(mp3 etc.) from wowza media server. the player needs to have a play button, stop/pause button, a play progressbar and a volume scroll bar. i am using NetStream object to paly the audio

View 1 Replies

ActionScript 3.0 :: Create A Progress Slider For A Control Window

Oct 18, 2010

I am totally new and beginning my journey in actionscript 3. I want to create a progress slider for a control window where I have play pause btns and i am loading external swf on the stage and controlling it. so I want to create a progress slider for that externally loaded swf which slides as the swf proceeds and stops after it finishes. It wll be more efficient if it shows tha timing of proceeding swf.

View 8 Replies

ActionScript 3.0 :: Can't Add Audio Player Progress Bar

Jan 18, 2010

I'd like to add a progress bar to my flash audio player.Right now you press a button, a certain sound loads and then plays.[code]...

Why can't I access the properties of my Sound?

View 3 Replies

ActionScript 3.0 :: Progress Bar For Embedded Audio?

Sep 23, 2011

Is there a way to create a progress bar for embedded audio, or is there a component for it already? I have multiple embedded (in the timeline) audio files (MP3), and I have successfully scripted a play pause button for them, but I would also like a progress bar showing you where you are in the track. It doesn't need to be seekable by dragging. Just a visual indicator of where you are.

View 9 Replies

ActionScript 2.0 :: Streaming Audio With Progress Bar?

Feb 22, 2003

I wanna be able to load a .mp3 file outsideside of the library (to conserve file size) which i figured out but i am having trouble with makin a progress bar for the progress of the loading mp3....

View 1 Replies

ActionScript 2.0 :: Progress Bar For Streaming Audio?

May 8, 2008

The problem is that the progress bar is not working correctly while the music is streaming (not completely downloaded to cache).I can understand why it is so.... (sound.duration is changing untill download is complete)I have a simple progress bar... no masking etc:- .. just using the good old "_xscale"

View 3 Replies

ActionScript 2.0 :: Duration Slider To Audio Controller?

Sep 15, 2003

Trying to add a duration slider to a play and stop controller similar to what you see when viewing a .wav or .aiff file in a browser. I would like the viewer to be able to go backward or forward during a speech. Final delivery is in Dreamweaver as a .swf.

View 2 Replies

ActionScript 2.0 :: Volume Slider Won't Work Since Changed Audio To Streaming?

Jun 20, 2010

it worked fine when i had the audio within the swf.slider:

slider_1.onPress = function(){
this.startDrag(true, groove_1._x -8, groove_1._y, groove_1._x -78, groove_1._y);
}
slider_1.onRelease = function(){

[code]....

i thought that in this method i had named the sound object foffMusic (streaming the file ftomm.mp3). the sound plays fine but ive gone through alot of trial and error and trawled every forum for the solution bu i can't get it to work!

View 3 Replies

ActionScript 2.0 :: Tracking A Slider's Movement While A Dynamic Piece Of Media Is Playing (audio - Video)

Mar 6, 2007

tracking a slider's movement while a dynamic piece of media is playing (audio, video) and recording the time and new location of the slider. So if you were watching a 30 sec video clip, and you were rating it in real time, how to record the position of the slider and the time that you moved it? Ugh, if I should explain this better,

View 3 Replies

IDE :: Scrubbing In Motion Editor?

Jun 30, 2009

iam new to Flash CS4 and for some reason i cant scrub the playhead when in the motion editor window? if i press on the playhead it only moves to next dot on motion timeline, like a snap motion.

View 1 Replies

Flash - FLV Player To Allow Scrubbing Forward?

Jan 6, 2010

Just wondering what everyone's thoughts are on playing FLV video on a website. I'm currently using JW player and it works great. The only problem is people can't scrub forward past what is cached. For instance, I want to click on the video and immediately click half way through it to start playing in the middle of the video. Can this be done with JW player, or do you suggest another FLV player?

View 1 Replies

Flash 10 :: Hear Sound While Scrubbing CS5?

Feb 16, 2012

having a really hard question I need answered. How do you hear sound while scrubbing in Flash CS5?

View 0 Replies

Flex :: User GetRepeaterItem To Set The Progress Of A Progress Bar?

Mar 2, 2011

I have a progress bar inside a repeater and therefore I will need to use getRepeaterItem to set it's progress as suggested in this question.

How can I do that such that the value of progress may be taken from repMonitor.currentItem.threatLevel?

<mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >
<mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">

[Code]....

View 1 Replies

Professional :: Flash CS4 Crashing When Scrubbing Playhead Or Using Certain Tools

Nov 17, 2010

I am currently having the unfortunate experience of learning Flash Pro as part of my degree program at school. I have been having a problem with the program crashing repeatedly. I have CS4 Web Premium, an educational discount edition, and am using it on an HP pc with an AMD Athlon and Nvidia v-card. I have had problems with it crashing on this computer when using tools such as the deco-tool and sometimes when transforming something. The real problem is when I try to use one of the Dell pc's at school to work on a file I have created at home on the HP. On 4 different machines at school Flash will crash when working on one of these files, especially when scrubbing the playhead on the timeline. The program will crash over and over, to the point where I can't really work on these files at school, which is a huge waste of time.

View 4 Replies

ActionScript 3.0 :: Constraining Mouse Cursor When Scrubbing Video?

Jun 21, 2011

Basically, I have a custom "scrub bar" graphic in which the user can drag a slider forward or backward in time to scrub/seek to a certain point in an external F4V.I have my slider constrained by a rectangle of 1 pixel in height. But when I click with mouse to scrub, my mouse cursor tends to move off of the slider graphic, causing problems with my MOUSE_UP event. (It can't trigger when my mouse is not over the target object).Is there a way like "new Rectangle(32,713,944.1)" to keep the mouse from moving in the Y-axis as the user drags the slider left and right to scrub video?

View 3 Replies

ActionScript 3.0 :: FLV Encoding - Proper Keyframe Placement For Scrubbing

Aug 28, 2009

Any suggestions on using the CS4 Media encoder for FLV's to allow proper key frame placement for scrubbing, without sacrificing size of the out putted flv?

View 5 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

ActionScript 3.0 :: ENTER_FRAME Event Produces Choppy Video Scrubbing

Mar 25, 2010

This code works fine if the timeline is moving forward through the .flv file. However, the going in reverse produces choppy results. The choppyness seems uniform, as in, it's always choppy and always the same intensity. [code]...

View 3 Replies

Flash - Create Image Slider Like Nivo Slider With Builder

Jan 10, 2012

I'd like to build image slider like Nivo slider with Adobe Flash Builder.

i'd like to have image controls, image titles displayed above the image(like layers in flash). i'd like to read the data from xml.

i'd like to have nice transitions between images.

mayebe u can provide tutorial or source code.

View 1 Replies

Actionscript 2.0 :: Can't Get Zoom Slider To Work With The Position Of The Slider

Mar 25, 2010

What I have is a map that you can click on points and it will zoom in, you can also click on a "plus/minus" buttons to zoom in and out (I even have the mouse wheel zooming in and out). The client wanted me to add a "zoom slider bar" to it so you know you could move it up and down to scale it. Everything is working except the slider, I can't seem to get it to work with the position of the slider. All of the zoom functionality is there but the slider is killing me.

I am putting up the fla file since there is a lot of code in there and I didn't want to put it all in the forum. if you look in the fla in frame ten on line 726 you can find the function that is supposed to handle the zooming when you move the slider. Up on line 74 you can find the slider onPress and onRelease functions, but those I believe should be fine.

View 2 Replies

ActionScript 2.0 :: Slider To Drag Another Slider On Collision?

Dec 1, 2009

I am trying to create a basic timeline, similar to the timeline we all use in flash (see attached).

I have a playhead slider, which when dragged, just drags within its startDrag() limits.

I also have horizontal window scroller which also when dragged, just drags within its startDrag() limits.

I am trying to work out how to get the horizontal window scroller to scroll when the playhead slider hits the left or right edge. I am using hittest for this collision.

I have the playHeadSlider scrolling along the top. When playHeadSlider collides with hittestThing I want mcContents to then move.

It kind of works.. mcContents moves when the playHeadSlider is in collision with the hittestThing.. but it just moves rather than 'drags' across. I have it set up so that mcContents is twice the width (approx) of mcScrollWindow.

I need to somehow update what I have so that if the playHeadSlider collides with hittestThing on the right, mcContents only moves to the right and if playHeadSlider collides with hittestThing2 on the left, mcContents only moves to the left.

View 0 Replies

ActionScript 3.0 :: Make A Circle Slide ( Slider That On The Shape Of Circle Instead Of Vertical And Horizontal Slider)?

Jul 3, 2009

I'd like to make a circle slide ( Slider that on the shape of circle instead of vertical and horizontal Slider) like this one:

[URL]

Is there a ready Component on the web.

View 0 Replies

Media Server :: Scrubbing Server-side Generated Playlist?

Jun 18, 2010

I am generating a playlist server-side but am having problems when I try and scrub it on the client-side.Here's the contents of main.asc of my application:
 
application.onConnect = function(client) {
this.testStream = Stream.get("mp4:testplaylist");
this.testStream.play("mp4:test.f4v", 9, 16);
this.testStream.play("mp4:test2.f4v", 11, 10, false);

[code]...
 
The client calls "getStreamLength" to get the length of the sequence from the server; I do this in order to set the length of the scrub bar correctly.The problem is when I try and scrub - both forwards and backwards - it doesn't work; the stream just pauses then picks up where it last stopped, regardless of the position of the scrub bar.Is it possible to scrub a server-side generated playlist using Flash Media Server?I am using both Flash Player 10 and 10.1 and version 3.5.3 of Flash Media Server.

View 3 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved