Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 10-06-2009, 04:22 AM   #1
froinds
Registered User
 
Join Date: Jul 2009
Posts: 26
Default Animating color of text with TweenMax

Hello,
Basically I have a menu with submenus. The submenu is a Sprite with two children, one is a square for the background and the text on top.
On mouse over, I can change the color of the first child, the background, but not the color of the text, the second child.
Here is the code.

ActionScript Code:
private function subMenuItemOver(evt:MouseEvent):void {      TweenLite.to(evt.target.getChildAt(0), 1, {tint:0x9ca26e}); // Works      TweenLite.to(evt.target.getChildAt(1), 1, {tint:0xffffff});    // Doesn't work }

The menus are created from an xml document and the color is assigned with TextFormat.

I have no idea why I can't animate the color of the text.

Thanks in advance.
froinds is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.