StartDrag, possible to move two objects?
hi, reply. possible link x y coordinates of 2 objects if there startdrag on one, when dragged other move it?
many thanks,
frank
many thanks,
frank
frank,
> possible link x y coordinates of 2 objects
> if there startdrag on one, when dragged
> other move it?
sure thing. exact syntax differs between actionscript 2.0 , 3.0,
but 1 of ways handle onpress/mousedown
event starts dragging, separately, each object, paired
onrelease/mouseup event stops dragging. normal
drag-n-drop approach. in addition, then, assign mousemove
event handler updates x/y coordinates of other object in
reference 1 being dragged -- remove event handler when
the mouse lifted.
langauge using? i'll happy give relevant sample
code.
david stiller
adobe community expert
dev blog, http://www.quip.net/blog/
"luck residue of design."
> possible link x y coordinates of 2 objects
> if there startdrag on one, when dragged
> other move it?
sure thing. exact syntax differs between actionscript 2.0 , 3.0,
but 1 of ways handle onpress/mousedown
event starts dragging, separately, each object, paired
onrelease/mouseup event stops dragging. normal
drag-n-drop approach. in addition, then, assign mousemove
event handler updates x/y coordinates of other object in
reference 1 being dragged -- remove event handler when
the mouse lifted.
langauge using? i'll happy give relevant sample
code.
david stiller
adobe community expert
dev blog, http://www.quip.net/blog/
"luck residue of design."
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment