IDE :: Stop External FLV From Loading On Exit Frame?
Sep 14, 2004
I am using the video component player and it is working fine using this code:
Code:
video.setMedia("elements/flv/episode_1.flv", "FLV");
The problem is, if someone is playing the video and goes to another part of the flash movie, the video keeps playing or loading in the background. The video image doesn't show, but i can hear the audio or see in the browser that it is still loading.
How can i kill the video from loading once the playhead moves from the frame that the video player is on (it is sitting on a single frame)?
View 7 Replies
Similar Posts:
Feb 8, 2008
audio of a movie playing when I exit the frame - it's probably something simple that is yet evading me ...
The FLV works just fine, auto plays when entering the frame and uses a preset skin. The frame it's playing on has AS code stop(); on it.
View 6 Replies
Nov 24, 2009
I have added 4 different sound files to 4 different frames that are navigated via buttons. The problem i have is that if you navigate to another frame while one sound file is still playing the sound file continues over the next frame and the sounds clash. What i need to do is have the sound files stop once the frame is exited so is there a simple way to do this in AS3...
View 3 Replies
Jan 22, 2009
i am building a flash web site using the goto and stop method, with each "page" of the website being a different frame. on one page i have a music player, and it all works fine, and if you press stop before leaving that "page" or frame it all works well.the problem i've run into is if you go to another frame while the music player is still playing the music continues playing and when you go back to the frame the music player is on and press stop it doesnt do anything and if you press play it will start playing the song again with both songs playing over eachother.how to stop the music from playing when you exit that frame. here's the code for the music player:
Code: Select all//Music Player
var musicReq:URLRequest;
var music:Sound = new Sound();[code]..............
View 1 Replies
Dec 6, 2009
tv.addEventListener(Event.EXIT_FRAME, movie);function movie(event:Event):void{stop("tv");
}
i have dragged a video player from another swf, when i goto the next page the video keeps playing, unless i press the pause button,
i want it to stop if i exit the current frame.
View 1 Replies
May 16, 2005
why my "nieuws.swf' is not going to frame 2 or not showing at all when i press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when i take away the first stop. I use the function playNieuws, to make it all happen.
[Code]....
View 1 Replies
Apr 10, 2009
Specifically, I am building a flash page that loads external swf files and inside some of the external swf files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf
View 1 Replies
Mar 29, 2010
I have a show reel page on my server which shows two movies. Page one has text info and two buttons to direct viewer to which ever movie they want to view. Each movie is on its own page in the flash file (page2 and page3) and is not embedded in swf (pulled from server on request).
If you click on one movie button then change your mind and go to the second one then thats ok, but if you then decide to click back to your first choice then the crap hits the fan, that first movie is still running and hasn't returned to beginning. Visually you just get the green loading bar freaking out.
So I need some code to stop the FLV player each time viewers exit from one of the movies.
Here is my actionscipt on frame1
stop();
buttonOffice.addEventListener(MouseEvent.CLICK, goOffice);
buttonWild.addEventListener(MouseEvent.CLICK, goWild);
[Code].....
View 1 Replies
Dec 2, 2009
I have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.
View 3 Replies
Mar 10, 2010
I have a scene set up where a button randomly goes to 1 of 4 frames and executes some code
here is the code:
Code:
m1.addEventListener(Event.ENTER_FRAME,animate);
function animate(evt:Event):void
{
evt.target.x += 10;
[Code]....
I need a way that will stop this from executing until a key or the mouse it pressed. I tried just a simple stop();, but this didn't work
View 2 Replies
Dec 8, 2008
I have a project that has multiple swf files for each of the sections. One of my sections has some videos in it. When I start playing a video and click on a button for the main menu (button code is on the main menu page with addChild to place them on the additional swf pages) the video keeps playing on the new page. I don't want to hear the video on the different pages. I was wandering if there is a way to stop the video player when I exit the swf? Or are there any other ways to get the video to stop when I go to a different section of my project.
View 9 Replies
Nov 10, 2010
I have an FLV video loaded as an "external video with play back component" in my Flash site. It works pretty well, even loads fast regardless its 15MB size. The video located on its labeled section which has an "X" button which closes this section and brings a user back to the page with all the video sections. However once the labeled section with the video is closed the sound is still playing.Does any one know how to make it stop if the section with the video has been exited?Then go to HOW TO section and click on the link "here" for "The Arrangement" show it will bring you to the section with the video loaded as an "external video with play back component" in my Flash site.
View 4 Replies
Sep 13, 2011
The audio continues to play no matter where I navigate on the site.
View 6 Replies
Feb 3, 2010
I would like to have a sound file play when the playhead reaches a frame and then stop when the playhead moves to another frame.
This is the code I currrently have in the frame to play my sound (sound_1) - works fine, no problems.[code]...
View 4 Replies
Jan 27, 2010
how to get a child removed from the screen when exiting a frame (my homepage).
Help...
View 1 Replies
Nov 2, 2010
I have a parent swf (parent.swf) which contains a loader (galleryLDR). The parent.swf has 2 buttons (button1 and button2) which will each load a separate swf (gallery1.swf or gallery2.swf) into the galleryLDR depending on which button you select.
If begin to load gallery1.swf, then decide to load gallery2.swf instead while gallery1.swf is still loading, the loading of gallery1.swf does not immediately terminate. Instead, gallery1.swf finishes loading, then the loader removes gallery1.swf and starts loading gallery2.swf. The code below is what I am using to attempt to cause the galleryLDR to immediately stop loading the any swf, then immediately load gallery2.swf.
how to immediately stop a loader from loading an external swf and the dynamic loading of images within the external swf? Below is what I've tried, but it doesn't work.
ActionScript Code:
if (galleryLDR != null){
galleryLDR.unloadAndStop();
}
[Code].....
View 0 Replies
Jun 19, 2009
- I need to call loadSound() multiple times, to load different mp3s time to time, all of them in streaming. But as I call it more the once on the same instance the old mp3s keeps anyway loading.. how do I stop that?
In AS3 would be a simple .close(); ... but I can't really figure out how to do that in AS2.
Here some sample code:
// Works and Plays
_global.global_music = new Sound(this);
_global.global_music.loadSound('music/song1.mp3', true);
[Code].....
View 1 Replies
Feb 2, 2012
I have a Flash GUI...I need to produce a product for delivery on CD/DVD and one of the requirements is for the application to "resume" from the spot where the user quit the application.The fact is, I found a way to do it and it was working perfectly...but once I edited the FLA and republished, the SO only resumed up to a certain point...and the only thing I added to the file was AS to disable the primary navigation buttons at certain locations.[code]
View 16 Replies
Mar 29, 2010
How can I play a play a different video when exiting a frame?
View 1 Replies
Mar 8, 2009
I'm using Flash CS4, and all the actionscript so far has been Actionscript 3. I have some videos in my project -- this is being exported as an exe for cd distribution, rather than a website thing. So each video is wrapped inside a movie clip, which is wrapped inside another movie clip that deals with playing/pausing it, which is wrapped inside another movie clip that gives scrollbox functionality, which is placed on the stage. On the main timeline is a keyframe every frame, each of which has a stop() action, so that each frame is essentially a different "page" and you can navigate between these with menu buttons which call gotoAndStop().
The problem is, if the video is playing when you click a button to navigate to another frame, it continues playing even though it's no longer on the screen. You can hear the audio in the background. In addition to this, if you navigate to a frame four frames ahead, and each of the frames in between has a video, all those videos will start playing in the background as well.
I want to make sure that when you are on a particular frame the only video which will play is the video on that frame. If there is no video on that frame, no video should play. I was hoping that I could just catch the moment when you move away from the frame and call stop() on the video there, but I can't seem to catch that point. The FRAME_EXIT event seems to catch the end of the render loop or something so that it happens every time it draws the frame, rather than when you actually leave the frame and move to another one. In addition, I'm not sure catching the point where you move past a frame would help the problem with videos from in-between frames being started, as those frames are never entered so presumably never exited either.
View 2 Replies
Jul 13, 2010
When a button is clicked on the flash site im creating, which links to the next page, ie about/contact/portfolio etc... I need the current frame movieclip to fadeout, then advance to the next page. This is my code so far
[Code]...
View 13 Replies
Dec 26, 2010
I have an external Gallery that is called within my fla file. My problem is that every time I try to go to my home page or any other page for that matter the gallery doesn't go away. I can access my other pages "frames" and everything works fine, but my gallery blocks some of the page. How can I exit out of my gallery when I go to another page??
View 28 Replies
Jan 17, 2007
i have just started to use flash and i am in the process of making a game but im stuck on putting actionscript into one part. i have a character and i want the game to go to the next level (next frame) when he hit the exit door. i know this might sound stupid but i have only just started.
View 1 Replies
Oct 17, 2009
I frequently see the usage of ENTER_FRAME and EXIT_FRAME event types in AS3 code. I can even use the first event type just blindly to get certain things done. But I want to clear my concepts on these very fundamental things. My qeries are as below:When do the above 2 event types take place - I mean what triggers them?Does ENTER_FRAME trigger at the rate of FPS? If a MovieClip spans over 48 frames and the FPS = 24 - does this mean the ENTER_FRAME will occur 48 times for the full life-span of the MovieClip?Regarding the EXIT_FRAME, I could not find any example or description yet.
View 2 Replies
Feb 4, 2009
I have my main swf that contains a movieclip that loads an external swf (This works fine)
In this external swf, I would like to place a button that exits this external swf, and goes to a specific place on my original swf time line..
View 3 Replies
May 14, 2010
I've got a .fla with different buttons. when I klick them different loaders loads ext swfs.
Code:
var myloader4:Loader;
this.revista.addEventListener(MouseEvent.CLICK, movie4Click);
function movie4Click(event:MouseEvent):void {
gotoAndStop("white");
var myrequest:URLRequest=new URLRequest("rec.swf");
myloader4 = new Loader();
myloader4.load(myrequest);
stage.addChild(myloader4);
Underneath the loaders on the label "white" I have to buttons, next and prev. I want to, when I press them, to go to the next frame of the loaded swf. I've got 6 diff ones. (myloader1-myloader6).
View 1 Replies
Sep 13, 2009
I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.
View 2 Replies
Aug 11, 2010
I am loading external file swf at frame 30 (as one of my pages). When I click button at example 50 or 61 (another pages) how do I remove the loader. I've got lots of errors.
View 1 Replies
Sep 28, 2003
Is it possible to load an external swf and specify a frame within that swf to jump to? and can you jump to an X Y coordinate as well?
View 3 Replies
Sep 21, 2011
Flash exit button on external swf
View 3 Replies