Share Posted March 27, 2011 Why is this tracing correctly, but not functioning? //Main Animator function animateit(Event:MouseEvent):void{ MenuHandlersanskey(); var thex = parseInt(inputx.text); var they:Number = parseInt(inputy.text); var stagger:Number = parseFloat(inputstag.text); var duration:Number = parseFloat(inputspeed.text); var thexscale:Number = parseFloat(inputscalex.text);; var theyscale:Number = parseFloat(inputscaley.text);; var therotation:Number = parseFloat(inputrotate.text); var thealpha:Number = parseFloat(inputalpha.text); trace (String('\"+'+thex+'\"')); TweenMax.allFrom(Boxes,duration,{x:('\"+'+thex+'\"'),y:"+100",scaleX:thexscale,scaleY:theyscale,alpha:thealpha,rotation:therotation,ease:theease},stagger); } Link to comment Share on other sites More sharing options...
Share Posted March 27, 2011 Just do x:String(thex) Link to comment Share on other sites More sharing options...
Author Share Posted March 28, 2011 Over thought it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now