Thanks guys :) The locZ is what im looking for. But somehow, the maxInteger only works once for every sprite and it doesnt work when you click on the sprite for the second time. I work around it and set the global gHighestNumber property, and so far it works :)) Here's the code to share: on mouseDown me global gHighestNumber sprite(me.spriteNum).locZ = gHighestNumber + 1 updateStage gHighestNumber = gHighestNumber + 1 end on startMovie gHighestNumber = 5 -- put the number of sprites here end cheers, applepie ---------------------------------------------------- Drop this behaviour onto your sprites. The locZ property set to the max integer will essentially put the active sprite onto the uppermost "layer". Good Luck. - ----------------------------------------------------- property spritenum on mouseDown me sprite(the spriteNum of me).locZ = the maxInteger updateStage end - ----------------------------------------------------- I have 3 small swfs (from Flash) that i imported to Director and attached a kind of 'draggable' behavior. How do i bring one object to the frontmost when the object is clicked? I realize there'a a moveToFront for window. Is there any similar command that i can use for sprite? _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
