ActionScript 2.0 :: UnLoadMovieNum - Unload The Movie On A Frame Script ?
Mar 11, 2004
I ve loaded a movie into level 2 and want to be able to get rid of it again.Ive tried using this:
on (release) {
unloadMovieNum ("flash/many/video.swf", 2);
loadMovieNum("flash/many/design.swf", 1);
}
But get an error.Is it better to unload the movie on a frame script or what?
View 6 Replies
Similar Posts:
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
Sep 7, 2007
I am attempting to build a site using load movie commands. I have a navigation movie with 4 buttons, on the press of each button I uesd this script.
[code]...
this loads an animation and plays into the news reader. on the press of a button to go back I have loaded a seperate back animation using this script
[code]...
The problem I now have is I want to remove this clip at the end of the animation and return to the root navigation.
View 1 Replies
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
Jun 27, 2007
The movie clip is called "theScene" and I have it created on Frame 60 of a movie clip when a button triggers the playhead to jump and stop at Frame 60. However, upon leaving that frame, it will not disappear, so I want to unload it upon leaving that frame.I put in the following code across all frames of the movie clip in its own layer:
Code:
if (this._currentframe !=60)
{
[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
Jan 3, 2007
So this is my beef, I use loadMovieNum("flat/1st.swf", 20); , then in frame 50, I added unloadMovieNum(20); . The external 1st.swf disappears, but where my buttons where in 1st.swf, are still active, even though you can't see them. So how do I completely remove an external swf, without being active, even though u can't see it?
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
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
Nov 11, 2009
I am building an on-line game for autistic children, and I am facing a problem where I load a SWF to play a mini game. Although when the mini game is over I want to go back to the original SWF (and a different scene to which I left.)
I use:
var request:URLRequest = new URLRequest("hidenseek.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
stop();
To load the swf, although I can't figure out how to unload it on a frame, and then on top of that take it back to original SWF to a new menu?
A work around could be to just have the new menu in the loaded SWF? Could I unload the original SWF or do I have to always keep it open?
View 9 Replies
Feb 11, 2011
I have the following code on a frame label called "allemande" (frame 890). The first part loads a swf when I click a button called "allemande" that sends me to this frame. This part works correctly.
The second part is code that sends the timeline to the "home" frame label when I click the "home" button. This works OK too.
I would like to insert code that will unload the "allemande_slideshow" swf when I click the "home" button to go back to the "home" frame label.[code]..
View 7 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
Dec 17, 2009
on the main time line i'm loading external swf at specific frame using moviecliploader class how do i unload the same swf when exiting that frame?this code is on the main timeline at the frame i want it to load at but i don't know how to unload it when i exit that frame:
this.createEmptyMovieClip("holder2_mc", this.getNextHighestDepth());
var mclListener:Object = new Object();
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("RVBanner2_FLASH8.swf", holder2_mc);
View 5 Replies
Aug 1, 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
this.createEmptyMovieClip("coalzoom",5);
coalzoom._x = 80;
coalzoom._y = 60;
coalzoom.onEnterFrame = spaceLoad;
function spaceLoad()
[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. here is the CS3 flash sources,, and outputs [URL]
View 1 Replies
Mar 31, 2012
I have tried several suggestions on this forum to resolve my issue, but it is obvious to me I am missing something because I am a NOVICE Flash developer. I have everything working in my Flash file EXCEPT I want to use this code to play a .swf file. When the swf file is done playing OR the user clicks the return to Main Menu button¯, they return to frame 1.[code]The .swf file plays and when I click Return to the Main Menu button, only certain items display from frame 1. The .swf file is still loaded hiding the items that should display on frame 1. I have attached a screen shot of what happens when I click the "Return to Main Menu" button.
View 7 Replies
Nov 6, 2010
Using AS3. I have in my code a button to stop and remove the swf, but I would like to have in addition to unload a child swf when it plays it's last frame automatically - not using a button.
Here is my code on the main timeline:
var loader:Loader;
var closer:close;
norton_btn.addEventListener(MouseEvent.CLICK, NortonDemo);
function NortonDemo(e:MouseEvent):void {
[Code] .....
Now, what do I need to add or change to this code and add to the code on the last frame of NortonDemo to accomplish what I want to do?
View 1 Replies
Jan 15, 2009
I'm trying to create a movie clip which contains the background image and has thumbnails which change the image once you click on it.
Whats the best way to code this?
I'm having trouble with the depth.
addChildAt(imageName, o)
that works for the first image but how do i unload the image before going to next frame to load the new image when the corresponding thumbnail is selected?
View 0 Replies
Dec 15, 2009
I got my swfs to load on my web page. I have masked them once loaded. When I play one (click button) then jump to a different page (different frame) everything works fine. But, when I play one and then click another to play and then go to a different page, the mask seems to stay on screen (I am getting a white box in the mask area).
I want to eventually load all my swfs and mask them with their corresponding buttons and then jump to other pages (frames) on my website. I just can't seem to get rid of these boxes (masks).
Here is my code......
var Xpos: Number = 260;
var Ypos: Number = 80;
var swf: MovieClip;
var loader: Loader = new Loader ();
[Code].....
View 4 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 18, 2010
I have a Flash animation that loads a quick animation and then on a button click loads and external swf while at the same time moves the playhead on the timeline to frame 2 so that it has a blank stage to play on. The external swf then loads and plays. At the end of the external swf's animation I would like it to unload and then return to frame one of the containing movie. I am assuming that on the last frame of the external swf I should be putting some actionscript that will unload the movie and then talk to the initial containing flash telling it to return to frame 1.
The main swf button that loads the external swf is using a code snippet from the AS3 CS5 library and looks like this...
[Code]....
It is also using gotoAndStop(2); for the same button.
So to unload the external swf and return would I use something like... this.unload(gotoAndStop(1));
View 3 Replies
Sep 16, 2010
I have a flash page where I am loading another .swf into. With a button in the loaded swf I need to unload the loaded swf (where the button is) and navigate to a specific frame label in the parent .swf. I've tried to do the following in the key frame where the swf get loaded into I've put the following:
var gallery_load_wonderland:Loader = new Loader();
gallery_load_wonderland.contentLoaderInfo.addEventListener(ProgressEve nt.PROGRESS, loop_wonderland);
gallery_load_wonderland.contentLoaderInfo.addEventListener(Event.COMPL ETE, done_wonderland);
gallery_load_wonderland.load(new URLRequest("gallery_wonderland.swf"));
function loop_wonderland(e:ProgressEvent):void {
[Code] .....
I basically want to first load the swf called "gallery_wonderland.swf". Then in the "gallery_wonderland.swf" there's a button called "contact03_btn"¯ which I want to unload "gallery_wonderland.swf" even though it's inside the swf and navigate to the frame label called "Contact" in the parent swf.
What can I do I've done similar before and it works, but when I do it know and I click the contact03_btn it comes with following error message:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@26215ba1 to flash.display.MovieClip.
at gallery_wonderland_fla::MainTimeline/back_wonderland()[gallery_wonder land_fla.MainTimeline::frame1:227]
View 13 Replies
Nov 18, 2009
I am making a flash site where one of my pages loads an external swf. In this external swf I have sub pages with links. My problem is when I visit a page from this external swf, and then go to a page from my main website (clicking my main time line buttons) and then go back to the page with the external swf i was previously on, the page would go to the last page i was on, instead of refreshing it back to the main frame of the external swf.
I made a small, simple example of what I am experiencing on the site I'm working on.
[Code]...
View 2 Replies
Nov 21, 2007
I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
[Code]....
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
View 1 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);
[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
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