Jump to content


convert string to the ease type

Recommended Posts

I am loading some variables in through XML. One of them is ease type ie: Expo.easeOut


Since its a string in the XML, its not working when I put the XML node where the ease is supposed to go. I tried typing it to an object but that didnt work.

Link to comment
Share on other sites

Have you tried using the EaseLookUp.as class? This might work:

import com.greensock.easing.EaseLookup;
TweenLite.to(mc, 1, {x:100, ease:EaseLookup.find("Expo.easeOut")});

Link to comment
Share on other sites

Ahh perfect..that is exactly what I needed

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.