ActionScript 3.0 :: Can Scrub A MP3 Sound Like With A Video
Oct 21, 2009
are you able to scrub an mp3 sound with a slider bar? im looking through the Sound class but there appears to be no properties that would aid in that (like NetStream.time())
I've made a video scrubber for a couple of external F4Vs in my movie. I'm using 2 setIntervals for the scrub function: 1 to move my video playhead as the video plays, and 2 to seek to the correct video frame as the user drags the playhead.
This seems to be working ok. I wish it was a little bit more fluid in the scrub action, but I'll take what I can at this point.
But, one thing I'd like to work on is the audio hits during the video scrub. As the netstream seek is happening, the audio is hitting while I scrub. I'd like to temporarily kill the audio as I scrub, and then bring it back on at the MOUSE_UP.
I'm pretty sure that SoundMixer.stopAll(); will get rid of my audio, but what will make it come back?
I'm making a working scrubber on a video, but having problems. The scrub itself it starting out in the middle of the loadbar. I've looked everywhere, trying to find out what is wrong with it.
I need to have scrub thumbs for video player load and unload repeatedly. Something isn't getting cleared. Every time the thumbs are removed, there's a slight increase in the cpu baseline - something is piling up in memory.
I am using a flash app. I can send and receive streaming data to FMS by using this app, like the chart I attached. [URL] This app uses RTMP to access to FMS. I want to upgrade this app to display sound level of each client. Is it possible by using Actionscript and FMS? If so, which class should I use?
I have a website [URL] when I go there if I click the video archives button then play a video then click on the home or photos button or one of the alternate background buttons on the left the video goes away as it should but not always the audio (especially when I click while the video is still buffering). Is there a command I can use to kill the sound from the flvPlayback component and nothing else(I have a mp3 player there also I so I don't want to use the SoundMatrix class. btw the videos are all played on an instance of the flvPlayback component.
I have an AS3 video player I've put together using fairly standard Netstream method and it plays my flv's fine. The problem is, the sound quality varies wildly depending on who is looking at it. When I test locally, the audio in the video is fine, but on a windows machine it goes horrifically loud to the point of distortion, also the client (outside the UK) has said it sounds fine to them, so It appears to be only happening here.
I need to produce a photo review show (basically, a photo slide show), which incorporates still photography, and numerous video clips. We will have music playing in the background (not on the timeline - in the actionscript). The full presentation will run automatically - no user interaction, and therefore, I need the background music to automatically fade out when the video starts, and then fade back in when the video ends.
1. Is Flash CS5 the correct software to do this in?
2. code to tell the sound to fade out when the video starts, and fade back in when the video ends?
I attached the code here. The problem is after importing the video in the first frame while navigating the video sound is heard which means the video is still playing. How can I stop it when moving to other section. Here is code
what i am looking for is an FLV player type component (doesn't have to be an actual component) that will play SWFs. i need it to have all the same functionality (play, pause, scrub bar, etc...) it seems crazy that there isn't one out there i have even looked in the Exchange area and only seem to find ones that control FLVs or MOVs, not SWFs.
Just curious if anyone has ever discovered a way to scrub through frames one by one on the timeline? I'm not referring to action script nextFrame() kinda thing, I'm referring to the Flash editor only. Seems like a <control> + <right arrow> ought to do something like that but no luck.
I am trying to find out how to make a flash mp3 player. I have downloaded the source codes from the following website : [URL] (Slim version 0.2.3) and have made some minor modifications to fit my needs.
However, I am still clueless as to how to add a "scrub bar" (or progress bar) that would move as the file is playing and go to the location (minute) where i click on.
I want to scrub the timeline using a shortcut. What I mean is... I want to use something like the arrow keys to go forward and back and frame, each keypress taking me back and forth, without having to manually scrub. Hitting Enter and Enter again is not useful enough for what I'm seeking.
So I have a copy of the actionscript 3.0 cookbook... trying to figure out the scrubby code ...using the actionscript 3.0 cook book I come up with:
Code: Select all import flash.display.Sprite; import flash.net.NetStream;
[code]....
Returns no compiler errors.... I get the scrub bar... but it doesnt work... it just slides back and forth. I know its problaby something simple that is missing and one of you advanced flash coders are snickering and making fun of me under your breath but thats fine..
Just want to throw this out first that I am very new to ActionScript. I am trying to integrate Omniture tracking with a custom Flash player. Here is my dilema.I have this function which populates the "currentVideotime" variable with the current time in the video:
I am creating an MP3 player, populated by xml. Everything works great, except the scrub bar. I can make the bar dragable, it is keeping the length etc fine, but when drag it, it goes back to its current position as opposed to where I want it to go. I can upload source file(s) if they are needed....
Is it possible to have an instance of a movie clip symbol which has its own timeline "play" when you scrub the main timeline?You can do this with graphic symbols, but so far I've had no luck doing this with movie clips.See, I have a movie clip -- several actually -- with their own timelines which I want to place in the main timeline.When I scrub the main timeline I'd like to see them scrub as well, instead of simply seeing the first frame of the movie clip.I basically have to work blind like this.
What I'm trying to do is basically have several "slides" which are animated and then have a stop();. They'll sit there for a second and then the entire animation, or slide (movie clip) will move off the stage. I can't do this now. When I scrub the main timeline I can't tell what's happening in the movie clip. I can't tell when I can slide it off the stage.I tried to get around this by using graphic symbols with their own timeline, but adding a stop(); doesn't work in them.
I'm trying to play an FLV using the Netstream class - standard stuff, really using nothing more complex than things you can find in the help files. I've created a control panel with a bar you can use to click and drag and scrub through the video.
Exporting to Flash Player 9, it's working fine and I can scrub through the video, but only while the FLV is still loading. As soon as it hits 100% the scrubbing (using Netstream.seek()) becomes incredibly unresponsive, almost to the point of crashing the player.
I've killed all ENTER_FRAMES, removed all unnecessary listeners and nullified everything I can think of but something massively resource-intensive seems to be kicking in as soon as the load finishes.
Has anyone ever seen this? I've never come across this and can't find anything similar across assorted forums.
Code below but I don't think the mouse-move drag actions are the problem! Fine in the Flash CS4 IDE, broken in the browser.
// Drag private function dragVideo(e:MouseEvent):void { // Match the x position of the dragger to the x position of the mouse videoControls.progressBar.dragger.x = videoControls.progressBar.barInner.mouseX;
I am looking for instructions or a full fledged tutorial regarding creating a progress/scrub bar for a mulitiple scene flash project. What I am looking for is used in the following flash sample:
I want to create a movieClip Button with a script that, when I Click & Drag on it left to right, it will scrub through the timeline of another movieClip. The effect I'm going for is simular to scrubing slowly on a Quicktime Movie to see each frame of the video. Now I'm not talking about controlling an FLV or anything, I want to control the timeline of a movieClip that has been loaded onto the stage. Also, it's OK if I can only scrub forward and not backwards. This is for a flash website.
I'm looking for script or a tutorial which allows me to make a scrub bar for a regular swf file that *enters every frame* on the way forward and back. I was trying this one out ....http:[url]......... but it skips frames. I need something that will execute scripts place in certain frames along the timeline when the scrub bar is dragged.
What I have is a video that plays and has nav cuepoints which, when reached, trigger the movie to display a new frame, each frame being a "slide" of bullet points that correspond to what the person in the video is discussing. This all works well, but I the only problem is that if the viewer scrubs the video backwards or forwards the slide doesn't update to display the appropriate slide unless the user plays through the nav cuepoint again. I would like to make it so that when the user scrubs, it will check for the last nav cuepoint and jump to the appropriate movie frame/slide but without taking the video back to the last cuepoint.
I'm pretty new at actionscript 3 but I believe I need to use some combination of onScrubFinish and findNearestCuePoint, but I don't know how to implement this.I should do this? Here's my code so far:
Code: // ************************* // Stop the timeline
I'm using a flvplayback component in flash cs4. The sound from the mp4 video plays fine, but the video doesn't play. I don't know how to check the specific encoding of the mp4. I'm publishing to flash player 10 at 24fps.