Skip to content


Create Text Field FlashMX 106 (lets have fun!)

ActionScript:
  1.  
  2. hDistance = 20;
  3. vDistance = 0;
  4. buttonsInfo = new Array("About Us", "Contact Us", "Gallery One", "Gallery Two", "Gallery Three", "Visual", "Guest", "Clients", "Account", "Search");
  5. textDesign = new TextFormat();
  6. textDesign.font = "Arial";
  7. textDesign.size = 15;
  8. textDesign.bullet = false;
  9. textDesign.underline = true;
  10. textDesign.url = "http://www.helmutgranda.com/";
  11. for (i =0;i<10;i++){
  12.    this.createTextField("textHolder"+i, i, 120+(i*vDistance),120+(i*hDistance),100,19);
  13.    this["textHolder"+i].text = buttonsInfo[i];
  14.    this["textHolder"+i].border = true;
  15.    this["textHolder"+i].borderColor = "0xaa"+i/2+i/2+i/2+i;
  16.    this["textHolder"+i].html = true;   
  17.    this["textHolder"+i].selectable = false;
  18.    this["textHolder"+i].textColor = "0xaa"+i*2+i*2+i*2+i;
  19.    this["textHolder"+i].setTextFormat(textDesign);
  20. }
  21.  
  22.  

Posted in Flash Bits.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.