Jump to content
Search Community

as3 versions of draggable demos?

alpoman test
Moderator Tag

Recommended Posts

Hi and welcome to the GreenSock forums.

 

Sorry, we don't have an AS3 version of Draggable.

 

ThrowPropsPlugin though handles the mechanics of velocity-based animation: 

http://www.greensock.com/throwprops/

 

To snap to a grid you can use a function to run your end values through:

http://api.greensock.com/as/com/greensock/plugins/ThrowPropsPlugin.html (read about the end property)

Link to comment
Share on other sites

Thanks, I got it working well with flinging a ball-

 

the one thing I noticed, is that if your draggable object is smaller ( a ball, a missle, etc), you dont want to use the objects mouseup detection - you want the stage mouseup to trigger the mouseup function. If you use the objects, and swipe really fast, you wont be over the object anymore, and the mouseup wont trigger.  if you use the stage, it will always trigger - hope this helps someone -

 

andy

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...