UnloadMovie And Preloader In MX...
Hi all
Right, you can see what I'm working on at:
http://www.stevemccormick.biz
The way I have it at the moment is that whenever you click a link, it loads the next swf on top of it, which, you'll probably agree, isn't the best way to do this, as every movie is on one level, and is being unloaded/loaded every time it's clicked.
Is there a way to hide swfs and levels? Forgive my ignorance, I just want to know the best way to do this!
Also, how should I do a preloader?
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-29-2002, 10:43 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
UnloadMovie
Hi, i m sorry for my english.
The problem i have is simple.i've movie (say "1.swf") and i load into a target MC(anim) another movie (say "2.swf").
What i want is that ,at the end of 2.swf ,it unload itself.
ps:i can't use level,must use target.
thanx to help da little frenchie...
Unloadmovie?
hi
when I unload a movie with the "target" option do I unload the .swf
ei. unloadmovie("blahblah.swf")
UnloadMovie
Hi, using the command "anim.unloadMovie("EmailService.swf")" when the movie EmailService.swf doesn't exist on this path, does it cause error? any problem?
Thanks in advance,
Maya.
UnloadMovie, Etc.
Hi all
Am I correct in saying that using unloadMovie removes it from the browser's cache?
Also, I'm wanting to create a pic viewer that uses an MC and draws in the images externally. What's the best way to do this?
Thanks in advance!
Unloadmovie
I f I load a swf movie on a certain level and I put at the end of the loaded movie the unload scipt it works fine.
However if I load a movie using the target location, I can't seem to unlaod it. Is it possible to do?
I UnloadMovie But Its Still There
hallo all,
i have a movieClip named "char5", say in level 5. i unloadMovie it like this:
char5.unloadMovie();
but after that when i try:
trace(char5.getDepth());
i get a value 5, like its still there!
any ideas? why dont i get an "undefined" message, since the movieClip is gone?
thanks in advance!
Help With Unloadmovie
at the moment i have a button with
Code:
on (release) {gotoAndPlay(5);
_root.createEmptyMovieClip("container", 1);
loadMovie("sk8.swf", "container");
container._x = 10 ;
container._y = 15 ;
}
i've read a few tutorials but am haveing a bit of a problem understanding the stuff about levels as far as i understand it i can just have
Code:
unloadMovie("sk8.swf", 1);
on another button and that would unload the movie from the first layer it obviously doesn't work. could anyone help me with this? preferably explain it a little, thx.
MAC Bug UnloadMovie
Hi all,
i posted earlier but that may have been confusing
My question
Can anyone on a MAC,
1.load a movie externally ie loadMovie("myMovie",_root.container)
2.unload the movie with unloadMovie(_root.container)
I bet that the movie is NOT really unloaded it keepe on loading in the background.
Try loading a large movie and create a progress bar to see how much is loaded in - then unload the movie halfway through loading.
Wait a short while and then load the movie again
Hey presto the movie is loaded instantly
The ONLY explanation for this is that on the MAC, the unloadMovie command does NOT unload the contents of a container clip. The external swf keeps on loading into the browser.
Tell me i am wrong please
Gilesb
A Little Help On Unloadmovie
Heres my problem, on my button I'm calling my mainMc like this
on (release) {
_level0.main.loadMovie("sections.swf");
}
And and I'm trying to unload it from a frame script like this:
removeMovieClip(_root.recruit);
stop();
>>This doesn't work atall .. what am I doing wrong?
>>Should I use this as a framscript or should I have it in a button?
Anyone?
Unloadmovie?
i have loaded a movie into one of my sub-movies, when i click another menu button to go to another sub-move, the loaded movie i loaded up , stays on the screen, how do i unload the movie once ive loded it into the site?
Thanx in advance,
Sean mee
UnloadMovie
Hi,
thank you for reading this!
It´s a bit embarrasing, but here it goes:
I am using a scrollPane for thumbnails to open up images within the same movie. I load the othes swifs with "loadMovie". When U click on the thumbnails the first time it all seems to work, but when U go back the other way around it becomes a "mess".
I think that I am using the unloadMovie command very wrong, but I don´t know what stupid misstake I do. Can anyone help me, please?
The files can be found at:
http://www.tritonus.net/loadMovie/bild01.swf
http://www.tritonus.net/loadMovie/bild02.swf
http://www.tritonus.net/loadMovie/bild03.swf
http://www.tritonus.net/loadMovie/bild04.swf
http://www.tritonus.net/loadMovie/sc..._loadMovie.fla
http://www.tritonus.net/loadMovie/sc..._loadMovie.swf
If anyone bothers...THANX!!!
regards
ik.
UnloadMovie Help
Hey all.
I'm using this on a button to open an SWF file from an HTML file...both created from Flash MX, Windows XP:
on (release) {loadMovie("ox2.swf",1);
unloadMovie("ox1.swf");}
ox2 is loading, but ox1 still plays in the background (I can still click the buttons from ox1 underneath the newly loaded ox2!)
I'd like to know what I'm doing wrong if anyone cares to tell me!
Thanks.
pug
UnloadMovie
Basically ive loaded in a scene on level 2 from level 1, but i want it so that when they hit a button on the scene, it will unload and reveal scene 1 again. How can i do that?
Ive tried _parent.unloadMovie etc but that unloads right down to level 0 and gets rid of level 1 too. I just wants level 2 unloaded. Please heeeeeelp!
Unloadmovie
i have a series of external swfs that i load / unload from scene 1 ..
the problem im facing here is that when the last external swf in scene 1 has finished playin i need to start playing the 2nd scene automatically .. without the use of buttons ..
i used _root.gotoAndPlay(scene 2) .. but it doesnt work that way .. i even tried using frame label ..
could someone pls help me out here .. thanx in advance ..
UnloadMovie
Hey
I'm loading a movieClip on my stage at frame nr. 1
mainClip = _root.createEmptyMovieclip("Main_mc",1);
mainClip.attachMovie("mainstage","mainNew",1);
In this movieclip I later wan't to remnove the movieClip and start an other one. I'm using:
mainClip.removeMovieClip();
item = _root.createEmptyMovieclip("item_mc",10);
item.attachMovie("Production","prodNew",10);
The result is:
He play's the MainClip again and puts the item on top of it.
But i don't want to see the mainclip again
I think the problem is that when i remove it he will agauin play the first frame and will load the movie again. But what is the solution?
thx
UnloadMovie
I can't for the life of me figure out unloadMovie: I'm using MX
on (press) {
unloadMovie(gallerypages.swf);
loadMovie("gallery1.swf", "theClip");
}
The movie unloads, but the new movie doesn't load. I will appreciate all the help I can get.
russ
UnloadMovie?
I have a swf(2) that I loaded into another swf(1). I have put a button in swf(2) and want to use it to unload swf(2). Basically unload itself. it looks like this:
swf(1)...
Button action loads swf(2) into empty MC in swf(1)...
Button action in swf(2) closes swf(2)?
Hopefully this makes sense, any help is highly appreciated.
UnloadMovie?
I have a main swf, I loaded a second swf into may main swf. I put a button on my second swf that I would like to use to close the second swf.
I have been searching for a tutorial but cannot find one, any help would be much appreciated.
How Do I Use UnloadMovie?
i have 2 blank movieclips in my scene, each one is there to load seperate external swf's into when hitting a corresponding button. i need to write a script that will tell the first swf opened to unload when you load the second one. here is the script i have so far:
on (release) {
loadMovie("email.swf", "external");
}
(that script is on the first button, external is the name of the black movie clip in the scene to load the swf into)
on (release) {
loadMovie("thumbss.swf", "external2");
}
(that script is on the second button, external2 is the second blank movie clip.
i tried just adding a simple command like this to each button to unload one when the second clip is loaded, but it failed:
on (release) {
loadMovie("email.swf", "external");
unloadMovie("thumbss.swf");
}
what do i do? any ideas? thanks!
Help With UnloadMovie
I have a mc x in which I have loaded a mc y with the following script:
Code:
loadMovie("loader.swf", "holder2");
(Where 'loader.swf' is mc y, and 'holder2' the symbol where 'loader.swf' has to appear)
Now I want mc y to close by clicking on a button in mc y. By clicking the button a view frames are played and then at the last frame the mc is supposed to close and you can continue in mc x. The problem is I don't know the exact code to close mc y. Can somebody tell me this (I suppose it isn't very complicated)
UnloadMovie ?
Can you unload a scene using actionscript?
I have the need to have a movie all on the first frame with no other scenes. I also need a preloader. I can't put a stop on the main movie for reasons that I can't go into. Right now, if I add the preloader my movie loops through the loader to the movie and back again.
The only solution I can think of is to have a preloader on a scene before the main movie, then unload the preloader scene so that what I end up with is only the main movie.
Is this possible? Or do I need to re-think my entire site!
Any help would be appreciated.
Thanks,
Yup
<unloadMovie> Help
I have Flash MX 2004 Pro
when I click on a button the swf file loads but when I click another button the swf file stays there how can I make it to go away. I need to unloadMovie() how can I do that..
Check out this Problem I have
Instructions: Go to "Articles" click any button you want after that click another button on the top Home, PC, PS2, or XBOX. You will see my problem the text doesn't go away..
http://www.freewebtown.com/pcgamers/index-flash.htm
Thanks for the Help
What Happens If UnloadMovie() Is Not Used?
Hello to all!
My concern for this question is memory use...
I want to know if I load external SWF clips into my main movie, with the loadMovie() function,
do I have to use the unloadMovie() before each time I try to load another external clip?
For example:
1)"Index.swf" loads a first external clip called "Home.swf" within an empty MC called "container"
with the following line:
loadMovie("Home.swf",container)
2)If I click on another menu button another section gets loaded in the same empty MC "container"
in the same way: loadMovie("About.swf",container)
And apparently it works fine, but I don't know if the system's memory gets filled up if I do not
unload each clip before loading another one...what could happen if I don't unload?
Thanks!
-Waltman
UnloadMovie
hey guys need help here.
i have a reset button and it is to delete the pics i uploaded into the mc.
the code here:
on(release){
this._parent.text1.text= "";
this._parent.loadImages.unloadMovie();
}
but den it doesnt remove the pics in the mc, it only remove the textfield text.
here is the code i use to create the mc dynamically and load the images.
function loadImages(location,image){
counter++;
var loadArea = location.createEmptyMovieClip("container_"+counter ,counter);
loadArea.onPress = function () {
this.startDrag () ;
}
loadArea.onRelease = function () {
stopDrag () ;
}
var holder = loadArea.createEmptyMovieClip("holder",0);
holder.loadMovie(image);
loadArea._x=50;
}
anybody here can help asap
i have to hand it in 1 weeks time. thanks alot.
About UnLoadMovie
Hey all, I need an urgent help like everybody
I have got a movie. And I load swfs into it with loadMovie function. And sometimes I need to unload them. And I use unloadMovie function. But when I unload it. It just disappears. I dont want it. If I made a movie and in the movie if i make labels named start up animation and close up animation. Can I address these labels when using LoadMovie and UnloadMovie functions?
I hope I clearly tell what I mean.
Help With Unloadmovie? Please Help.
Hi all,
I have a MC with a button that loads a swf MC. The SWF MC loads fine but when I click the button attached to the SWF MC to unloadmovie it does not. I believe I'm using the proper syntax and I do have it attached in AS on the button with the loaded MC. Any help is truly appreciated!!! Thanks to all in advance!
UnLoadmovie (from Self?) Help
I've loaded an external .swf,
PROBLEM 1: The menu buttons under the new SWF aren't visible, but clickable. Any easy way around that?
PROBLEM 2:
and now I want to make it go away....
The external swf covers the main movie completely, so I want the unloadmovie to be a button in the external swf.
Does any one know how to achive this?
Thank you
UnloadMovie
I loading an external.swf when a button is clicked. When another button is clicked I want the external .swf to go away or unload I though unload movie must do this right? but it's not working for me. I put this code on the "load movie" button:
on (press) {
if (!_root.MCplay){
shade.play();
loadMovieNum("msHome_about.swf", 1);
}
}
and this on the "unload" button:
on (press) {
shade.gotoAndStop(1);
unloadMovie("msHome_about.swf");
}
Does anyone see a problem here or another way to do this?
Thanks!
-M
UnloadMovie()?
In the cleanup function of my flash game (which is supposed to reset the game for replay) I tried using unloadMovie() on two of my movie clips. But on the second time around, the movie clips don't appear. Do they have to be loaded again? After being unloaded?
UnloadMovie
I will present the root question here followed by what I've done. If you can suggest a better way of doing this, please do.
PROBLEM
I have been given a template website that was developed in Flash 8 which I have downloaded a trial version of.
The FLA files have a sequence of buttons, 1, 2, 3, 4, 5. When you click a button it loads the next page (external swf) on to level 1. The problem is, it does not get rid of the previous page which is also on Level 1 so then the navigation and other items appear twice when the landing page opens. How do I get rid of or unload the departing page?
ATTEMPT
I thought I could put this code onto keyframe 1 of the root time line to get rid of any of the other pages the user may be coming from. In this example the user would be landing on page 5 (the code for actually loading page 5 would be on the button itself not keyframe 1 of the root, see below) and unloading any other page:
Code:
unloadMovieNum(1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
What does the above code mean? Does it mean that movies on Levels 1, 2, 3 and 4 will be unloaded? Can I tell it the name of the movie I would like to unload or is ok? I ask this because I have many pages to add this AS to so if I can keep it as generic as possible so I could just copy/paste the keyframes into each FLA file that would be great but if I have to do otherwise, so be it. Hmm, currently all my other movies are being loaded onto Level 1 so telling it to unload movies that are on 2-4 is pointless I guess: Did I just answer my own question?
The code that appears on each button looks like this:
Button that goes to page 1 looks like:
Code:
on (release) {
loadMovieNum("W25p1.swf", 1);
}
The code that appears on each button looks like this:
Button that goes to page 2 looks like:
Code:
on (release) {
loadMovieNum("W25p2.swf", 1);
}
and so forth. As you can see, there is nothing that tells W25p1.swf to unload.
So, should the uload be added on the buttons or on keyframe 1 at the root level and if so, what systax should I use. What I used above did not work.
Thanks
UnloadMovie
I have the project (found here) it contains four files. The Albert.fla is the image voom editing file, albertimages.swf is the complied (This has co-ord set to align on main project.) The project.fla is the main file (editing) and project.swf (compiled). The problem is on the project file i have told it to "loadMovie("albertimages.swf"); on it (this works fine), but i cant seem to get it to unload with "unloadMovie("albertimages.swf")...Can someone PLEASE HELP?
When (not How) To Use UnloadMovie?
I am using the following code on a button for a mc that brings in a little credit scroll animation within a larger animation. This works fine, but- am I reloading extra instances and eating up memory each time? If so, should I unload it each time it finishes? Or considering it may only run on demand, instead just keep it loaded and check? Thanks for the best practices advice.
PHP Code:
on (release) {
mt._x = -250;
mt._y = -300;
mt.loadMovie("Credits.swf");
//mt.swapDepths(1000);
}
UnloadMovie In AS3
Hi everyone,
So I'm a little late to the AS3 party, but finally taking the step. I'm currently getting used to a lot of the little things I used frequently in AVM1 no longer being available in AVM2, such as loadMovie/unLoadMovie.
I have a function that loads an external swf, and that works fine, but I'm having a heck of a time trying to figure out how to setup another function to unload the same swf. Here's my code:
Code:
function loadSwf(target:String){
var swfHolder = new Loader();
addChild(swfHolder)
swfHolder.load(new URLRequest(target));
}
function removeSwf(){
Loader.unload();
}
When I try to run this, I get the following error:
1061: Call to a possibly undefined method unload through a reference with static type Class
So I tried this instead:
Code:
function removeSwf(){
removeChild(swfHolder);
}
And got this error:
1120: Access of undefined property swfHolder
Would anyone mind edumacatin' me on the proper way to remove an externally loaded swf?
Thank you!!
UnloadMovie Help?
i am simply trying to unload a swf that was loaded. when the swf is unloaded i want to goto the next frame of the "parent" swf...if that makes any sense.
how would i do this?
UnloadMovie
Hello:
I have a thumbnail movie clip that will load pictures from XML file. There I want to create buttons, next and previous. When clicking next button, I would like to load another pile of pictures. I would like to unload the previous and reload the movie clip again. However, I do not understand why it doesn't load the next pile of the movie clip after I unload all the movie.
Can anyone give me some suggession on how to clear the previous pictures and reload next pile of the pictures? I am using movie clip to hold all the pictures using creatEmptyMovie method.
Thanks
UnloadMovie
Hi,
I want some help with Unload Movie.
Thre are 2 swf files.
In the first swf file i have a movie clip(its a simple round shape).I am loading another swf in it by this code.
loadMovie(name, "Global_mc");//name is the name of swf file.
//This works fine.
On click of the next button I am changing the value of name, and loading another swf file. This also works fine. But it seems like the previous swf remains there. Visually I can't see it but...
How can I unload the previous SWF file?
I tried unloadMovie(name);
Is there anything else I can do so that, there is no chance of error for the previous swf file?
I am using flash MX 2004 with actionscript 1.0
Thanks...
UnLoadMovie();
Hi,
I am having trouble when using the unLoadMovie action in flash 8. basically, i am loading .swf files onto a main timeline but when i try to load a new .swf the old .swf either doesn't get entirely removed or even worse my main interface (in the main timeline) disappears completely. note that each of my loaded .swfs have a preloader and it is during the preload that this happens...
UnLoadMovie In AS3
Hi everyone,
So I'm a little late to the AS3 party, but finally taking the step. I'm currently getting used to a lot of the little things I used frequently in AVM1 no longer being available in AVM2, such as loadMovie/unLoadMovie. I searched the forums quite a bit and found several threads, but none of the suggestions have fixed my problem.
I have a function that loads an external swf, and that works fine, but I'm having a heck of a time trying to figure out how to setup another function to unload the same swf. Here's my code:
Code:
function loadSwf(target:String){
var swfHolder = new Loader();
addChild(swfHolder)
swfHolder.load(new URLRequest(target));
}
function removeSwf(){
Loader.unload();
}
When I try to run this, I get the following error:
1061: Call to a possibly undefined method unload through a reference with static type Class
So I tried this instead:
Code:
function removeSwf(){
removeChild(swfHolder);
}
And got this error:
1120: Access of undefined property swfHolder
Would anyone mind edumacatin' me on the proper way to remove an externally loaded swf?
Thank you!!
Should I UnloadMovie?
I was able to load a swf file into Enter.exe file on the CD using loadMovieNum("no3_UnifiedQueue.swf", 1) My only problem right now is that
"no3_UnifiedQueue.swf" plays 1/4 of the way then reverting back and playing Enter.exe without finishing the rest of "no3_UnifiedQueue.swf". wondering if any one have any suggestions? thanks
Help @ UnloadMovie
Hi there ,
Im new in the Board , but i hope that you can help me ! I have this AS for an fade effect between MC's . Problem is that the MC's only set to tranperenz 0 . I want to load and unload the MCs complety from my mainstage ... Can anybody help to fix that problem ?
Code:
this.stop();
_global.mcout = "mc100";
_global.mcin = 0;
_global.count = 1;
function change(speed) {
this.onEnterFrame = function() {
this[mcout]._alpha -= speed;
this[mcin]._alpha += speed;
if (this[mcout]._alpha<=0 && this[mcin]._alpha>=100) {
mcout = mcin;
count = 1;
"mc100".unloadMovie();
delete this.onEnterFrame;
} else {
count = 0;
}
};
}
this.button100.onPress = function() {
if (mcin != "mc100" && count == 1) {
mcin = "mc100";
change(10);
_root.Menue.mc2.mc100.loadMovie;
}
};
this.button200.onPress = function() {
if (mcin != "mc200" && count == 1) {
mcin = "mc200";
change(10);
_root.Menue.mc2.mc200.loadMovie;
}
};
this.button300.onPress = function() {
if (mcin != "mc300" && count == 1) {
mcin = "mc300";
change(10);
_root.Menue.mc2.mc300.loadMovie;
}
};
this.button400.onPress = function() {
if (mcin != "mc400" && count == 1) {
mcin = "mc400";
change(10);
_root.Menue.mc2.mc400.loadMovie;
}
};
this.button500.onPress = function() {
if (mcin != "mc500" && count == 1) {
mcin = "mc500";
change(10);
_root.Menue.mc2.mc500.loadMovie;
}
};
this.button600.onPress = function() {
if (mcin != "mc600" && count == 1) {
mcin = "mc600";
change(10);
_root.Menue.mc2.mc600.loadMovie;
}
};
this.button700.onPress = function() {
if (mcin != "mc700" && count == 1) {
mcin = "mc700";
change(10);
_root.Menue.mc2.mc700.loadMovie;
}
};
this.button800.onPress = function() {
if (mcin != "mc800" && count == 1) {
mcin = "mc800";
change(10);
_root.Menue.mc2.mc800.loadMovie;
}
};
this.button900.onPress = function() {
if (mcin != "mc900" && count == 1) {
mcin = "mc900";
change(10);
_root.Menue.mc2.mc900.loadMovie;
}
};
PS: Im an German Intern in Sydney , so sorry for bad english
But Thx for any answer !
UnloadMovie
some more assistance required, can anyone help?
i have a main page which is just a button, to launch index/home page. when i do a publish preview, the main page launches index page, but loadMovie's in the index page don't work.
do i have to unload the original (main) movie or is there another way round this?
Unloadmovie Help
i am using this code
this.loadMovie("Videos/Video1.swf",1);
which works fine but when i place this code in another frame it seems to freeze the orginal video
unloadMovie(1);
this.loadMovie("Videos/Video2.swf",1);
can anybody help
UnloadMovie: How?
I'm using OldNewbies Preloader code to load another .swf file into my game. Now this new movie should be at the bottom of all the levels so that I can have a small "X" button in the upper right hand corner which would close/unload the movie and return me to the main swf's main page.
Searching through some of the tutorials and some on Kirupa I found a bunch that show just how to load the movie but nothing about Unloading. Here's oldnewbie's code modified to my needs with the exit button on the bottom.
ActionScript Code:
this.logo_mc._visible = false;
this.fullBar._visible = false;
this.display_txt = "";
this.createEmptyMovieClip("container", 10);
this.container.loadMovie("http://www.piratefish.com/projects/Games/HackDnD.swf");
this.onEnterFrame = function() {
percent = (this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
if (!isNan(percent)) {
if (percent == 0) {
display_txt = "";
} else {
display_txt = Math.ceil(percent)+"% LOADED.";
}
this.logo_mc._visible = true;
this.fullBar._visible = true;
this.fullBar.loadBar._xscale = percent;
container.stop();
} else {
}
if (percent == 100) {
delete this.onEnterFrame;
display_txt = "";
this.fullBar._visible = false;
this.logo_mc._visible = false;
loadMovieNum("http://www.piratefish.com/projects/Games/HackDnD.swf", 2);
}
};
stop();
//Exit Button
exitDnD.onRelease=function(){
unloadMovie(10);
_root.gotoAndStop("comp screen");
}
So what am I missing about loadMovie and Unloadmovie? I'm not real strong on understanding pathing (besides the obvious MC inside an MC, _root, _this, and attributes _width, _x, etc.) to this level but any help would be much appreciated.
UnloadMovie
Okay this is my situation. I have a slideshow being displayed on my website. And when u click the forward or backward buttons the picture gets displayed. The pictures are gathered through an array for source description etc. The problem is that when it comes time to exit that scene (Scene 4) to go back to the menu scene (Scene 1) the entire movie gets replaced by the picture loaded from the slideshow.
I have tried several forms of unloadMovie, targeting the instance name to even the level. No luck.
Any help would be great
Do I Need To UnloadMovie?
Another question on my:
band_btn.onRelease = function () {
loadMovie("clip_a.swf", "_root.clip_on_stage");
}
I have many buttons within video clips on my stage each opening SWF files. Each SWF files replace the same instance on stage as per above.
When using loadMovie function do I need at one point or another to use unloadMovie?
When do you need this function?
Any comment welcome.
Thank you for sharing you knowledge.
Chris.
UnloadMovie Help... Please.
Hi I have a question about the load/unloadMovie commands.
I have a movie, with a second movie loaded into a section of it. I was wondering if it is possible to have an action inside this loaded movie that tells the main movie to unload it and go to the next frame.
I tried doing it like this:
I put
loadMovieNum("second.swf", 5);
stop();
in the main timeline, with unloadMovieNum(5); on the next frame, then in the loaded movie I put:
tellTarget ("mainmovie.swf") {
nextFrame();
}
on the last frame, which I thought would cause the main movie to unload the second movie and continue the animation.
Instead, I get this error when I publish:
Target not found: Target="21.swf" Base="_level5"
and I am stumped.
Any help at all would be incredible appreciated. Also please bear in mind that I am pretty new to actionscript, so if you could spell it out for me that would be great.
Thanks to anyone who can help me out,
Matt Booth
A Little Help About UnloadMovie
I'm a new guy in here and my english is not that well, so please be kind
Can anyone help me to use UnloadMovie in this Script? I use Flash MX 2004.
knap_array = new Array();
allOff = function () {
var len = knap_array.length;
for (var i = 0; i<len; i++) {
this[knap_array[i]].gotoAndStop(1);
this[knap_array[i]].down = false;
}
};
newButtonDef = function (name, method, value, target) {
this[name].onRollOver = function() {
if (!this.down) {
this.gotoAndStop(2);
}
};
this[name].onRollOut = function() {
if (!this.down) {
this.gotoAndPlay(4);
}
};
this[name].onPress = function() {
allOff();
this.gotoAndStop(3);
this.down = true;
};
if(method == 0){
this[name].onRelease = function() {
gotoAndPlay(value);
}
}
if(method == 1){
this[name].onRelease = function() {
gotoAndStop(value);
}
}
if(method == 2 && isNaN(target)){
this[name].onRelease = function() {
loadMovie(value, target);
}
}else if(method == 2){
this[name].onRelease = function() {
loadMovieNum(value, target);
}
}
if(method == 3){
this[name].onRelease = function() {
getURL(value, target);
}
}
knap_array.push(name);
};
newButtonDef("forside", 1, "unknown");
newButtonDef("nyheder", 1, "unknown");
newButtonDef("profil", 1, 153);
newButtonDef("showcase", 1, 154);
newButtonDef("referencer", 1, "unknown");
newButtonDef("tutorials", 1, 155);
newButtonDef("kontakt", 1, "unknown");
newButtonDef("links", 1, "unknown");
newButtonDef("forum", 1, "unknown");
newButtonDef("gæstebog", 1, "unknown");
UnLoadMovie
In my root swf I have an empty movieclip that loads an external swf, this works perfectly.
But after some events it has to be "unloaded".
But it doesn't work if I use: _root.mc_game.unloadMovie();
the mc_game MC is the MC were it is loaded into... very strange?
Thanks for your help
UnloadMovie();
how do i unload everything that i put into a movieclip?
[edit]_root.mvc.unloadMovieNum(1);[/edit] works good but only removes attached movieclips not .swf's that i loaded into it. eventhough i told the .swf's depth to be 1.
thx in advanced.
|