header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Vipin
Points:0
Posts:0

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.



1
MaxFlash
Points: 600
Posts:0
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


2
Brad
Points: 750
Posts:0
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>



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions