Search code examples
actionscript-3apache-flexmove

how to move an object to the center of the stage in flex 4


I have an Object on stage, and on click I would like it to move to the center of the stage.
I know that I am supposed to use:

<s:move /> 

But I just don't know how!


Solution

  • instead of using attribute x... i used mouseX and everything worked as expected!