Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Unloading Dynamic Movie...



Hey guys,

so i am filling the stage with movies with a keypress fuunction. Each new movie is added as a new layer:
ActionScript Code:
on (keyPress "u") {    _root.collage_holder.attachMovie("anim3", "a" + (k++), k);}
and i need to unload a movie that was loaded 5 keypresses before. But i am struggling with the syntax, i have tried
ActionScript Code:
on (keyPress "v") {    _root.collage_holder.attachMovie("anim2", "a" + (k++), k, {_x:500, _y:500, _xscale:30, _yscale:30});    _root.collage_holder._level(k-1).unloadMovie;}
but seemingly to no avail. Is the syntax just wrong, or is this simply the wrong approach.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-18-2006, 12:58 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Unloading Dynamic Movie Clip--help Please?
I'm loading jpg's externally into a dynamically created movie clip that then get clicked on to show a larger image. I'd like to be able to click on that MC/larger image to close it once it's loaded. Here's the code I'm using to create the MC and for the life of me can't figure out how to do it after extensive searching on the subject. Basically I'm wanting to go back to the "pre-click" state of the movie when it first loads before any clicking happens.


Code:
_root.createEmptyMovieClip("large_mc", 1);
with (_root.large_mc){
_x=225;
_y=92;
};

butt_1.onPress = function() {
unloadMovie(_root.large_mc);
loadMovie("http://i30.photobucket.com/albums/c315/popstalin/images/photo1_lg.jpg", _root.large_mc);
};
I've tried:

Code:
_root.large_mc.onPress = function() {
unloadMovie(_root.large_mc);
};
but it doesn't work...

I know the answer is somewhere in here but can't quite figure it out. Help please?!?! TIA.

Link to fla:
http://www.popstalin.com/fark/back_motion2a.fla

Unloading Dynamic Movieclips, Please Help
Ok I'll try and keep this simple I have a movieclip which randomly duplicates itself somewhere on the x value between 1 and 396, above the stage it then decends downwards using a separate movieclip that I have set up which runs though a series of frames moving the moviclip down 2px every frame, When it reaches the bottom of the screen I have a hit area covering the bottom of the stage, when it hits this I would like it to unload.

Ive tryed so many different things but I can't seem to get it to work.

THANKS!!! ?

Unloading Dynamic Text
Ok. So I have an empty dynamic text box that I'm loading a .txt file into using:


Code:
var variables_lv:LoadVars = new LoadVars();
variables_lv.load("homepage.txt");
variables_lv.onData = function(data) {
homepagetxt.text=data;
I need the .txt that is loaded to dissappear or be unloaded after an on(release) of a movieclip.

Unloading A Dynamic Movieclip?
I'm having issues figuring out this once simple command. Below is my code, how can i create an unload function that works for all my buttons? I've been researching but can't find something clear enough for me to understand. I feel like there's an easy fix, but i'm fried from staring at it. Thanks!

var home:Loader = new Loader();
var contact:Loader = new Loader();
var cont:MovieClip = new MovieClip();

//1st button:::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::
home_btn.addEventListener(MouseEvent.MOUSE_OVER, homeOver);
function homeOver(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("on");
}
home_btn.addEventListener(MouseEvent.CLICK, homeLoad);

function homeLoad(Event: MouseEvent) {
home.load(new URLRequest("home.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(home);
}

home_btn.addEventListener(MouseEvent.MOUSE_OUT, homeOut);
function homeOut(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("off");
}

//2nd button:::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::
contact_btn.addEventListener(MouseEvent.CLICK, contactLoad);
function contactLoad(Event: MouseEvent) {
contact.load(new URLRequest("contact.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(contact);
}

contact_btn.addEventListener(MouseEvent.MOUSE_OVER , contactOver);
function contactOver(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("on");
}

contact_btn.addEventListener(MouseEvent.MOUSE_OUT, contactOut);
function contactOut(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("off");
}

Unloading A Dynamic Movieclip?
I'm having issues figuring out this once simple command. Below is my code, how can i create an unload function that works for all my buttons? I've been researching but can't find something clear enough for me to understand. I feel like there's an easy fix, but i'm fried from staring at it. Thanks!

var home:Loader = new Loader();
var contact:Loader = new Loader();
var cont:MovieClip = new MovieClip();

//1st button:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
home_btn.addEventListener(MouseEvent.MOUSE_OVER, homeOver);
function homeOver(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("on");
}
home_btn.addEventListener(MouseEvent.CLICK, homeLoad);

function homeLoad(Event: MouseEvent) {
home.load(new URLRequest("home.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(home);
}

home_btn.addEventListener(MouseEvent.MOUSE_OUT, homeOut);
function homeOut(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("off");
}

//2nd button:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
contact_btn.addEventListener(MouseEvent.CLICK, contactLoad);
function contactLoad(Event: MouseEvent) {
contact.load(new URLRequest("contact.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(contact);
}

contact_btn.addEventListener(MouseEvent.MOUSE_OVER, contactOver);
function contactOver(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("on");
}

contact_btn.addEventListener(MouseEvent.MOUSE_OUT, contactOut);
function contactOut(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("off");
}

Dynamic Text Unloading
I trying to expand on the Flash book and I have added dynamic text onto the site but I have open problem if you look on page 4 and slowly drag it across the text still stays on the other page is there a way to unload when the mouse hits the side of the page?

Site Example
Current coding for that page...

Code:


afa0._xscale = afa0._yscale = _level0.afa;
afa1._xscale = afa1._yscale = _level0.afa;
click._width = _level0.clickarea;
txt._x = 292 - _level0.clickarea;
// Dynamic Text Area Load
loadVariables("DynamicText01.txt","Container01");
loadVariables("DynamicText02.txt","Container02");

Unloading A Dynamic Text File
Hi! Is there a way to unload a dynamic text file? This is what I'm using to load it:

on (release) {
loadVariablesNum("about.txt", 0);
}

so I tried to use:

on (release) {
unloadVariablesNum("about.txt", 0);
}

on a different button to unload but it doesn't work. I was looking through all of the available actions and noticed that one wasn't there but is there something else that will unload it?

Problem With Loading Unloading Clips And Dynamic Text
Ok so I am stuck here and I can't figure out what the heck the problem is. I can get dynamic text working only when it is on the main timeline, when I try putting it into a movie clip and loading the clip it doesn't show up. Furthermore I am having trouble with unloading the clips. And the more I kept playing with it the more errors keep coming up! Even though I thought I changed everything back to before the problems. Any help would be appreciated. I am sure I am missing something so small and stupid that when someone points it out to me I am going to bonk my head and say doh.

Problem 1: The BlurbBox Clip keeps reloading when the mouse is rolled over the IST@UP button. Don't know how that happened because it was working fine originally.

Problem 2: The dynamic text is not loading into the BlurbBox, I tell it when the clip loads to load the variablenum file ISTatUPDescription.txt at level 0 like I did in my dummy example and it worked.

Problem 3: After you rollOver then rollOut to unload the dropmenu clip and try to rollover it again it brings up an error about loading the dynamic text, whats more baffling to me is that this happens when you roll over all the other menus as well, and I didn't even touch them yet.

Here are my files (seems to be a problem with the attachment manager so I uploaded to my webspace):

www.personal.psu.edu/sah302/Flash/MainPage.fla
http://www.personal.psu.edu/sah302/F...sourceMenu.fla
http://www.personal.psu.edu/sah302/F...escription.fla
http://www.personal.psu.edu/sah302/F...escription.txt

The other menus on the MainPage.fla won't load but I haven't even started them yet but if for some reason you want them, you can get the other menus at the /Flash/ directory level.

OK apparently problem 3 is gone now when I just uploaded it to the webspace it no longer happens /boggle.

Unloading A Movie
Hello,
I have a web page compleatly dedicated in flash for a game that I play online. I have seperated each page by 10 frames and jump from frame to frame. (This is after you pick Hi or Med Res Flash) I havent done an intro movie because the first frame wich is my home page the top logo is a movie within the movie. The top banner movie has sound and when the page loads if you imediatly click on one of my other links to go to a different page like frame 10 for the About GnA the top banner keeps playing its music. How do I unload a movie within a movie.

I think this is what I need to do.

Also. I want to link to a forum and have a forum link in my web page. How do I get the link to open a new page and leave my page there. Right now it goes to the forum on the same page.

Unloading A Movie-itself
I have 2 movies: MoviaA.swf and MovieB.swf. Inside movie A there is a button that when clicked will load MovieB.swf onto layer 10. Inside MovieB.swf is a button that when clicked, I want to unload itself (MovieB.swf) from MovieA.swf. How can I accomplish this?

Unloading A Movie From Within Itself
I have a movie [B.swf] which loads into an empty clip [empty] within a movie [A.swf]. Is it possible to unload movie B using a button within movie B? I'm trying various combinations but seem to be getting nowhere - if anyone out there knows what i mean, please reply....thanks!

Unloading A Movie
ok, when you click on a button in my site, it will load a movie into the main stage. what actions would I put in a button to make that loaded movie disappear? I tried "unload movie" but it unloads the whole site and not just the movie. any one can help?

Unloading A Movie
Hi I'm using Flash MX. I dropped a movie onto the stage as a short intro and now I want to unload it the problem is I can't get it to go away. I tried the unload command but it's still there. What am I doing wrong? Is there any other way to get rid of a movie clip?

Any help would be greatly appreciated.
Jer

Unloading A Movie
I need some help unloading a movie. I have a "loader" movie that plays and calls my web page. I am using the command:
loadMovieNum("KSWeb.sfw",1) in my loading movie to call and load my web page. In my web page I am using the command:
unloadMovie("loader.swf"), but as soon as I do that my web page does not display. If I take it out of the web page then the loader restarts and my web page flickers. Can someone help me please.
Thanks

Unloading A Movie
ok lets see if I can explain clearly..

I have a movie running in level 0 with a button that loads another movie onto level 1. On this Level 1 movie I have a button that closes it by using the "unload level 1 movie". What I want to be able to do is have the original level 0 movie goto and play at a certian frame.... any suggestions (something tells me this is not as hard as I think).

help!...... Glenn

Unloading A Movie
Hey, I loaded a swf into a target, and I am trying to make a button that unloads itself from the target. I want to do this because when I load the swf into a target on my main swf, I lose control of all of the buttons on my main swf. I think it has something to do with the fact that the swf I'm loading has a drag action(rotating car)......anyways, can someone help me? Thanks.

Help Unloading Movie
I have a menu with five buttons. ineed to be able to click each button in the menu unloading the currently loaded movie by animating it out then animating the new movie in. Any clues?

Unloading Movie
Hi I've few problem in unloading .swf movie from an application file. I've created following files.
Start.exe
firstmovie.swf
secondmovie.swf
thirdmovie.swf

From "start.exe", i'm loading "firstmovie.swf" using script as follows:
on (release) {
loadMovieNum("firstmovie.swf", 1);
}


From "firstmovie.swf", i'm loading "secondmovie.swf" as follow:
on (release) {
loadMovieNum("secondmovie.swf", 1);
}


From "secondmovie.swf", i'm loading "thirdmovie.swf" as follow:
on (release) {
loadMovieNum("thirdmovie.swf", 1);
}


From "thirdmovie.swf", I want to come back to a scene(called "home") in the "start.exe". Can anybody tell me what is the proper solution.

PLS HELP ME!!!

Unloading A Movie
I have a main movie in which I load other movie clicps (.swf) files.

On the external .swf files that I load into the main movie, I have a button on the .swf file that I added the unload code to.

on (press) {

gotoAndPlay(5); Goes and play a transistion in the main movie
unloadMovie("test.swf"); Then it unloads itself from the main movie
}

Guys I have no idea if I am making sense here. all I want to do is unload what I have loaded into the main movie by attaching the code to the external file to be loaded in.

Unloading A Movie
Greetings,
I'm trying to load and unload an external movie by using an empty movie clip. For example I have an empty movie clip with the instance name 'load' and when I press a button my movie called 'testmov.swf' appears within it.
This works fine but when it comes to unloading the movie I can't seem to make it go away. This is the script I am using;

load button
on (release) {
_root.loader.loadMovie("testmov.swf");
}

unload button
on (release) {
_root.loader.unloadMovie;
}

Any suggestions?
Many thanks
SA

Unloading A Movie
My flash movie will be positioned absolutely in my HTML page. Underneath it will be some other components (images and text).

The flash movie will act as an intro, and I want the movie to unload itself after it is finished playing, therefore revealing the components underneath it.. Is this possible? If so, how can I get the movie to unload itself and completely disappear from the page?


thanks!

Movie Unloading Itself.
I have two Flash files, parent.swf and child.swf.
I want the parent to load the child movie.
I then want to have a button on the child that unloads itself.

In the child I have the following code:

button1.onRelease = function()
{
unloadMovie(this._parent);
}

Is the above a good way to do what I want?

When the movie unloads, the dummy movie onto which I am loading onto 'seems' to dissapear. When I load the child movie again, it still seems to load fine.

I just wanted to double check that everything was OK.

ANY feedback to the above would be REALLY appreciated.

(I've attached my files (MX2004) if anyone just for reference.)

Thanks.


OM

Unloading Movie
I am loading a swf movie into an empty movie symbol.

I'd like to have a button within the loaded movie that will unload itself from the main timeline.


How can i do this?

on (release) {
_parent.gbl_mc.unloadmovie;
}



i do that and it unloads everything in my master movie.



thanks for the help in advance.

Unloading A Movie?
I'm using this snippet of code
onClipEvent(load){
this.duplicateMovieClip("strip2",1);
}
this works great, but when my maintimeline progresses the MC "strip2" still duplicates itself even though it's not on the stage.

Is there a command to get this to unload permenntly either on button click or just a main timeline action?

Thanks for any help in advance

Unloading A MOvie
hey, I have this code to load a movie.

cuadro5.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("photo.swf", "container");
container._x = 100 ;
container._y = 200 ;
}

How can I unload this movie when I clik another button?
thank you!

Unloading Movie
I have created a main page which has 4 links using the code

loadMovie("/oli/home.swf", "_root.loadInTo");

this works fine and i even managed to stop the buttons working in the background. However i have a "X" button which i want to kill/unload/remove the loaded .swf e.g. in this case on release remove home.swf. I cannot get it to work.

unloadmovie does not work as i am in a different .swf, so there is not a loadInTo MC which it would be removing from. is there some kind of "kill or self-destruct" command i can use?

any help or further questions. thanks.

Unloading Movie
unloadMovie();

----

on (release) {
unloadMovie("areyouready.swf");
}


Yeah It doesn't work when I have it in a button lol.. somebody help?

[F8] Unloading A Movie
hey there,

we're building a website and we have it set up where both the intro to the site and the site itself are in a single master.fla which brings in both the intro swf and the site swf. Its working fine except that once the intro is done and the site is loaded, the intro won't go away. Is there a way to unload the intro movie that i'm not seeing... i've tried unloadMovieClip and removeMovieClip but none seem to work...we just need to know how to make the intro...disappear

thanks

Help Unloading Movie
Hi friends... Somebody Help me. i did a Snow falls effect in flash with actionscript. That Script is....

------------------------------------------------------------------------
init = function () {
width = 800;
// pixels
height = 600;
// pixels
max_snowsize = 10;
// pixels
snowflakes = 50;
// quantity
for (i=0; i<snowflakes; i++) {
t = attachMovie("snow", "snow"+i, i);
t._alpha = 20+Math.random()*560;
t._x = -(width/2)+Math.random()*(1.5*width);
t._y = -(height/2)+Math.random()*(1.5*height);
t._xscale = t._yscale=50+Math.random()*(max_snowsize*10);
t.k = 1+Math.random()*2;
t.wind = -1.5+Math.random()*(1.4*3);
t.onEnterFrame = mover;
}
};
mover = function() {
this._y += this.k;
this._x += this.wind;
if (this._y>height+50) {
this._y = -20;
}
if (this._x>width+20) {
this._x = -(width/2)+Math.random()*(5.5*width);
this._y = -20;
} else if (this._x<-20) {
this._x = -(width/2)+Math.random()*(5.5*width);
this._y = -20;
}
}
init();

------------------------------------------------------------------------

successfully i done it. but now i want to Unload all attached movie... I try some methods... but i cannt do..

plz somebody help me....

Help With Unloading A Movie
i have a movie clip acting as a button, and i'd like for it load a swf to an empty "container" clip on release and then within that swf have a button for the user to click to unload it. what action do i add to that button within the swf?

Why Is Movie Not Unloading?
on (press) { gotoAndPlay("companypage",1);
}
on (releaseOutside, rollOut) {
gotoAndPlay(5);
}

Movie Unloading Itself.
is there a way for having a loaded movie unload itself through action scripting?

i have a movie called "a.swf", loaded into a movie called "nest" into level 1.

When "M" amount of frames have been processed i want "a.swf" to unload from "nest". This is what I have tried, but to no avail.


ActionScript Code:
if (t >= m) {
    _parent.unloadMovieNum(1);
}

Any suggestions? Cause i think i am out of ideas.

Unloading Movie
I have my main movie clip and then I have a load movie that then loads on top. This is fine however when the new swf loads on top of this the sound plays and you get double the sound.

How do you prevent this? You can't really unload the main swf becase you havent loaded it in the first place.

Help With Unloading Movie
So here's the situation.
I'm trying to create a flash movie that has a two buttons and a loader component.
One button will pull a video from one streaming source and load it using the loader, the other will pull from another streaming source and load it using the same loader.

When I click button 1 the stream loads up fine and in my FMS Admin console, I see the number of clients increase by 1. When I click button 2, the steam loads up and the total client increase again.
So basically, everytime I click the button, the number of clients increases even if I load the same stream over and over again. This will continue until I close the movie or the server limit is reached (I am currently using the development version of FMS).

My code is pretty simple.
It's as follows:
btn1.onPress = function() {
loader1.unload();
loader1.load("url1");
}
btn2.onPress = function() {
loader1.unload();
loader1.load("url2");
}

The issue here is that I can't get it to properly unload the movie so the connection with FMS remains. I've tried making button 1 load the streame and button 2 unload the stream, but no matter how much I press button 2, it would not unload and the stream will remain there running.

If anyone has any suggestions, it would be much appreciated.
Thanks.

Unloading SWF Movie
Hi,

I've been working on a CD-Rom presentation with Flash and so far I was mostly using AS1 and AS2 to built it. I started to learn some AS3 for a part of the presentation but now I'm running into issue, here's the main one:

I'm loading different SWF movie one on top of the other, and unloading them as needed, now this is very easy with AS1 (loadmovie and unloadmovie function are simple to use), but when I'm loading my file built with AS3 I can't figure out how to unload it. The AS3 movie is loaded on the Level 5, I just want to make sure that when I'm unloading the file it's not unloading everything else.

Can anyone help me.

Yann Poirier

Unloading Movie
WHat am I doing wrong.

I have a main movie lets call it main "A", I am loading in an "test.swf" file in to main movie "A", I want once the user finish viewing it they have the option to unload it - and be where they were.

This is what I did.

I append a button to test.swf - to unload itself once clicked. I used
on (release) {
unloadMovie ("fullstory.swf");
}

This does nothing at all.

So I tried this instead:
on (release) {
unloadMovie (0);
}

Well it works, but it unload everything including Main movie "A"


I don't know what I am doing wrong. I referrenced what I want to unload and it does not work..


Help .. anybody

Help Unloading Movie
Hi friends... Somebody Help me. i did a Snow falls effect in flash with actionscript. That Script is....

------------------------------------------------------------------------
init = function () {
width = 800;
// pixels
height = 600;
// pixels
max_snowsize = 10;
// pixels
snowflakes = 50;
// quantity
for (i=0; i<snowflakes; i++) {
t = attachMovie("snow", "snow"+i, i);
t._alpha = 20+Math.random()*560;
t._x = -(width/2)+Math.random()*(1.5*width);
t._y = -(height/2)+Math.random()*(1.5*height);
t._xscale = t._yscale=50+Math.random()*(max_snowsize*10);
t.k = 1+Math.random()*2;
t.wind = -1.5+Math.random()*(1.4*3);
t.onEnterFrame = mover;
}
};
mover = function() {
this._y += this.k;
this._x += this.wind;
if (this._y>height+50) {
this._y = -20;
}
if (this._x>width+20) {
this._x = -(width/2)+Math.random()*(5.5*width);
this._y = -20;
} else if (this._x<-20) {
this._x = -(width/2)+Math.random()*(5.5*width);
this._y = -20;
}
}
init();

------------------------------------------------------------------------

successfully i done it. but now i want to Unload all attached movie... I try some methods... but i cannt do..

plz somebody help me....

Unloading Movie And Then Some...
Last edited by kinkladze : 2006-03-08 at 16:46.
























I'm loading some FLV files to a movie and want to be able to make them automatically hide when they end. Any ideas how i can do this other than embeeding in a timeline and using the visable coding?

Cheers

Unloading Movie
I am trying to do something I know is simple and must be staring me in the face - but am going bonkers trying to figure it out.

I have this script
on (release) {
loadMovieNum("try.swf", 1);
_level0._alpha = "50";


}
on (releaseOutside, rollOut) {
loadMovieNum("", 1);
_level0._alpha = "100";
}

it loads the external movie 'try' when I clip on various buttons and as you can see when I releaseOutside or rollOut it unloads it and set the alph of the main movie back to 100.
What I would like to be able to do is - load the movie and set the alpha to 50 (as I do) then when the movie try has played through, unload it and set the alpha to 100 without using the "releaseOutside or rollOut "
I know this is possible - I have tried using if (_framesloaded >= _totalframes) but don't know enough to refer it to the try movie in level 1

I would REALLY appreciate ysomeones help

Unloading A .swf So The Main Movie Can Be Seen
I have my home page on the main timeline in the main movie of my flash show. When I try to get back there(after navigating to different areas), it dosen't do anything. It just stays put on whatever .swf that was loaded.
How do i get back to my main page or main timeline?

Unloading A Specific Movie
I was wondering what the action script would be for unloading a specific movie.

This is what I have:

the main movie is called t_nav.swf. In t_nav.swf I set a frame to load a movie called menu.swf into level 3. Inside menu.swf I've loaded another movie via the wildform smart clip, called es_box.swf. Inside es_box.swf I've set a frame to load a movie into level 1 called help.swf.

Here's where it's gotten tricky for me. In the movie help.swf onMouseover of a button I want to unload the movie es_box.swf. How do I do this? What would be the code for this?

Any help would be appreciated!

Thanks!!

Unloading Movie Clips
I am using this script in a button:

***
on (release) {
loadMovie ("vtour.swf", "_root.intro1");
}
***

Which loads "vtour" in place of the current MC "intro1".
My question is, how do I load my MC back in?
The MC is in the _root level. I want to do this with a button.

Thank for any help.
Thek

Unloading A Movie When It Is Finished
I am trying to have a movie unload when it is finished so that the navigation below it appears. I can not figure this out. if someone could answer this or point me in the right direction i would appreciate it. thanks

Unloading A Movie From A Target
i am using this code to load a movie into a target:

but.onPress = function() {
_root.createEmptyMovieClip("container", 1);
loadMovie("halfcasper.swf", "container");
container._x = 150;
container._y = 20;
}

what code would i use to close the clip using a button inside the clip?

Unloading A Movie Clip
Hey,

I have buttons which are 'hot' to open up a movie clip ina blank movie clip. This all works quite well, but now I need to unload the movie so the next MC can play in the blank MC.

In my MC, I want to have a button named 'Home' which when pressed will unload the current MC and return to the 'Home' or original state of the flash site.

How do I do this? Is this an unload movie action? If so, I have tried it but doesn't seem to work...

Thanks.

Setfocus() After Unloading A Movie
I am trying to set focus on a text box named txtField in level 0, straight after unloading a movie in level 1, but the following lines don't set the focus. Anybody any ideas why not, and how to make it work? Tks

unloadMovieNum(1);
Selection.setFocus("_level0._root.txtField");

Loading Unloading Movie
i have flash presentation
which i have divided into movies according to the links
the main flash is called home.swf
the first scean has the intro with the links
about us
contact us etc

the links when clicked goes to respective scenes about us etc in home.swf itself
in this about us scene i have 2 things
1. home button which goes to the intro page on the top layer
2. a load movie script to load the external flash file aboutus.swf

and like wise other links

1. how do i load the movie that the home button is visible above the loaded movie aboutus.swf
2. on click of the home button aboutus.swf is unloaded
3. on click of the home button it goes to the intro scean of home.swf

The movies are fullsceen 800*600 .

Any help would be gr8 .

Help Unloading A Movie Clip
Need some help unloading a movie clip.

I used the following code(thanks to the Flashkit board) to load a movie clip into level 1

_root.createEmptyMovieClip("holder", 1);
_root.holder._x = 16;
_root.holder._y = 126;
_root.holder.loadMovie("intro.swf");

The problem I have is that when I load a movie into level 2 which in turn loades another movie into level 1 and unloads itself, it keeps showing a glimpse of the intro.swf that was originally loaded into level one. Can anyone tell me why? I've tried unloading the intro.swf when a button is clicked but the damn thing won't unload.

To see what I'm talking about.

http://www.globalunderwriters.net/flash/index.htm

Help Unloading A Movie Clip
sorry hit refresh(double posted)

Copyright © 2005-08 www.BigResource.com, All rights reserved