IDE :: Unloading A Movie - Can't Put The LoadMovieNum In 0 Level Because It Would Replace The Main Stage
Feb 26, 2009
I can't seem to unload a movie, I've tried every possible actionscript code and still it won't go away. My objective is to run in the main stage a sub menu and for that I've done sub pages each one with a previous and next button (inside the movie that will be loaded), and that's the catch. I can't put the loadMovieNum in 0 level because it would replace the main stage. So I'm trying to do on the button:
on (release) {
unloadMovieNum(1); // it was loaded into level 1
loadMovieNum("new_item.swf",1); // he overlays both movies with transparency
}
Is there anyway to remove the actual movie and replace it with the new one?
View 3 Replies
Similar Posts:
Nov 5, 2004
I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?
View 1 Replies
May 11, 2009
I have my main.fla which imports external swfs that contain flv's. I have three buttons that navigate the main timeline to frames 2-4. At frames 2-4 an external swf gets loaded into an empty movie clip via this code. Each loaded swf acts like a menu with some nice vidoes loading in the background.The problem i found is the flvs continue to play as i navigate between menus, which makes the main swf/fla slow down becuase the pc is working harder to deliver all the stuff running in the background. I've added this code to frame 1 of my empty movie clip that is in my library that has the instance name 'menu1'I keep getting the error "Access of undefines property mc1"I have the source files for my site here if you can take a look and see what I'm doing wrong. I have removed this code so i don't get the error and have tried other things to no avial.
///////////////////////
var loader:Loader = new Loader(); addChild(loader); loader.load(new URLRequest(MovieClip(this.parent).src));
[code].....
View 2 Replies
Sep 15, 2011
I have my main.fla which imports external swfs that contain flv's. I have three buttons that navigate the main timeline to frames 2-4. At frames 2-4 an external swf gets loaded into an empty movie clip via this code. Each loaded swf acts like a menu with some nice vidoes loading in the background.
The problem i found is the flvs continue to play as i navigate between menus, which makes the main swf/fla slow down becuase the pc is working harder to deliver all the stuff running in the background. I've added this code to frame 1 of my empty movie clip that is in my library that has the instance name 'menu1'
I keep getting the error "Access of undefines property mc1"
I have the source files for my site here if you can take a look and see what I'm doing wrong. I have removed this code so i don't get the error and have tried other things to no avial. [URL]
///////////////////////
var loader:Loader = new Loader(); addChild(loader); loader.load(new URLRequest(MovieClip(this.parent).src));
////////////////////
[Code].....
View 3 Replies
Nov 20, 2003
I have two .swf(s) I want to play similataniously on stage in my movie called base.fla.either movie is in the library they are being called from the same directory level that the base.fla movie is. Here is my script.
on (release) {
loadMovieNum("twirl30Loop_Small.swf", 2);
loadMovieNum("relax!_Small.swf", 1);
[code].....
View 7 Replies
Mar 30, 2009
There are hundreds of threads on the web about unloading movie but none of them work. For example, the code below gives this error: TypeError: Error #2007:
Code:
var alert:Boolean=true;
if (loaderInfo.url!="someurl") {
removeSwf();
[code]...
View 4 Replies
Mar 19, 2009
There is an enabled function.. Now, when I load in a new level over an existing one, by using loadMovieNum, I call
Code:
_level0.enabled = false;
One would expect all buttons/rollovers NOT to work anymore .. Alas I just can't get that shiv to work. Does it do that - Or will it only work on individual MC's? Which brings up the problem that all 'buried' buttons are still operative. Ok, so I can call a for loop to disable all of those buttons - but that could get tricky. So, can an entire _level be disabled?
View 1 Replies
Sep 18, 2010
I've got a thumbnail button slideshow of some images and to keep the file size down I placed all the images in separate .swf files and linked the buttons so the images will appear in a space on stage (level 1) as follows:
on (release) {
loadMovieNum("mov-1.swf", 1);
}
I've got 15 images linked this way and it all works fine when viewed in the html page on my computer. But when I upload to my webserver, the images on level 1 don�t appear.
View 1 Replies
Jan 20, 2004
I have a movie that initally onloads onto the stage at target MC. I then want this movie to unload when the following button is moused over or clicked for the same MC target.
Button1.onRelease = function() {
loadMovie("home.swf", "target");
};
What would the syntax look like if the inital movie came into a different target MC named "target 2"?
View 7 Replies
Aug 18, 2011
i have a main swf...from the main swf, an external swf is loaded which is a SubMenu.From the Submenu, a SECOND external swf is loaded. I would like a button that closes the SECOND external swf, but the submenu remains.
View 3 Replies
Dec 30, 2010
Is there any way to set the depth level for a movie clip that is dragged to the stage, rather than created in Action Script.
View 10 Replies
Nov 20, 2009
I am using Actionscript 2.0 and I'm a newbie. anyway, I have four swf files: Main.swf Mac1.swf, Mac2.swf, Mac3.swf On Main.swf, I have three frames and each frames it has these action scripts Mac1.swf:
[Code]...
View 9 Replies
Apr 10, 2010
I'm creating a game, here is a screenshot: I'm trying to implement a scene system in an easy way (I'm a beginner). In this tutorial the author adds scenes as movie clip. So I tried making a movie clip with action script export name the same as my main .as file. When I add it to the scene manually, dragging and dropping from the library, it works. But when I try adding it from a new starting .as file, I get a #1009 error. Adding a test movie clip with the same code works.
[Code]....
View 4 Replies
Sep 17, 2010
I'd like to replace a swf on what used to be called level 1, with another swf on level 1, by just loading a swf on that level, from the swf currently on that level, so it kicks out the current swf that called the new swf - just like it used to be in the old days of as2 How can I do this with as3? Do I just do an add swf with a remove swf straight after?
ActionScript Code:
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("myExternalMovie.swf"); myLoader.load(url);
myMovieClip.loaderInfo.addEventListener(Event.UNLOAD, closemyLoader0);
View 9 Replies
Oct 7, 2006
I've a problem with accessing different levels..
actually i'm in the 6th level of my swf and i need to access a movieClip in the 2nd level .
Is it possible to use variable names instead of giving the real level name and movieClip...
My code is something like this...
var levelData:String = _level2.mc_myMovie;
levelData.onRelease = function()
{
[Code]....
View 2 Replies
Jul 28, 2008
I have a function that attaches a movie clip to the stage each time at a new level.
myLevel++
attachMovie("myMovieClip", "instanceName"+myLevel, myLevel)
}
At the moment it works just fine but I want to target specific instances and I can't work out the instance names.I am trying this..
instanceName[myLevel]._x = 400
View 9 Replies
Oct 5, 2009
I would like to have my text change when the frame changes but an unsure on how to go about this.
[Code]....
View 0 Replies
Dec 1, 2010
ive been trying to load 3 games(swf's) into a main swf and ive had nothing but problems.
what im trying to do is have three buttons on the main swf, each one loading a different game. im having no problems getting the game loaded into the swf its unloading it and getting back to the first frame of the MAIN TIMELINE, or MAIN SWF.
ive tried loading the swf's into a movie clip and ive tried loading them in there own frame BUT nothing is working and it is SO FRUSTRATING
View 1 Replies
Aug 24, 2009
as the title says i am having two movie clips on main stage one called "land" and other called "char" inside "char" MC i have another MC called "ht1" i want to make hitTest between "ht1" and "land" but everything seems to fail, i've tried using _root, _parent?
View 3 Replies
Aug 24, 2010
how to use var form main stage in a movie clip. when i try i get an error.
View 2 Replies
May 6, 2008
I have a moviclip on the main stage with a stop action on the frame above. I want the movie to play ahead from that frame on the main stage after a certain frame is reached in the movieclip.
I tried using this simple function on the main stage;
if (_root.myMovieclip.signal._x = 100){
gotoAndPlay(win);
}
So when signal._x moves to 100 in the movieclip, the frame jumps to "win". However this doesn't work. I tried using a timer on the frame as well but it does not provide an accurate enough response.
View 7 Replies
Mar 19, 2010
Im trying to load a movie using a button. I just want the button, when hit, to load an external .swf file inside the movie clip playing.
In AS1, (I never did learn AS2) this is what the button command said
on (release) {
loadMovieNum(�About.swf�, 0);
}
So how would this translate into AS3?
View 1 Replies
Feb 8, 2004
I'm trying to attach a movie clip to the main stage using:
[AS]
this.attachMovie("movieObj", mc1, 1);
[/AS]
However, it ain't showing up. Trace said the movieclip of that name is undefined, despite having the correct linkage and instance name. Anyone know why a movieclip might be MIA?
View 4 Replies
Jan 8, 2009
I'm using Flash 8 and I'm having an issue getting back to the main stage once a movie clip has played. I have my file set up with three movie clips on the main stage. One just plays which is the banner, there are two rollover buttons on that mc for panel1_mc and panel2_mc. When you rollover to view panel1 it plays fine, but inside I have another button to take you to panel 2. That wont work...this is what I have for code for the button inside the clip:
[Code]....
View 4 Replies
Mar 31, 2011
How do i make a movie clip go back to the main stage once it is clicked.. it has a roll in and out which is inside the movie clip.. i have a door and i want it so when you click the door it goes to another key frame on the main stage
View 1 Replies
Jun 25, 2009
I had attach a few movieclip in the main stage by using addChild() method. If I going to refer back to them inside other movieclip, How can i do so..
For example,
//attaching at the main stage
var earth1:MovieClip = new earth()
addChild(earth1);
[Code].....
How can I refer back this Movieclip from other movieclip's timeline?
View 1 Replies
Nov 22, 2010
So, I have a site, and I want it to play an intro movie when you load the index page. I have it as LoadMovieNum (videos.htm), but I want it to play the video on that page, which is about 30 sec. long, and then redirect to another .swf page entitled index.swf.
View 3 Replies
Dec 8, 2002
I'm populating a Dynamic Text field with content from an external flat text file.To load the text file I have a frame action: loadVariables Num("flash.txt", 0);This works fine when viewed by itself.The problem is when I load that Movie into the Parent (container) SWF file using loadMovieNum - it will no longer work.
View 5 Replies
Jan 5, 2011
I am doing a 5 frame file that on frame 1 has 4 buttons and the following code
on (release) {
gotoAndStop(4);
} on (release) {
loadMovieNum("jigsaw.swf", 1);
}
I am happy with this as it jumps to frame 4 and loads the movie jigsaw that I done from a tutorial. The problem is I cant get it to close, I have got a button on page 4 that has the gotoAndStop(1) but it just goes to frame 1 (that's the good bit) but the jigsaw is now on frame 1 as well and I dont know how to close it.
I tried
on (release) {
gotoAndStop(1);
} on (release){
unloadMovieNum("jigsaw.swf", 1);
}
but it does nothing not even go to frame 1
View 2 Replies
Sep 7, 2009
I am building a website that has side loading pages that move into place when a button is clicked. I have been fighting with this for a good couple hours now and can't figure out what I'm doing wrong. Here is how the page loads out.
Main Level:
script
Contains script for MouseClip on the NavBar
NavBar
[code]....
This is what the code inside the Menus looks like. Of course, when you preview it, it says that it cannot find "navbar_mc" because it's not in the same level as the menus are.
Code:
navbar_mc.homeBTN_btn.addEventListener(MouseEvent.CLICK, test2A);
function test2A(event:MouseEvent):void{
trace("HOME was clicked");
gotoAndStop(21);
}
Background
How do I reference to the main level from inside the Menus movieclip? Or is there an easy way to auto animate the movieclip upon any MouseClick?
View 1 Replies