Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-16-2003, 06:25 PM   #1
Registered User
Join Date: Jul 2001
Location: Purdue University
Posts: 51
Send a message via ICQ to bimal Send a message via Yahoo to bimal
Default remove movie clip

if ther is a movie clip, whose name is made up of (x + y + "1")
and if we make a variable a such that

var a = eval("_root." + x + y + "1");

how do i use the removeMovieClip action on the movie clip

a.removeMovieClip(), delete a does not work

a.unloadMovie() just unloads it not deletes it

is there a way to do this or do i have think of another way of implementing my stuff?

bimal is offline   Reply With Quote
Old 04-16-2003, 07:31 PM   #2
Join Date: Jun 2001
Location: portland, or
Posts: 8,106

depends on how your code is layed out...

if a.remveMovieClip() has the same scope where you defined a, then it should work, if it is outside the scope of where you defined a, then you will need to refer to the actual instance name of the mc you want to remove, not temporary name you gave it.
what the hell was i thinking?
tg is offline   Reply With Quote

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 06:33 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.