|
Create a file:
MoveEffectsDemo.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundAlpha="0"> <mx:Panel title="moveEffect Demo" width="100%" height="100%" <mx:Label text="Click anywhere on the canvas to move the phone to that position"/> <mx:Canvas id="canvas" width="100%" height="100%" mouseDown="img.move(mouseX - 40, mouseY - 80)"> <mx:Image id="img" source="@Embed('../assets/products/Nokia_6630.png')" </mx:Canvas> </mx:Panel> </mx:Application> |