ActionScript 2.0 :: Pause A Video Once A Swf Is Loaded On Top?
Oct 2, 2009
I have a main video clip being played right when you enter a page. On that page are multiple thumbnails that load up another swf on a new level and play that video. Well if that happens - the main video continues playing. I want the main video to just pause once they click on a thumbnail. And once they close the loaded swf - to be able to play that main video again. Right now - I'm able to click on the thumb to pause the video which is great. But if I unpause the main video by clicking it, all the code seems to be ineffective anymore. [code]...
I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
I am externally loading an flv into an empty movie clip container using loadMovie into a main swf. The flv is in a standard flv playback component and works fine on its own. But what I'd like to be able to do is pause the flv when any of the buttons in the main swf are pressed.
I'm a PHP guy and know very little about Flash... I've got a few videos that I've run through Adobe Media Encoder, uploaded to my server, and imported into Flash to add a preset playback control skin. They're working well enough, but I would like them to start in the paused state when the page loads rather than just playing right away.
I have a movie, called box.swf that I'm loading into controller.swf.I have two buttons on the stage called pause_btn and play_btn that I'd like to use to control the timeline of box.swf.[code]
I have a slideshow done in Flash. I have a main movie that has a slide on each frame of the movie, with navigation buttons. On each frame, I have AS2 that loads a different SWF per frame. The AS I'm using is:
loadMovie("Data/2.swf", "container"); stop();
The number "2" goes up/down based on the slide. I want a hard-wired number versus the frame number because my client is deleting/adding slides and it's easier to keep track of it hard-wired.
Right now, each slide I'm loading has its own play/pause toggle button that is this AS2:
on(release){ play(); }
So what I'd like to do is put the play/pause toggle in the main SWF (and put a graphic footer under all the buttons). So how do I tell the play/pause buttons to play/pause the MC that is containing the slide SWFs?
How does one control a loaded movieclip? After a series of SWFs are loaded they play automatically. I want them to play from the beginning each time they're displayed.
I already have an mp3 player I've built that uses dynamic text (song title and track info) and variables to load an mp3 dynamically through .php & FlashVars. I only need 1 mp3 playing at one time and so this method works great for me. This way I can update it without going into Flash at all (but XML is overkill so no need for that either). Thing is, I would like to have a play and stop button that actually stops and starts the track where it last was stopped / paused, rather than resuming from the beginning. I also have built in a volume slider.
Here is the Actionscript I've been using: On Volume Slider MC [mySlider]: Code: onClipEvent (load) { mySound = new Sound(); mySound.loadSound(mp3Title,true); } onClipEvent (enterFrame) { mySound.setVolume(_root.volume); [Code] .....
It Works ok, but like I said...stop does not "pause" the mp3 but rather stops it irrecoverably. Play starts from the beginning which I would like to avoid.
i have a movieclip on timeline, and then i addchild ( a container ) to load an external swf movie on it. Then i want to have a button so i can pause the loaded swf movie.
And my problem is, i can access to it, i can change the properties like the alpha, but i can just stop or pause it.
i've been search and testing many script, but i still can make it work it just a simple task right? i can do it quickly with AS2
I'm working on a simple Video player that plays upon click. Than, once the movie is done playing, the oplay button re-appears and you can re-play the movie.I'm trying to add a Pause button when a user puts a mouse over a movie.. So, the pause button should appear once the Mouse is over the Movie and dis appear when the MOuse is moved..Below is the script so far:
import fl.video.*;import flash.display.MovieClip; var myVideo:FLVPlayback = new FLVPlayback();var playbtn:playBtn = new playBtn();var staticpic:staticPic = new staticPic();
loaded an external swf (with audio) in a conteiner swf.
From the cointeiner I want to controll audio pause/resume.
I know the procedure to do this with a mp3 file, but I can't intercept the sound channel of my child swf...
this should be the code to obtain the sound position:
var soundChannel:SoundChannel = new SoundChannel(); var sound:Sound = new Sound(new URLRequest("SOUND.mp3")); soundChannel = sound.play(); pausePoint = soundChannel.position;
But I haven't the mp3 path.... My mp3 is embedded into swf child. And I can't put actionscript function in child, because is haven't source fla.
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. know a code that would trigger the video to pause when clicked anywhere on the video screen? Right now the videos being tested at this link -[URL]I don't currently have the video linked up to lightbox, just a link above the video to expand.With FLVPlayback,this is my current code (it's currently coded and set up so the video autoplay starts at 52 seconds)...
I have a video looping via AS3; only thing is the video slightly pauses at the end before it loops. I have tried the following, but no matter which method, I get that pause:
I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
I make alot of videos and far from pro at AS3. My employer wants to be able to pause the video during production and insert comments at a specific frame. Can this be accomplished with que points or utilizing the progress bar somehow?
We have an externally linked ON2 video on a home page, and the client wants the user to be able to pause the video, go to another page and be able to hit play and pick up where they left off.
The Flash site I am building includes an FLV video which is embedded into a SWF (SWF1), which contains the video control components. SWF1 is in turn loaded into another SWF (SWF2) after SWF2 is launched. After I leave the part of SWF2 which contains the video, the video and audio continue to play. You can still hear the audio after you have moved away from the SWF1 video.The SWF1 video is part of a set of mostly PNG images that slide like a slide show along the X axis. When I hit the forward arrow, the SWF1 video slides out to the left and a loaded PNG image slides in from the right and into view. But you still hear the audio from SWF1 and the video continues to play.All of the loaded SWF video (there are three total) and PNG images are loaded into the same movie clip.Question: How can I tell the FLV video embedded in SWF1 to stop playing once SWF1 has moved out of view? I would like SWF2 to tell SWF1 to stop the video.
I've imported a flv video (flvPlayer, instance name) to loop with the following script: var myLis:Object = new Object; myLis.complete = function(){ flvPlayer.play(); } flvPlayer.addEventListener("complete", myLis); I would like the flv to pause for 3 seconds before looping again...
I'm new to Flash, and obviously AS3 (or AS in general) and am currently making a menu in which I have 2 video files.I want people to be able to play and pause (and stop) these videos.I currently have them playing and pausing using the FLVplayback method with no skins (have to make my own buttons). Though this is working I really need the video files to be embedded into the .swf/.fla as apposed to an external video.I have imported the videos into the library but they're not in use atm.
Is it possible to tell FLVplayback to use a embedded file from the library?If not is it possible to make a embedded video play/pause/stop in AS3 any other way? I couldn't seem to get it to which is why I went to FLVplayback method.
i want to import a .wmv file in flash. when a play button is pressed, that video file should be played. but i want the video to be paused when (preferrably) the same play button is pressed again.
so:
-how to pause an imported video file?
-how to control both play and pause of the video with the same button?
I am making a swf file than can receive function call from c#. Right now, it receives "StartVideo" and starts the video really well without any problem. But, if it receives "PlayVideo" and "PauseVideo", it just restarts the video from the first frame. What did I miss??
I am trying to load a movieclip and have it be controlled by a play and a pause button. The load works good and the code for the play/pause works.
I need the "test2" file to load the "ball_mc" file and then I should be able to play and pause the ball as it runs across the screen. I think I need it to be a swf file also, but Flashkit won't let me upload that type of file.
Pause and Resume external SWF sound filesI have this code that plays the sound through linkage. It reside in scene1.fla -> scene1.swf.
var mc:MovieClip = this.createEmptyMovieClip("mc",1);var myLoop:Sound = new Sound(mc);myLoop.attachSound("bg_sound");myLoopVolume=0;myLoop.setVolume(myLoopVolume); mc.onEnterFrame = function () { if (fadeIn01==1) {