Featured post
actionscript 3 - Flex Smooth Drag of Objects -
i'm trying create object can moved in flex 4.
i tried http://help.adobe.com/en_us/flex/using/ws2db454920e96a9e51e63e3d11c0bf64595-7fed.html in examples leaves actual object (at pause) until drag completed, i'm looking update done/shown while drag still on ... in lines i've tried: problems replicating drag-and-drop mouse events ... here dint understand 'what mousehelper & eventhelpers'.
also tried this: flash as3 custome dragging using mouse_move event movement not smooth, jig-jag.
any suggestions welcome.
regards
here's an example 5 ways of dragging (four commented out):
* mouseevent.mouse_move
* event.enter_frame
* startdrag(true)
* timer(10)
sets x = mousex
y = mousey
every 10ms
* timer(100)
creates tween mousex, mousey
instead of applying values
if move mouse fast enough of modes (at 30fps) if sprite chasing mouse cursor, not being dragged, , animation not smooth @ all. smoothest animation provided tweener, mode shows bigger average distance between mouse cursor , sprite being dragged.
, btw fast dragging e.g. windows explorer makes blink because doesn't have enough time rendering @ every position
- Get link
- X
- Other Apps
Comments
Post a Comment