The startDrag Function makes target movie clips draggable while the movies are playing. You can drag only one movie clip at a time. When a startDrag() operation executes, the movie clip stays draggable until it is stopped explicitly by the stopDrag(), or until another startDrag() action is called for another movie clip.
This functions is supported in Flash Lite if the “system.capabilities.hasMouse†or System.capabilities.hasStylus are “Trueâ€Â
Syntax
startDrag(target:Object [, lock:Boolean, left:Number, top:Number, right:Number, bottom:Number]) : Void
target:Object is the path of the movie clip.
lock:Boolean –this is optional and it is a Boolean value that specifies if the draggable movie is locked to the center of the mouse “True†or locked to where the user first clicked the movie clip “falseâ€Â.
right,bottom, left,top:Number(this is optional) and they are values of the coordinates of the movie that specify the constraint rectangle of the movie clip.
Adobe Flash startDrag function
The startDrag Function makes target movie clips draggable while the movies are playing. You can drag...
adobe flash startdrag function
Also tagged with one or more of these keywords: adobe flash, startdrag function
Software →
Adobe Flash →
Making games with Adobe FlashStarted by DesGuru, 16 Dec 2013 adobe flash, making games |
|
|
||
Software →
Adobe Flash →
How to recover damaged or corrupt files Adobe FlashStarted by SmartWeb, 07 Nov 2013 adobe flash, corrupt files and 1 more... |
|
|
||
Software →
Adobe Flash →
Adobe Flash optimization techniquesStarted by SmartWeb, 07 Nov 2013 adobe flash and 1 more... |
|
|
||
Software →
Adobe Flash →
Types of Adobe Flash animationStarted by SmartWeb, 05 Nov 2013 adobe flash, animation types |
|
|
||
Software →
Adobe Illustrator →
HelloStarted by uzairdesigner, 20 Oct 2013 adobe flash, making games |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users