for (var e in clip)
{
if(clip[e] instanceof BitmapDAta)
{
clip[e].dispose();
}
}
i think that could work.On 3/15/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote: > > "check if the object you are > encountering is an instance of bitmapdata and remove them" > > How exactly can you remove a bitmap data from a movieclip? > That's what I haven't figured out yet. > > Thanks, > Dimitrios > > > ----- Original Message ----- > From: "Johannes Nel" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <[email protected]> > Sent: Wednesday, March 15, 2006 9:19 PM > Subject: Re: [FlashCoders] remove BitmapData > > > you could loop through the movieclip, check if the object you are > encountering is an instance of bitmapdata and remove them. this could be > done in reomvemoveiclip so you know when you remove a movieclip it will be > sorted. > > On 3/15/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote: > > > > So that means I have to keep a reference of the BitmapData obj. > > What if I have dozens of bitmaps I attach on a movieclip and I > > don't want to keep references for all of them. > > > > Isn't there just a simple way to *clear* the movieclip at a specific > > depth? > > > > Thank you, > > Dimitrios > > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- j:pn http://www.lennel.org _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

