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




Unloading Movie Problems / Only When Online?



i'm having trouble with the unload movie command, my main movie loads a submenu onto level 1, which in turn loads a second sub sub menu onto level 2. i have a button with a script to unload the latter 2, and i also have frame scripts in the bottom most movie to unload each.

It works fine when it's offline (locally on my pc). but when i upload it to the internet the scripts and actions only unload the movie from the first level and not the second.

Are there any known conflicts between flash 5 unloadMovie action script and the internet?

Any help would be appreciated



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-18-2002, 02:46 PM


View Complete Forum Thread with Replies

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

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)

Help Unloading A Movie Clip.
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

Loading/unloading Movie
How can I load or unload a movie located on the main scene, from a movie clip, or vice versa.
Right now I can only load/unload a movie if located in the same timeline.

thanks!

Closing (Unloading?) A Movie
Hello,

For a Flash presentation I have a movie that loads above an already open movie. I'd like to be able to create a "close" button, but using the "unload" command doesn't work. Is there a different command to do this?

Thank you,
Lindsay

Loading And Unloading Movie
i`ve got this action that must be placed on a frame and targets a button with a loadMovie action and another button with unload... (see fla). it works so far but the problem is that it is not loading the movie where it should be. can u please tell me why???

thanks!!!!!

Unloading A Movie Clip Help
Hi

Straight to it...
I have two movie clips... when you press a button on the 1st movie clip i want it to go to the 2nd one, and unload the 1st one. Im having trouble in unloading the 1st one. Heres the 2 most logical efforts of mine.

Firstly, in a button on the 1st movie, i put the following code

on (release) {
unloadMovieNum(1);

loadMovieNum("slider2.swf",1);

}

This resulted in the second movie (slider 2) opening, but the other movie still playing in background.

I have tried rearraging the actionscript above so that the load movie comes 1st, but that simply fails to load in that occasion.

Can someone save me?

Unloading Movie Problem
Hi,
I have 3 swf :

menu.swf : this one load page1.swf into an empty movieClip(mcMain)
anim.swf : this one should unload page1.swf

From my Anim.swf I'm not able to unload the page1.swf placed in the empty movie clip.

I've tried the unloadMvie command but it doesn't work !!!

Any Idea

thanks

Unloading A Movie Clip
This is the AS on a button i have. Basically the button is playing a movieclip, as well as loading in a sub navigation set Movie clip into a container. The issue I am having is that I have 4 buttons, that all do this, they all load in just fine, but I need to unload the MC out of the container, before loading in the new sub nav.

Here is my code:


on (release) {
//load in subnavMC into the container
this.subnavMC.load(infoSubnav);
//Movieclip GotoAndPlay Behavior
this._parent.gotoAndPlay("nav2");
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("2");
//End Behavior
subnavMC.unloadMovie();
}

So subnavMC is the instance name of my Movicelip being used as a container. I tried to add that last line to unload, but it doesnt seem to work.

here is the temporary, work in progress swf:http://proofs.factor1studios.com/crossline_index.swf. eventually i will have nice buttons, with a pretty subnav, but you get the functionality issues I am having.

Can someone show me where I am going wrong?

thanks.

Unloading External Movie
If I load a movie using this method can unload the movie the same way?

bg_holder.loadMovie("movie1.swf");

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