Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:49
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  The Library
| |-+  Technical Reference Area (Moderators: Flash-db, Musicman, BurtonRider1983, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  V2 Components and the trouble with depths
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: V2 Components and the trouble with depths  (Read 5798 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« on: 03/21/07, 15:20 »

If you use Flash 8, and you are frequently changing movieclips, you get into trouble usind V2 components.
Then you google around - and find out: there is a new DepthManager Class managing the depth of the V2 components.
Because this is so, it may overwrite, ore move your manualy set depth. Even getNextHighestDepth() might not give you a valid depth.
Movieclips, you'd like to remove, are not removable anymore. And others just disapear by the hand of a hungry ghost.

The only way to prevent all this, is using the depthmanager yourself.

With the depthmanager you only can load movieclips existing in your library.
But you can create a empty symbol (movieclip), and use it like you would use createEmptyMovieClip();

instead of createEmptyMovieClip() and then loadMovie, jus use a loader component.
Then the call looks like this:

myClip=createChildAtDepth("Loader",DepthManager.kTop,{_x:yourX, _y:yourY, contentPath:"path and filename to your picture or external movieclip"});

Have fun playing around with this class.

BTW: in future (Flash 9 AS 3.0) it will look similar - no createEmptyMovieClip anymore Wink
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything