5/22/2010 9:57:52 AM
Title:
Dragdding controls
How to drag flash controls inside Air application during its runtime?
Provided that controls are displayed inside the application.
5/22/2010 10:15:27 AM
you can start dragging any control using
myControl.startDrag();
and stop dragging
myControl.stopDrag();
You can call the drag method on click and stop dragging the object on mouse release
5/22/2010 10:33:46 AM
a simple Adobe AIR application sample to demonstrate control dragging
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:Button id="dragMe" x="71" y="134" label="Drag me" mouseDown="dragMe.startDrag()" mouseUp="dragMe.stopDrag()"/>
</s:WindowedApplication>