1. Home
  2. Computing & Technology
  3. Animation

ActionScripting Basics: .textColor with Dynamic Text Fields

By Adrien-Luc Sanders, About.com

2 of 4

After completing the setup of the Movie Clip object and text field, right-click on the Movie Clip and select Actions to open the Actions pane. Below the existing clips, we’re going to insert a new one by drilling down to Objects->Movie->TextField->Properties ->textColor and double-clicking to add it:

onClipEvent (mouseDown) {
redwidth=getProperty ( _root.red, _width) ;
_root.displayvalue.text=redwidth;
.textColor;
}

Currently, only the individual function is defined, without parameters. We need to define the text field affected, and the color.

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. ActionScripting Basics: .textColor with Dynamic Text Fields

©2009 About.com, a part of The New York Times Company.

All rights reserved.