ActionScript 1/2 :: Unload Movie On A Different Timeline?

Feb 26, 2010

I have a main SWF that loads in an external SWF(2) which has a button that when clicked loads in another external SWF(3). (we'll call them SWF 2 and 3) what I was finding was when I clicked the button on the external SWF (2), when SWF (3) loaded in the contents of the main SWF and SWF (2) were still visible . However I managed to remove the contents of SWF(2) by doing unload movie easily as they run on the same timeline...the problem is I don't know how to unload movie on the main SWF when SWF(3) is being fired because it doesn't run on the same timeline as the main SWF. Surely it is somehow accessible since it is visible in the background ...even if they aren't on the same timeline? how would i get the movie to unload in the main SWF?

View 19 Replies


Similar Posts:


ActionScript 2.0 :: Load/unload Movie-goto Next Frame On Timeline?

Dec 6, 2007

I have a main flash file that I load various external swf files into. On the first frame of the timeline, there is an intro swf loaded that basically welcoming the viewer to the site. What I want to do is have this load, play and unload and then go to frame two of the timeline where the main home section of the flash site is located.One my first frame on the timeline I have:loadMovieNum("/IntroMovie.swf",1);stop();n the external IntroMovie, I have unloadMovie (1); so the movie will play and then unload itself. What I can't figure out is how to get the timeline to go to the next frame once this movie is finished playing and has unloadedIf I don't put the stop in there, it simply skips this movie and goes to the next frame on the timeline and loads the home movie swf file.Is there a way to use some sort of if statement, that if the movie is unloaded, goto the next frame, sort of like this:if(code to verify if movie is unloaded);gotoAndStop(2);

View 4 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 :: CS4 - Can't Unload FLV Called To Timeline

Jun 5, 2010

I'm working on a flash music site ([URL]) and am trying to integrate a 480x320 .flv into a frame loop in the "game" section of the main movie. I first tried loading a .swf version of the same file but I couldn't get the file to unload and it really slowed down the performance of the main movie. That was Thursday. So I tried to use quicktime but flash CS4 no longer accepts it. All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files. With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.

So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked. Here's the current problem: I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene. I tried online to find a way to unload the .flv but none of them worked - wen thru pages and pages of google searches but the suggested coding did not prevent the .flv from unloading.

[Code],,,,

View 21 Replies

ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 3.0 :: Unload Loader And Continue On Timeline?

Apr 28, 2009

I have used the loader class to play an external .swf file. When it is finished I need to stop it and continue to the next frame in the timeline of the original movie. I can load it and unload it, but how to I unload it after it has played and continue to frame 2 of the timeline?
 
var myLoader:Loader = new Loader();myLoader.x = 150;myLoader.y = 75;
myLoader.load(new URLRequest("movie.swf"));addChild(myLoader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete) ; 
function onComplete(e:Event):void{    myLoader.unload(); this.gotoAndPlay(2);}
 
With this code, it skips the loaded movie and goes straight to frame 2.

View 6 Replies

ActionScript 3.0 :: Can't Unload FLV Called To Timeline Loop

Jun 5, 2010

So I tried to use quicktime but flash CS4 no longer accepts it. All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files.

With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked.

I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene.

I tried online to find a way to unload the .flv but none of them worked - went thru pages of google searches but the suggested coding did not prevent the .flv from unloading.

var vid:Video = new Video(480, 320);
vid.x=231;
vid.y=457;

[code]....

View 0 Replies

ActionScript 3.0 :: Can't Unload FLV Called To Timeline Loop Using Navigation

Jun 6, 2010

I'm working on a flash music site [URL] and am trying  to integrate a 480x320 .flv into a frame loop in the "game" section of the main movie.
 
I first tried loading a .swf version of the same file but I couldn't get it to unload (video and audio) and it really slowed down the performance of the main movie.
 
That was Thursday.
 
So I tried to use quicktime but flash CS4 no longer accepts it. 
 
All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files.
 
With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.
 
So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked.
 
Here's the current problem:

I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene.
 
I tried online to find a way to unload the .flv but none of them worked - went thru pages of google searches but the suggested coding did not prevent the .flv from unloading.
 
here's my code which is in the actions layer at the beginning of the  "game" scene:
 
var vid:Video = new Video(480, 320);
vid.x=231;
vid.y=457;
addChild(vid);

[Code].....
 
It is very frustrating that Adobe makes it incredibly difficult for an intermediate user to do such a basic thing - load a swf or flv into an fla and have it play, then stop playing when someone navigates away.

View 4 Replies

ActionScript 2.0 :: Load A Movie From A Specific Frame And Unload A Previously Loaded Movie?

Mar 28, 2010

I am making a flipping page book in flash and have had to create sections in different movies because it kept crashing when i tried to have all the pages in the same movie. I have 3 movies 'page flip4', 'pageflip4-2', and 'page flip 4-3' . I have used the code below to go (flip bacwards) from 'page flip4-2' to the frame label ''backflip'' in 'page flip4'..This works fine

Code:
on (press) {
loadMovieNum("page flip4.swf", 1);
}

[Code].....

View 0 Replies

ActionScript 1/2 :: Unload Parent Movie After OnloadInit Of Child Movie?

Jul 30, 2010

I am loading external swf's into a main load.swf, using a Moviecliploader object. What I basically want to do is that, after an external movie, say home.swf, loads another external swf, say about.swf, home.swf should be unloaded.
 
home.swf is loading about.swf into the _root.mc_holder, which is placed inside load.swf. I want all external files to be placed within this holder. Now this is working with some files, but not with others. My standard code within all files is this:
 
//code within home.swf to load about.swf
var loader:MovieClipLoader = new MovieClipLoader();var ldrlistener = new Object();loader.addListener(ldrlistener);ldrlistener.onLoadStart =

[Code]......

View 3 Replies

ActionScript 2.0 :: Unload Movie For External Loaded Movie

Jul 31, 2010

i want to make an presentation,, for which.. at frame i click a button on frame 9 it goes to frame 10 and plays.. like my script on frame 10 is below

[Code]....

and when i click another button to go frame 1 from the same page at 10,, placed beside the loading external swf ,, it goes,, but the loaded external swf file is not going ,, or the external file not cleaning,, not removing.

View 5 Replies

ActionScript 2.0 :: UNLOAD The CURRENT MOVIE First Before Loading Another MOVIE

Apr 15, 2003

I have a button ( 3 buttons ) and each button is assigned to Load a movie. When you click one of the buttons, the LoadMovie on Level 1 is good. Now here is my problem, how will I unload the current movie before Loading the next one. I want to UNLOAD the CURRENT MOVIE first before loading another MOVIE.

View 2 Replies

ActionScript 2.0 :: Unload Movie Then Load Another Movie Same Button?

Jun 5, 2004

can I script a buttons to unload a movie clip or swf, then load a different movie?

View 6 Replies

IDE :: Timeline Inside These Movie Clips And The Timeline On The Main Scene Have To Correspond To Work

Jun 10, 2009

why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]

View 1 Replies

ActionScript 3.0 :: Loading Main Timeline Variable From Movie Clip Timeline?

Feb 2, 2010

I cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.

[Code]...

View 2 Replies

ActionScript 3.0 :: Movie Clip Timeline To Main Timeline Coding?

Oct 9, 2009

I have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.

Here is what I'm trying but it is not working:

btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}

this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.

View 9 Replies

Unload Movie Not Working?

May 19, 2010

im having troubles unloading a swf file that is 2 levels above my main movie.Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):

digitalbut.onRelease = function() {
disableBtns();
_root.createEmptyMovieClip("container",1);

[code]...

This all works....Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:

Dior_hit.onRelease = function() {
createEmptyMovieClip("container",1);
loadMovie("Digital/Dior/Dior.swf","container");

[code]...

This works also....but I come into problems when I want to create a button in this third swf file which then closes this Dior.swf so you are left with the bottom two still showing. I already have a close button on the Digital.swf which works a charm to get you back to the main movie and the code for this is:

on (release) {
_root.container.unloadMovie()
unloadMovieNum(2);

[code]...

how I can close this third swf to still show the two below?? I have tried so many options but none seem to work!

View 2 Replies

IDE :: Unload A Movie From With In The UI Loader?

Nov 6, 2009

How can I unload a movie from with in the UI Loader. I have loaded a movie into my UI Loader and there is a go back button And I simply want to unload that movie and return to normal.

View 2 Replies

ActionScript 3.0 :: Unload Movie Without Closing Swf's

Jun 11, 2009

I am again trying to figure something out. I have to load an experimental interface into my website for my class and I can load it using

[Code]...

However, I can not make it unload without closing both swf's. I use on (release) {

[Code]...

View 1 Replies

ActionScript 3.0 :: Unload A Movie From With In UI Loader?

Nov 6, 2009

How can I unload a movie from with in the UI Loader.

I have loaded a movie into my UI Loader and there is a go back button And I simply want to unload that movie and return to normal.

View 2 Replies

ActionScript 2.0 :: Unload A .swf From A Different Movie Level?

Apr 18, 2010

I have an index.swf that loads the following movies.

loadMovieNum("home.swf", 4);
loadMovieNum("home_2.swf", 53);
loadMovieNum("help.swf", 50);
loadMovieNum("glossary.swf", 26);
loadMovieNum("Resources.swf", 27);

Is there a way to unload the home_2.swf from the index page when a button is clicked on the home.swf?

Home_2.swf is sort of a splash animation that plays over the navigation panel and then sits on the side so when any of the nav buttons are clicked on in level 4 .swf I want the level 53 .swf to unload.

View 2 Replies

ActionScript 3.0 :: Unload Movie From Inside

May 24, 2009

im using addChild to load a movieclip after a button click. It loads to the middle of the movie clip where there's a stop action and a close button, whick jumps to the next frame to play out the movie clip, but then it just starts over.

View 2 Replies

ActionScript 2.0 :: Unload Movie With FLVPlayback In It?

Jun 9, 2011

I don't dev in Flash too much anymore, and I'm not up on AS3. Therefore, I developed this little project in AS2 (CS5.5) and seems that I've opened a can of worms.

I've got a launcher movie on _level1 that loads movies onto _level2 based on the button that is clicked. That all works well and good, but I can't figure out how to unload the movie when it finishes playing, so as to return to the menu.

Some of the FLVs that are being loaded were too big to add to a timeline. So I had to use FLVPlayback to load the FLVs into my level 2 movie. I don't know how to tell FLVPlayback to close its SWF when playback has finished.

View 2 Replies

ActionScript 2.0 :: Can A Loaded Movie Unload Itself

Feb 27, 2004

can a loaded movie unload itself, ive tried but nothing positive this is the thing, i have a sectiion tha i loaded, and i want a close button in that loaded movie, not in the actual main movie

View 3 Replies

ActionScript 2.0 :: Unload Movie Not Working

Mar 7, 2004

I wonder why the following code doesnt work using _level1.unloadMovie() nor even unloadMovie(_level1);[code]

I could be doing something wrong but I cud not figure it out so I created an empty movie clip on the level where I want to remove the movie.

View 2 Replies

ActionScript 2.0 :: Load And Unload Movie

Sep 7, 2002

My flash movie has two scenes at end of scene 2 i have load another movie using loadmovie. Now I wanna unload the loaded movie and directly go to scene 2 . Is there anyway by which I can directly jump to scne 2 instead of going through scene 1. I am using flash 5 and both moovies have same dimensions.

View 9 Replies

ActionScript 2.0 :: Can't Unload Movie Clip

Feb 15, 2005

I have xml which is loaded in a movie clip but i can't seem to be able to unload that movie clip when i need to. I tried everything and the code seems right. I'm guessing it's because of some kinda path issue. Maybe someone else might see something i'm missing.

This is the code i am using to load the xml in the movie clip:

Code:
var r = _root;
r.clipArr = new Array();
r.menuXml = new XML();

[Code].....

Here is the file that i am working on. Just download it from my server and take a look:

[URL]

View 2 Replies

ActionScript 2.0 :: Unload A External Movie With A Xml Menu?

Mar 8, 2009

i have this menu, that has the general actionscripting on the button, but the characteristics are in the xml file... color, and file name..

in the main movie, the button's actionscript i have:

ActionScript Code:
// On press goes to the link setted in the xml
area.onPress=function(){

[Code]....

what do i do to unload the movies each time another is loaded?

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 2.0 :: Load/unload Movie With Same Button?

Aug 30, 2010

I'm using CS3 with Action Script 2.

I have a button that loads an outside .swf into a blank container. That works fine, however, I want to use the same button to unload that movie. Basically I want it to work as a toggle button.

View 10 Replies







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