A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Basic Action Script Question

  1. #1
    Member
    Join Date
    May 2002
    Posts
    43
    Hello all!
    I'ed like to know how to change a dynamic text's color.
    I know there's a textfield.textColor action but I don't know how to use it.
    This is what I tried:
    Code:
    text.textColor = (0xFF9900);
    And...
    Code:
    text.textColor = (0*FF9900);
    Both won't work...

    Thanks for any help!

  2. #2
    Senior Member dipkya's Avatar
    Join Date
    Mar 2001
    Location
    Mumbai (India)
    Posts
    158
    Is this in Flash5(dumb question may be)?


  3. #3
    Senior Front End Developper
    Join Date
    Dec 2000
    Location
    Montréal
    Posts
    568
    there's no such method in Flash 5...

    you can put the textfield in a movie clip and change the color using the color object.

    let's put the textfield in a movie clip called mc

    textColor = new Color(mc);
    textColor.setRGB(0xFF0000);
    delete textColor;

  4. #4
    Owner of the ™ thread tublu's Avatar
    Join Date
    Nov 2000
    Posts
    2,430
    only Movieclips ahve properties

  5. #5
    Senior Member
    Join Date
    Apr 2002
    Posts
    131
    you click in the text box so that it is where you can put text in and choose the color in the color menu second column in the tools menu

  6. #6
    Member
    Join Date
    May 2002
    Posts
    43
    Well, I am working in Flash MX although I thought it wouldn't matter.
    you click in the text box so that it is where you can put text in and choose the color in the color menu second column in the tools menu
    I want to change the color with the action script.

    Is there no other way to change a dynamic text but turn it to MC?

  7. #7
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    Try making the text black then changing the tint color.

  8. #8
    Senior Front End Developper
    Join Date
    Dec 2000
    Location
    Montréal
    Posts
    568
    Try MX Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center