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
Similar Posts:
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
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);loadMovie("Digital/Digital_2.swf","container");container._x = -22 ;container._y = 40 ;
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:
[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:
[Code]....
View 3 Replies
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):
[Code]...
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:
[Code]...
View 3 Replies
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
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
Oct 3, 2011
I'm having trouble on a project: I have a main movie that loads other according to theframe. In each frame I put the following code:
var loader:Loader=new Loader();loader.contentLoaderInfo.addEventListener(Event.COMPLETE,f);loader.load(new URLRequest("file#.swf"));addChild(loader); function f(e:Event):void{loader.scaleX=0.50;loader.scaleY=0.50;}
The problem is that when I load the next movie, an overlay happens. Therefore need to unload the swf that is playing and then load the other. I've tried a lot of stuff (unload /unloadAndStop / removeChild) but does not work.
View 5 Replies
Jun 14, 2011
I am trying to load & unload external swf that contain audio & video. Problem is that when I unload the swf's, the sound continues and I get overlapping sound. This is the code I am using:
var swf_loader:Loader = new Loader();
///unload previous swf
swf_loader.unloadAndStop();
[Code]....
View 5 Replies
Jul 2, 2011
i tryied all 3 methods
removeChild()
removeChildAt()
unloadAndStop();
but still m unable to unload file. Actually m loading a swf file which contains a video. The other video gets loaded but its sound continues. this is the code what i had tried:
[Code]....
View 1 Replies
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
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
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
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
Jun 5, 2004
can I script a buttons to unload a movie clip or swf, then load a different movie?
View 6 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
Oct 14, 2010
it seems some browsers will not unload the background movie?
on (release) {
getURL (clickTAG, "_blank");
}
on (rollOver) {
background3.loadMovie("http://someaddress.com/background4.swf");
}
on (rollOut) {
background3.unloadMovie("http://someaddress.com/background4.swf");
}
PS I know and apologize for the dumb question- it's just that I only use flash for some occasional banners and am not too familiar with AS.
View 4 Replies
Oct 4, 2009
This is my script:
[Code]...
Basically it loads a mc when the web starts and when i press buttns it unloads previous mc and loads a next one BUT, it gives me an error when i press the gigs buttn, when contact clip was not loaded before How can i tell that IF certain MC exists, then unload it and load next one, and if not, just unload the other one. Or is there other way to do it? Here is the error i get:
[Code]...
View 2 Replies
Jan 14, 2009
trying to build a web site using cs3 flash...
I have so far managed quiet well up until I load in frame 1 my movie clip of the intro logo animantion.
I can load it and get it to play in frame 1 but then need it to stop (which it does)... my problem code area is then I need it to unload so that I can see frame 2 and see the web sites navigation...
the code to load the external movie clip is:
ActionScript Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
[Code]....
View 3 Replies