Jump to content
Search Community

Flex + gs

andre-mazzitelli test
Moderator Tag

Recommended Posts

I don't have the files right now, but when i get at home I'll write here... but what I tried to do is just:

 

Inside a

 

TweenMax.to(testButton, 1, {alpha:0});

 

and I added a button with a id = "testButton"...

 

I don't know if it's different in flex, i just did the same thing that I always do with flash.

 

Thanks

Link to comment
Share on other sites

The problem was that you were trying to run the code BEFORE the myButton object even existed - you need to tuck it into a function that gets triggered after Flex has read all the tags and instantiated the objects. Like this:

 



<br>			import com.greensock.TweenMax;<br><br>			private function init():void {<br>				TweenMax.to(myButton, 5, {x:200});<br>			}<br><br>		]]><br>



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