I didn't know that about dispose. I guess you are right.
I changed my code and now I keep a reference of the
bitmap, so I can execute dispose() whenever I want.
Thanks guys,
Dimitrios
----- Original Message -----
From: "elibol" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, March 15, 2006 11:16 PM
Subject: Re: [FlashCoders] remove BitmapData
There is no getDepth() method for bitmapData Objects.
What's the problem with keeping a refrence to your bitmapData Objects? I
would argue that it's better practice to refrence them anyways, and as of
now, if you do not call dispose() and just remove MovieClips with bitmapData
attached, the bitmapData, as I know it, will remain in memory.
M.
On 3/15/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote:
Thank you Johannes.
But what if I need to remove bitmaps only at a certain depth?
Because I really don't want to clear all BitmapData from the movieclip...
Dimitrios
----- Original Message -----
From: "Johannes Nel" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, March 15, 2006 9:46 PM
Subject: Re: [FlashCoders] remove BitmapData
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" <flashcoders@chattyfig.figleaf.com>
> 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
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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