Hello Muzak,

On 4/19/07, Muzak <[EMAIL PROTECTED]> wrote:
Because each card instance now uses the EventDispatcher class you can easily 
determine which card instance was pressed/released
through the argument passed to the event handler.

your suggestion is excellent as always - I'll try that!

May I ask you and others another related question?

The DepthManager seems to fit my card gaming
needs quite well, but there is one annoyance:

(please see here: http://preferans.de/flash/Deck.swf )

I (will) have a Deck component managing playing cards,
but I also have 3 other components representing the
players. I'd like those 3 components to be
above all cards, BUT: when user drags a card,
then that top card should be drawn above them.

Is that possible at all? I've tried this code:

import mx.managers.DepthManager;
import mx.controls.Loader;

var player1 =
   createClassChildAtDepth(Loader, DepthManager.kTop);
var player2 =
   createClassChildAtDepth(Loader, DepthManager.kTop);
var player3 =
   createClassChildAtDepth(Loader, DepthManager.kTop);

player1.move(280, 300);
player2.move(10, 10);
player3.move(580, 10);

player1.contentPath = player2.contentPath =
 player3.contentPath = 'http://preferans.de/images/avatars/4.jpg';

// and the deck component already placed in auth. env.


and played with kTop, kTopmost etc. but it doesn't help...

The docs mention some Cursor and Tooltip "levels".
Should I go there? (players = Tooltip, top card = Cursor)

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

Reply via email to