-
getNextHighestDepth bug?
For some reason, getNextHighestDepth() only wants to work some of the time for me. Many times, for no reason it wil give my MC a negative depth value...usually inthe negative 16,000 range. Anyone ever see this before? What doesn this mean? Could this be just another effect of global warming?
-
Yep, I've seen it.
Items that are created in authoring mode are given a negative number. Items created dynamically at run time are given a positive number.
Global warming - nope just the way that flash works.
-
Fascinating. Thanks for the insight.
-
Monkey Moderator
fascinating, but not entirely true as you can dynamically create movieClips with a negative depth.
Items that are created in authoring mode are given a negative number. Items created dynamically at run-time are given a depth that you specify (usually people specify a positive depth).
getNextHighestDepth() will always give you a positive number (including 0).
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
-
So apparently, the theory is of the pos/neg depths is to help insure that you dont knock off manually placed MCs accidentally.
-
In what context does the getNextHighestDepth() return a negative number? Is there any code around that may disturb the returned value?
So apparently, the theory is of the pos/neg depths is to help insure that you dont knock off manually placed MCs accidentally.
Yes. One sign of that is that movieclips with negative numbers cannot be removed by removeMovieClip(). Even if they were put on stage at runtime. All movieclips on positive depths can be removed. Even though they were put on stage at author time. However putting a movieclip to an ocuppied depth during runtime will still remove whatever was occupiyng that depth.
/Mirandir
Last edited by Mirandir; 11-02-2005 at 08:52 AM.
-
It's very annoying.
My movie clip was created at a depth of -16383. I thought it was getNextHighestDepth, so I manually placed "2" (the depth it's supposed to be) as the argument in getNextHighestDepth. However, the mc is still placed in -16383!
What do I do now?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|