Hello Muzak, On 5/30/07, Muzak <[EMAIL PROTECTED]> wrote:
Methods are added to the MovieClip prototype in the DepthManager class constructor, so you have to make sure the DepthManager gets compiled into your swf and that it's constructor is run before you use it's methods.import mx.managers.DepthManager; class TestCase extends MovieClip { // make sure DepthManager gets compiled private static var __depthManager:DepthManager; // declare DepthManager methods public var createClassChildAtDepth:Function; public var createChildAtDepth:Function; public var setDepthTo:Function; public var setDepthAbove:Function; public var setDepthBelow:Function; public var findNextAvailableDepth:Function; public var shuffleDepths:Function; public var getDepthByFlag:Function; public var buildDepthTable:Function;
thank you, adding private static var __depthManager:DepthManager; public var createClassChildAtDepth:Function; has shut up the compiler. And actually I've just realised, that for managing 32 playing cards in my Deck MovieClip a var depth:Number = 10; and attachMovie(..., depth++); should suffice (and I can just reset the depth var to 10, whenever I deal and place the cards for the new round). So I probably won't use DepthManager or even getNextHighestDepth() in this MovieClip... Regards Alex -- http://preferans.de _______________________________________________ [email protected] 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

