Magic, that's it. I am not using any prebuilt components, but I have
made some components that extend UIObject, so I suspect that is why
getNextHighestDepth returns 1048576, which I guess is outside the valid
range. The documentation tells me to use the version 2 DepthManager
class, but I am not sure how I would use that in place of attachMovie
and getNextHighestDepth. Any suggestions?
If I can't do it simply with the DepthManager classs, then I guess I
could pick a number and check against getInstanceAtDepth until I find
an available depth. Seems dumb.
Eff. Better yet, I think I'll just put an empty movie clip on the stage
and attach something to that.
On Dec 14, 2005, at 4:29 PM, [EMAIL PROTECTED]
wrote:
Message: 16
Date: Wed, 14 Dec 2005 22:32:23 +0100
From: Hans Wichman <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] can't remove a clip attached to root???
To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com>,
flashcoders@chattyfig.figleaf.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Hi,
is this in an empty movie, or a movie with components in it?
Try and trace the depth, if its higher than a certain number (which
may be
caused by components on your stage) you have to swap it to a lower
depth first.
greetz
Hans
At 10:27 PM 12/14/2005, Jason Rayles wrote:
Is there a reason that a movie clip attached to _root cannot be
removed
using removeMovieClip?
if I do
_root.attachMovie("square", "s", _root.getNextHighestDepth());
then _root.s.removeMovieClip(); does not remove the clip.
However
if I do
mc.attachMovie("square", "s", mc.getNextHighestDepth());
and mc.s.removeMovieClip(); works like a champ.
Flash 8, as 2.0. I am thoroughly stumped.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders