Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
notimethanks

allFrom Bug

Recommended Posts

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

Just do

 

x:String(thex)

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.
×