Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-06-2001, 05:54 AM   #1
pdh
Registered User
 
Join Date: Jul 2001
Posts: 6
Default

i have a movie ("mod1.swf") loaded into a blank movie clip (blank_mod1). from a button within a movie clip on the main timeline, i would like to unload this movie from a variable (currentMod). the reason why i need to unload from a variable is that i need to unload different movies depending upon which movie you are in (i change the variable definition during the timeline).

what i have done is load a movie and define the currentMod variable to be blank_mod1. from the button, i try to unload the movie with:

unloadMovie (_root.currentMod);

this does not work. it does work, however, when i unload the movie directly such as:

unloadMovie ("_root.blank_mod1");

i have tried different versions with/without quotes. no luck. anyone have some advice??? (please??)

thanks.
pdh is offline   Reply With Quote
Old 08-07-2001, 04:13 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

notice that it works with "_root." but you variable string is only "blank_mod1". Make it "_root.blank_mod1" then using a variable it should work fine
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash 4 creating an array on screen with duplicate movieclip Eend ActionScript 1.0 (and below) 8 02-18-2005 09:07 PM
Unloading Empty Movie Clips?? Kenzo ActionScript 1.0 (and below) 4 12-11-2004 10:39 AM
problem with a variable and unloading movies jero33 ActionScript 1.0 (and below) 1 03-18-2004 08:53 PM
Using Variable as Movie Clip Name donaloh Simple Stuff (Newbies) 2 12-03-2002 03:11 PM
Loading variable to movie clip Qutaibah ActionScript 1.0 (and below) 1 04-08-2002 06:36 AM


All times are GMT. The time now is 08:42 AM.

///
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.