PDA

View Full Version : html text tagging



NiñoScript
January 13th, 2006, 04:30 PM
sorry for posting soo many things, i'm really getting exited about this contest, so u'll be seeing more of my entrys in the days to come :P


var espacio:TextField = _root.createTextField("texto_txt", this.getNextHighestDepth(), 0, 0, 300, 300);
//1
espacio.wordWrap = true;
//2
espacio.html = true;
//3
var nuevo:String = new String();
//4
var texto:String = new String("Power has never been this much fun\n\nNo computer on earth makes it as easy to work with digital photos, movies, music and the web as iMac. And now it all happens with blazing speed — powered by the revolutionary Intel Core Duo. With two processors built onto a single chip, this new Intel engine kicks iMac performance up to a whole new level. Coupled with the new ATI Radeon X1600 graphics processor and the world’s most advanced operating system, Mac OS X, iMac will run all your software, fast.");
//5
var tag_array:Array = [["i"], ["FONT ", "FACE='Courier' COLOR='#ff6030'"], ["b"]];
//6
tag_index = 0;
//7
onEnterFrame = function () {
nuevo += texto.substr(0, 1);
//8
texto = texto.substr(1);
//9
var primerTag:String = new String();
//10
var segunTag:String = new String();
//11
for (ind=0; ind<=tag_index; ind++) {
//12
primerTag += "<"+tag_array[ind][0];
//13
if (tag_array[ind][1] != undefined) {
//14
primerTag += tag_array[ind][1];
//15
}
primerTag += ">";
//16
segunTag += "</"+tag_array[ind][0]+">";
//17
}
espacio.htmlText = primerTag+nuevo+segunTag+texto;
//18
if (texto == "") {
//19
if (++tag_index == tag_array.length) {
//20
delete this.onEnterFrame;
//21
}
texto = nuevo;
//22
nuevo = "";
//23
}
};

icio
January 13th, 2006, 06:22 PM
Nice effect.

Seb Hughes
January 14th, 2006, 01:48 PM
Intresting.

McGiver
January 15th, 2006, 06:43 AM
surreptitious advertising!
nice effect, and did I mention:
surreptitious advertising!

hybrid101
January 15th, 2006, 07:07 AM
lol, mac advertising

NiñoScript
January 15th, 2006, 10:15 AM
i was waiting nokrev to find it :P

expensive_pen
January 15th, 2006, 11:54 AM
yeah that is pretty interesting

what makes OSX the most advanced operating system in the world? that kinda silly

McGiver
January 15th, 2006, 01:06 PM
what makes OSX the most advanced operating system in the world? that kinda silly

"We could't affort to have our own processors any more, so your new mac will contain one of those cheaper Intel Processors. It isn't likely that most applications will follow us on the new intel architecture within a short time - but hey you can still run old ones from the G-Architecture on a virtual machine (why do you think we took the intel thing with 2 cores). The ****heads at microsoft even announced that they won't support mediaplayer for macs any longer, but we think quicktime is better anyway."

would certainly be more honest, but this is from the marketing division

Sammo
January 15th, 2006, 01:25 PM
"We could't affort to have our own processors any more, so your new mac will contain one of those cheaper Intel Processors. It isn't likely that most applications will follow us on the new intel architecture within a short time - but hey you can still run old ones from the G-Architecture on a virtual machine (why do you think we took the intel thing with 2 cores). The ****heads at microsoft even announced that they won't support mediaplayer for macs any longer, but we think quicktime is better anyway."

would certainly be more honest, but this is from the marketing division
:lol::lol: