ActionScript 3.0 :: Stop Video From Different Loaded Swf?
Apr 25, 2011
Here s my problem, my stage contains 2 loaders, on the top there s an swf that contains buttons (my menu) and on the botom it loads in my content swf's.works out fine for fotos and so one, but im stuck when the loaded content is a video..
on my videoswf i ve got a play and a return(with stop) button, to return back to a frame to select what video should be played.. those buttons work perfectly, of course
the problem is now, that when i play the video and press a button from the upper loaded swf ( the menu) it loads another swf as usual,.. but the sound of the video still plays (so there has to be a child somewhere)..
now, how can i erase that movie instance when i cant excess it from the upper swf? is there a global value like stopEveryF*thing, or something like that ?
I am using the following actionscript 2.0 on the first frame of my flash movie to not play the .flv until its 50% loaded. This works great but the rest of the movie advances as that preloads. How do I stop the advance of the flash movie as well until the .flv loads 50%? [code]...
I have a website that plays video1 when it opens. When you navigate to next page the video stops. One of the buttons on the second page plays video2. The problem is that video 2 won't stop using the same command that made video1 stop.
I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time
I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.
I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is:
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 am developing the video player with custom video controls and I want to stop the video buffering when my video is paused. As sson as I play the video the buffering starts from the last bufferring point.
I know how to stop the timeline ( loaded_swf.stop() ) but how to completely stop and restart all actionscripting?
I have a bunch of already-made particle effect swf's and fla's that need to be converted to .mov's, ideally by saving out the frames. I can iterate through the frames by pausing the action on each particle, but it requires me to rewrite a bunch of of the effects.
Code: var loading:Loader = new Loader(); loading.load(new URLRequest("loading.swf")); placeholder.addChild(loading);
All is fine and dandy. But I would like playback of the nested swf to be stopped initially. This can be done by putting a 'stop()' call on the swf itself but I would really like to know if it's possible to do this from the parent movie?
I have a main swf into which has a number of clip instances which serve as buttons to load separate swf files dynamically. The swf I'm testing has stop(); actions on various frames, but when loaded it simply plays through to the end and loops continuously.I was able to use onLoadInit to stop the loaded swf in the first frame, but have failed at various efforts to direct the clip to play again in the manner that I desire- i.e. stopping at the various pause points until a click starts it playing again.
I have a loaded .swf that has the necesary stops to just play once and stop. It works when testing the movie, but once uploaded to the server, it loops forever, any ideas, I am using ActionScript 2.0
i have loaded one swf in current file. the loaded swf contains a video with sound. now on clicking another button of current file say "next" I want to load another swf which i did but the sound of previous swf is not stoping
was wondering if is there any way to stop sound (stream sound put on a frame as it have to be sync to an animation) from a loaded swf.I know SoundMixer but I don't want to stop sound from my main swf, that have the possibilities to load external flv.
I'm very new to flash codes and I try to develop program that works on CD I made main swf that load external swf . In main swf that is a button in the main list that lead to goto other frame load the external swf in uiload The problem when I go back to main list that external swf sound wont stop I tried this code
I'm using a video object and I want to make a stop button, yet pressing stop while the video is paused, will make it play.[code]I need to put an if function before the my_ns. pause (run_url); that asks if the movie is played or not.
I am working on a website using the [URL] tutorial for Flash CS4.
I ran into a bit of a problem, I made my flash movie and everything was good. I added a welcome video with sound that plays when the user opens the website, my only problem is that when you click on the other pages the video and sound keep playing even if you see the other page.
How do I get that video with sound to stop once you go away fro the page and go to another page?
I have created a SWF file using a class I created as the main class for the swf. this swf is a movieclip with a frame labeld "open" and a stop action at the last frame the main class of the SWF:[code]the problem is when I run the open function, after loading the swf it doesn't stop at the last frame. in fact it does not stop in any of theframes that have stop action in them. So far what i figured out is that if don't convert the content to PageSwf, and put it in a genereal variable and the run the open function it works just fine.[code]
I have a main movie which loads a movie with buttons, a button is clicked and movie goes to second frame and plays an animation then at the end of the animation it loads the next movie. ToolShopAnim01.swf does not stop on the first frame. I can not figure out why. Sometimes it works, but I can't seem to find the cause of it not stopping!
Here is the code in that frame once animation stops. stop(); _parent.startPreload("ToolShopAnim01.swf");
The code below is on the first frame of ToolShopAnim01.swf. stop(); foundational.onRelease = function() { gotoAndPlay (2); } foundational.onRollOver = function() { [Code] .....
I've use AS3 Youtube API to load youtube video into my flash file, let's call it youtube.swf
I've a main.swf and it loaded youtube.swf into it's stage.I try to unload this youtube.swf and load in another new.swf, but the sound of youtube still running.
I've insert the player.destroy() in the main.swf but it's not working too.
Any idea that I can destroy the youtube video with the script in main.swf?
I have a project in which the main swf loads another into it. The swf that gets loaded has an xml driven slideshow that runs on a timer. To view what the timer was doing in the output I traced the name of each photo as the timer fired. When I unload the swf I've noticed that though it appears to be gone from the stage the timer continues to fire and the images are listed in the output. I know that I can stop a timer by using
ActionScript Code: photoTimer.stop(); but I can't figure out how to stop the timer in an externally loaded swf. I'm using this code to remove the swf
ActionScript Code: this.mc_content_box.mc_placeholder.removeChild(contentLoader); I'm worried that the timer may be loading the photos in the background somehow and increasing the workload.
I'm loading an external swf file that has some sounds in it (to the main swf). The swf contents never leave the movie but it does get pushed to the site when it's not in view.
The user can bring it back in view by pressing on a left/right button. So when it's not in view... or tweening out of view I need the sounds to stop.
Since the loaded swf is never unloaded, what should I look at to accomplish this... communicating with the loaded swf, etc?
I have loaded a swf into a fla. The page I loaded it on has a scroll bar. I need the loaded swf to stay at the top of the page and not move when the page is scrolled. Here is my code so far.
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("calendar.swf"); myLoader.load(url); myLoader.x = 100; myLoader.y = 100;