troubleshooting Question

Actionscript RemoveMovieClip Issue

Avatar of daveboyle99
daveboyle99 asked on
Adobe FlashWeb Applications
3 Comments1 Solution409 ViewsLast Modified:
Hi All,

I've attached some movieclips, and need to remove them before attaching more. The only success I've had is with the two lines that are commented out in the actionscript below  (ie where I delete them by name). As there are quite a few I have tried to generate the names through a loop, and then put that name into a delete satement, but its not working. Can anyone tell me what I'm doing wrong or give me an alternative method please .... ???

            for (u = 0; u < 50; u++) {
            
            delname = "content_mc.client_list_mc.august"+u+"_mc";
            trace("delname "+delname);
            delname.removeMovieClip();
            //content_mc.client_list_mc.august1_mc.removeMovieClip();
            //content_mc.client_list_mc.august2_mc.removeMovieClip();
      
            }
ASKER CERTIFIED SOLUTION
Antonio Estrada
Engineering Manager / Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros