A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Alpha textBox

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    Alpha textBox

    Hello,

    I have tried to get a textbox to have an alpha value of 40 and leave the border and text solid. I have repeatedly failed. The code:

    textfield._alpha 40

    changes everything. I only want to alpha out the textfield background. Anyone?

  2. #2
    Junior Member
    Join Date
    May 2006
    Posts
    11
    I'm very new to actionscript so I could be completely off, but I had a problem getting my text to fade into a dynamic text box. I didn't realize that the text had to be embedded first in order to be effected by _alpha. Maybe you could turn off the embed function and just create a separate instance name for the border???

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    Embedded Fonts in code

    Thanks for the reply, I have tried using the embedded font. Here is the code:

    Code:
    this.createTextField("test1_txt", 1, 20, 20, 80, 60);
    test1_txt.background = true;
    test1_txt.backgroundColor = 0xFFFFFF;
    test1_txt.embedFonts =true;
    test1_txt._alpha =40;
    test1_txt.text = "here I am....";

    The text becomes totally invisible in this attempt. I to am just learning, it is frustrating

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