Jump to content
Search Community

Where in this code should I put onStart:blitMask.enableBitmapMode

Big Bad Roo test
Moderator Tag

Recommended Posts

Gidday

 

I haven't nailed this yet - where does it go?

 

           ThrowPropsPlugin.to(mc, {throwProps:{
                                         y:{velocity:yVelocity, max:bounds.top, min:bounds.top - yOverlap, resistance:300}
                                     }, onUpdate:blitMask.update, onComplete:blitMask.disableBitmapMode, ease:Strong.easeOut
                                    }, 10, 0.3, 1);
 

Cheers

Link to comment
Share on other sites

That's the code that animates mc. It appears that is a code snippet from one of our demos/docs so it should most likely go in a MOUSE_UP event handler and execute after velocityx and velocity are known values.

Link to comment
Share on other sites

ThrowPropsPlugin.to(mc, {throwProps:{

y:{velocity:yVelocity, max:bounds.top, min:bounds.top - yOverlap, resistance:300}}, onUpdate:blitMask.update, onStart:blitMask.enableBitmapMode, onComplete:blitMask.disableBitmapMode, ease:Strong.easeOut

                                    }, 10, 0.3, 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...