Quantunet.com

My Account

Joins Us

Flash Actionscript QuickSkills
Draggable box (Actionscript)  

 

Download this .fla

Click here to see how to create this random motion.

this.createEmptyMovieClip("line",1);

box1.lineStyle(1,0x000000);
box1.beginFill(0xFF0000);

box1.moveTo(0,0);
box1.lineTo (0,20);
box1.lineTo (20,20);
box1.lineTo (20,0);
box1.lineTo (0,0);

box1._x = 100;
box1._x = 200;

box1.onPress = function () {
this.startDrag ();
}
box1.onRelease = box1.onReleaseOutside = function () {
this.stopDrag ();
}

 

© 2007 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us