hi.
I’m trying to create a card game (as3.0).
I create the deck, and deal all the deck’s cards on stage (movie clips) but I want to be selectable.
So while I’m creating every card I add to them an event listener on MOUSE_DOWN that calls a function called selectedCard. For the moment, I want the selectedCard function to change the x location of the clicked movie clip (card).
How is it possible to tell the function which specific movie clip is selected in order to change it’s x location?
I hope I made my self clear.
Thanks in advance