Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-17-2004, 02:17 PM   #1
LostInRecursion
Language Lizard
 
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
Default Remove All Movie Clips

Hi all,

In my application, I build a layout of seats depending on the user's selection. The number of seat movie clips ranges from 100 - 600 for any one section.

I use a setInterval to build my seats and assign them properties based on the Seat class I created which extends MovieClip.

When a user clicks a new section, how can I remove all the MovieClips in one shot?

I don't think a for loop will work in case the section is large. It could freeze the player. Any other suggestions?

-K
LostInRecursion is offline   Reply With Quote
Old 09-17-2004, 03:05 PM   #2
Tink
Addict
 
Tink's Avatar
 
Join Date: Nov 2001
Location: London
Posts: 2,128
Default

how bout when u are attaching them, you attch them all inside another main clip. then just remove tha main clip.
Tink is offline   Reply With Quote
Old 09-17-2004, 03:47 PM   #3
LostInRecursion
Language Lizard
 
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
Default

Actually the seats are loaded into a Scroll Pane - But the function lives in there so I wasn't sure how to maintain state once I unload the SWF.
LostInRecursion is offline   Reply With Quote
Old 09-17-2004, 05:08 PM   #4
Tink
Addict
 
Tink's Avatar
 
Join Date: Nov 2001
Location: London
Posts: 2,128
Default

how bout you put another clip inside the scrollPane, the attach them all inside this clip, then just remove this clip.
Tink is offline   Reply With Quote
Old 09-17-2004, 08:41 PM   #5
LostInRecursion
Language Lizard
 
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
Default

Perfect. It's always something simple isn't it? Thanks!

-K
LostInRecursion 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 06:44 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.