ActionScript 2.0 :: Load/Unload .swf Movies?

Jan 30, 2003

I have a scene with 9 buttons opening each a *.swf movie example: on Home I attach the action:

on (release) {
gotoAndStop (2);
}
// other buttons goto and stop frame 3,4,5,6...

on Frame 2 there is a blank keyframe with the action:

stop ();
loadMovieNum ("home.swf", 2);
unloadMovieNum (1);
unloadMovieNum (3);
unloadMovieNum (4);

[code]....

what about a *swf movie(1.3) loaded into a *swf movie(1.2) witch is loaded into a *swf movie(1.1)?can I unload movie 1.3 separately?

View 2 Replies


Similar Posts:


Can't Unload Movies On Two Different Levels

Jun 1, 2009

I am having trouble with unload an loading movies. Basically I am loading a movie into a container, which works a charm:

[Code]....

I want to unload them both when a close button is pressed on the third loaded swf? Also, ideally I would like to add that second movie clip into a container, so I can position it correctly, but when I try copying the code I use on the first, it doesn't seem to work...is it to do with the "root" bit perhaps?

View 3 Replies

ActionScript 1/2 :: Unload All Movies?

Sep 28, 2009

i need when you click a button it unloads all movieclips on a stage

View 5 Replies

ActionScript 2.0 :: Unload Movie Stuff - Current Swf To Unload And The New One To Load Only After A Transition Occurs

Jun 16, 2003

I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?

View 2 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

ActionScript 2.0 :: Unload All Movies When Going To New Frame?

Aug 31, 2010

I have a scene with buttons that call upon outside movies to be loaded. But when I click a button to go to a new frame, the outside movies on still being seen on top. Right now my button Action is:

on (release) {
gotoAndPlay(16);
}

What should it say to unload all movies then go the 16?

View 5 Replies

ActionScript 2.0 :: Unload Movies On LeaveFrame?

Apr 16, 2006

I'm building a site for my music and stupid as I am I tried to do so in flash.
well, most part works just fine

problem: i load an mp3 with

Code:
loadMovieNum("queen/player.swf", 2);

to use my homemade player-interface

what I need now is a way to unload these movies the moment someone leaves the frame. i tried to put an

Code:
unloadMovieNum("queen/player.swf");

on every menue item but that does not seem to work (by now you probably realised I'm no flash-guru)

View 5 Replies

ActionScript 2.0 :: Unload All The Other Movies On The Stage

Jan 14, 2010

The menu uses XML to load in the menu, so all the options are dynamical. If you click a button it loads a menu into the stage, but if i click an other it overlapse the old one... So i figured i need to unload all the other movies on the stage, how do I do this?

[Code]...

View 1 Replies

Automatically Unload Movies When A New Movie Is Loaded?

Apr 30, 2009

Is there a way to automatically unload movies when a new movie is loaded? eg: 5 buttons, 5 bit of art. At the moment they overlap instead of unloading before the new one loads.

View 4 Replies

ActionScript 3.0 :: Unload FLV Movies When Clicking Home?

Sep 29, 2008

Is there a way to set up an unload FLV actionscript (AS3) on the click of a home button? So, when defining the functions of the home_btn, have it unload FLV (sound and video).

Or would it be better to put into the actionscript frame? So, when the home_btn brings the timeline to "home", the actions on that keyframe have an unload FLV.

View 3 Replies

ActionScript 2.0 :: Navigation Button To Unload Movies

Mar 15, 2006

On a particular frame I have the action
PHP Code:
loadMovie("swfs/home_text.swf", 1);
I want to add an action on a navigation button to unload that movie from main movie. I tried unloadMovie();, but no luck.

View 3 Replies

ActionScript 2.0 :: Creating Function To Unload Series Of Movies

Nov 16, 2006

I've had to create the following code to get a series if loading movies to work properly. Each loaded movie is basically a series of automatically looping images controlled by external xml. I found that without adding the unload movie on each button action the first movie loaded kept playing over any subsequent movies loaded. However its rather long winded and if the amount of movies increase it really is going to be very large. How to create an efficient funtion that does the job in a more effective way:

intro_mc.onRelease = function() {
unloadMovie ("_root.container02");
unloadMovie ("_root.container03");
unloadMovie ("_root.container04");
createEmptyMovieClip("container01", 2);
loadMovie("deaf_intro.swf", "container01");
[Code] .....

View 2 Replies

ActionScript 2.0 :: Make Movies Unload Before Movie Corresponding To Button Clicked Loads Up / Doesn't Overlay?

Jun 16, 2003

URL...How and where and what do I add to make the movies unload before only the movie corresponding to the button clicked loads up and doesn't overlay?I'm having trouble with the level and all that URL...

View 4 Replies

Actionscript 3 :: Load A Local External SWF, The Application Load-unload Infinitely?

May 6, 2011

I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.

[Code]...

View 2 Replies

ActionScript 2.0 :: Flash8 - Load, Unload And Load Again From Library?

Jul 13, 2009

I am trying to load, unload and load again the same movie clip from library.

View 7 Replies

ActionScript 2.0 :: Load, Unload And Load Again From Library?

Jul 13, 2009

I am trying to load, unload and load again the same movie clip from library. How could i do it?

View 2 Replies

IDE :: Load And Unload SWF With FLV

Jul 13, 2009

I've got a SWF with two (for now) buttons on it that each load a SWF. Each of these will load fine if they are the first one pressed. Once one is pressed there are problems. If you try to go to the next one, the new SWF covers the one currently playing, but it will not load the FLV associated with it and the audio from the previous does not stop. You can see it all here: [URL]

And here is the code on the navigation:
var Xpos:Number = 130;
var Ypos:Number = 10;
var swf:MovieClip;
var loader:Loader = new Loader();
loader.x = Xpos;
[Code] .....

View 1 Replies

ActionScript 3.0 :: How To Load/unload Swf

Jul 10, 2010

Teach me how to load and unload a swf into a main movie. And how to pass a varaiable from the main move to the loaded swf. This is a huge gap in my flash knowlege and i don't know where to begin.

View 1 Replies

ActionScript 3.0 :: To Load And Unload SWF

Sep 20, 2009

I am studying AS3 by myself, please bear with me if my explanation is not that clear.It's all about loading and unloading external swf's.My code is working perfectly though I just have some questions about load and unload issues.I have three buttons on the stage and it should load its external SWF [code]Each of the button should load it's external SWF's intro when click.My problem is that I don't know how to command the button to play the swf's outro and then load the next swf everytime I click a button.When I click homeButton_btn, the external swf should load "home.swf" and then if I am going to click page1Button_btn, the outro of "home.swf' should play and then once it reaches the end of it's timeline, it should load "page1.swf".Same goes with page2Button_btn, whatever swf that is on the stage should play it's outro first and then load "page2.swf"My questions are:

1. How can I control the external SWF to play it's outro and then load the next SWF.

2. What code should I put at the end of the external SWF's timeline.

3. Where do you think I should put the preloader? Is it better to put it at the external swf timeline? or on my main swf timeline?

4. Does load and unload of external swf also work with movieclips? Like for example I will not use a external swfs, instead I will use movieclips to load and unload its content.[code]

View 2 Replies

Actionscript 3.0 :: Load And Unload SWF's?

Feb 1, 2012

I've got a games menu and have the code to load games when a button is clicked.

So far say you want to play GameA...

The player clicks the button to Play GameA and that game is loaded. Once the player finishes the game they are shown a button to continue which unloads the game and loads the menu.

The problem is that I want a movieclip to be visible on the menu but only when GameA is completed. There is no way to back out of GameA and getting back to the menu without completing GameA. I don't know how in GameA to put that if the continue button is pressed make 'GameATick' visible. I've tried inside the code of GameA putting code like root.GameATick.visible and code like this but it doesn't recognise the MC.

View 1 Replies

IDE :: Unload External Swf And Load New One?

Jul 29, 2008

I'm creating my portfolio in Flash CS3. I have five buttons in website.swf. I also have five external swf files.If you click a button, it loads an external swf. If you click another button, it unloads the first swf and loads the next one. Is there anyway to unload it and load the next?

stop();
function loadMain(e:MouseEvent):void{
var loadMain:Loader = new Loader();

[code]....

View 14 Replies

IDE :: Load And Unload Swf W/ Flv W/out Stacking?

Nov 20, 2009

I want to load and unload EXTERNAL SWF that contains FLV on mouse click. Loading and unloading the swf is NOT the issue. The problem is how do i get the external swf which contains an flv to stop playing and stacking up on each other.

I can load and unload the swf's as long as I pause the videos before I click on another thumbnail, but if I click on another thumbnail while the external swf is playing it's flv, the previous flv keeps playing and stack up under the newly loaded swf.

[Code]...

View 3 Replies

ActionScript 3.0 :: Load Movies With It?

Nov 4, 2010

I'm trying to understand how AS3 works compared to AS2 when using navigation buttons to load external .swf files.
 
In AS2, I would have 5 menu buttons. Each button contained a script to load an external .swf file into layer 2 (on top of my existing movie). It would also contain a line of code to unload any movie that was already in Layer 2. This way new movies came in on top and were easy to identify when it came time for them to be unloaded.
 
Now in AS3, I can't find a similar way to work with external movies, since there are no longer layers. I create a movieLoader and add a child to it to load my external .swf - that works fine.But how do I tell each button to remove any children that already exist before loading the new child? The way it works now, the movies just keep piling on top of each other whenever I click a button.[code]...

View 4 Replies

ActionScript 2.0 :: Load All Movies At Once?

Mar 25, 2005

[URL]My goal is to make all animations to load at once, because right now it only loads (loadMovie) on whatever you click, therefore there is a delay between the link you click and what will open.how you could preload all animations before you enter the site, I need your help, your any tip, and your advice on what code should I use.[URL]

View 1 Replies

IDE :: Load Different Movies Into The Same Area?

Mar 18, 2009

I want to load different movies into the same area. Like the pic attached. click on the button and the related flv loads in area.

View 2 Replies

ActionScript 2.0 :: Load Several Movies After The Other?

May 6, 2002

I'm trying to load several movies after the other.

with loadMovie:

loadMovie ("test1.swf", 2);
unloadMovieNum (2);
loadMovie ("test2.swf", 3);
unloadMovieNum (3);

As soon as movie 1 is ended I want that movie2 starts.

I want that the loading of movie (test2.swf) starts when test1.swf is ended.

View 4 Replies

ActionScript 3.0 :: Load And Unload Events?

Apr 13, 2009

i want make a flash application for web in which when someone open the page which contains my flash, at that instanse a load event should be called and when someone closes the window or change the site, it unload things..means a unload event must be called...

View 1 Replies

ActionScript 3.0 :: Load And Unload External Swf?

Oct 7, 2009

I have this simple code to play and stop external swf[code]...

View 6 Replies

ActionScript 3.0 :: Load And Unload External.swf?

Oct 28, 2009

OK this should be the last of the coding to complete my AS2 to AS3 conversion of a site. The AS2 site had an external photogallery .swf that loaded from a navigation button on the main timeline. It used the loadMovie function so it loaded a photogallery on top of the main .swf in level one.
 
I also had unloadMovie,1 in all the navigation buttons so if a user was in the gallery and they clicked anywhere else in the main .swf which is all in level 0 the gallery in level 1 would be deleted.
 
In this situation the gallery that will be loaded on top of the main.swf needs to be a little smaller than the main ,swf so the navigation on the top of the main shows through. If the main.swf is 900 x 600 I would need to load the photogallery on top which would be 900 x 450 and need to use x and y coordinates so when the swf loads it loads in the right spot.

View 1 Replies







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