Assuming you have no listeners attached to it or other external
references to the object, try this:

mc.removeMovieClip();
mc = null;
delete mc;

Yes, it's a pain in the ass, but you need it to keep footprint low on
mobile devices.

HTH,

Juan

On Tue, Aug 4, 2009 at 10:15 PM, Jim Lafser<[email protected]> wrote:
> Tried that. Have also verified that the depth is in valid range.
>
> --- On Tue, 8/4/09, Karl DeSaulniers <[email protected]> wrote:
>
>
> From: Karl DeSaulniers <[email protected]>
> Subject: Re: [Flashcoders] removeMovieClip, Flashlite3, AS2
> To: "Flash Coders List" <[email protected]>
> Date: Tuesday, August 4, 2009, 4:32 PM
>
>
> Hi, I have a suggestion, but someone may have a more in-depth answer.
> Have you tried just using:
>
> removeMovieClip(my_mc);
>
> ?
>
> Best,
>
>
> Karl DeSaulniers
> Design Drumm
> [email protected]
> http://designdrumm.com
>
>
> On Aug 4, 2009, at 3:15 PM, Jim Lafser wrote:
>
>> I'm having some trouble with removeMovieClip - it doesn't appear to be 
>> working
>> I have code that does an attachMovie that looks like:
>> var my_mt_mc:MovieClip = createEmptyMovieClip( ... );
>> var my_mc:MovieClip = attachMovie(linkageId, "aMovie"+depth, depth, init);
>>
>> and later I do
>> my_mc.removeMovieClip();
>>
>> If I list the properties of "this" using for(var i in this)
>>
>> I can see that aMovieX still exists.
>> I've tried doing a removeMovie on aMovieX, but that doesn't work either.
>> The movie clip has an onUnload method and I can see that it gets called.
>> Any suggestions?
>>
>>
>>
>>
>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to