my_fmt.italic= true; |
myTxt.setTextFormat (my_fmt); myTxt.setTextFormat (index, my_fmt); myTxt.setTextFormat (beginIndex, endIndex, my_fmt); |
myTxt.text = "Waiting..."; txtFmt = new TextFormat(); with (txtFmt) { bold = false; italic = false; size = 24; color = 0xFF0000; } myTxt.setTextFormat(txtFmt); charFmt = new TextFormat(); with (charFmt) { bold = true; italic = true; size = 48; color = 0x00CC00; } var i = 0; _root.onEnterFrame = function() { var long = myTxt.text.length; myTxt.setTextFormat(i, charFmt); if (i>0) { myTxt.setTextFormat(i-1, txtFmt); } else { myTxt.setTextFormat(long-1, txtFmt); } i++; i %= long; }; |
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |