Create Text Field FlashMX 106 (lets have fun!)

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

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.