A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: changing color of input

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Location
    Brighton U.K.
    Posts
    206

    changing color of input

    Hi

    is there any actionscript for changing the background color of an input text box.

    thanks

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    textfield.backgroundColor="0x000000";

    see: properties of the textfield object (MX only)

    gparis

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Location
    Brighton U.K.
    Posts
    206
    cheers that worked, solved one of my problems agian, your on a roll today.

    can you apply the same AS to a dynamic box to

  4. #4
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    [edit]too slow [/edit]

    you can use,

    instanceNameOfTextfield.backgroundColor = 0xff0000;

    set the background to red (note the textfield should have a border)

  5. #5
    Senior Member
    Join Date
    Jan 2003
    Location
    Brighton U.K.
    Posts
    206
    yeah thanks it all works, with dynamic text boxes too.

    Thanks

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