Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-27-2003, 06:05 PM   #1
madamada
Registered User
 
Join Date: Nov 2003
Posts: 28
Default how to stop/unload the external MC

Hi all, i've had a good look around and cannot find what must be a pretty simple solution...
I load an external MC on entering a frame:
loadMovie("foodMov.swf",1)
and it happily plays where and how it should but the prob is I don't know how to make it go away when any other button is pressed (there are 8 other buttons).
Any help much appreciated, thanks!
madamada is offline   Reply With Quote
Old 11-27-2003, 06:18 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy and Welcome...

You might be able to use unloadMovie() function to do whatever it is you are trying to do???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 11-27-2003, 06:22 PM   #3
divarch
Not a teenager
 
divarch's Avatar
 
Join Date: Nov 2003
Location: Belgrade, Serbia
Posts: 618
Send a message via MSN to divarch Send a message via Yahoo to divarch
Default

Well, you can make an array of all movies then load and unload separately.

But, you don't want to do that.
Just load them all in the same level, that way only one can be present at a time.

Cheers
edit I definately misinterpreted the problem, I supposed other buttons loading different movies, sorry
divarch is offline   Reply With Quote
Old 11-27-2003, 06:31 PM   #4
madamada
Registered User
 
Join Date: Nov 2003
Posts: 28
Default

Thanks... stupid as this sounds tho, what do i attach that unloadMovie() actionScript to? The external MC plays in a corner of the main movie, and I need it to stop playing when a button is pressed in the navigation from the main movie.
madamada is offline   Reply With Quote
Old 11-27-2003, 06:37 PM   #5
Colin Campbell
Senior Member
 
Join Date: Jun 2003
Posts: 2,090
Default

ActionScript Code:
loadMovie("foodMov.swf",1) // unload it is: unloadMovie(1); //I believe thats it
Colin Campbell is offline   Reply With Quote
Old 11-27-2003, 06:38 PM   #6
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Um... I don't really know where it might be... It all depends on how your movie is structured... But one thing is that you have to have the command within this place where you do this...
Quote:
when a button is pressed in the navigation from the main movie.
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 11-27-2003, 06:55 PM   #7
madamada
Registered User
 
Join Date: Nov 2003
Posts: 28
Talking

Thanks for all the help. I found something that works:

loadMovie("foodMov.swf",1) LoadedMC=true;

then on all other navigation in that frame of the main movie:

on (release) {
if(LoadedMC)
{unloadMovie(1);
LoadedMC=false;
}
gotoAndPlay(target);
}
maybe a bit longwinded i dunno but does the trick
madamada is offline   Reply With Quote
Old 11-27-2003, 07:06 PM   #8
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

[useastags]
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:04 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.