To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-17-2006, 11:37 AM   #1
FlashSmashed
Member
 
Join Date: Jun 2006
Location: Leeds UK
Posts: 84
Looping through MCs and unload

Hi

I am back again with another problem!!
first, I have an emptyMovieClip which I attach other mcs to it,shouldn't a mc get unloaded when I attach a new one? (I think it should!) and it works fine but when I call another function ( which is a basic duplicate function that duplicates some mcs), my mcs don't get unloaded and I don't understand why? so if anyone can explain that to me it would be great.

but for now I am going to use a loop to make sure all the mcs get unloaded,
my mc (instance names) are something like this: mc1,mc2,mc3...(so i=1,2,3,..)
and my loop is:

for(n=1; n<=i; n++)
{

_root.mcHolder.mc+n.unloadMovie();
}

but this doesn't seem to work, the problem is that mc+n won't return the right value(which should be mc1,mc2,mc3....).

any idea what I should replace it with?

Thanks in advance.
FlashSmashed is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:26 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.