Hi,
i got the following code:
effect = function (txt) {
string = txt;
total = string.length;
var ta:Array =[]
for (i=0;i<total;i++) {
ta.push(string.substr(0, i+1))
}
i=0;
onEnterFrame = function () {
if(i<total-1) {
i++
text.text = ta[i] +"_";
}else{
text.text = txt;
delete this.onEnterFrame;
};
};
};
effect("blah blah blah blah");
This writes in a dynamic text field a string with a "typewriter" effect....
I saw, by the way, in some websites, that the typewrite effect is performed
with an "easeOut" effect and i guess
it can be achieved by using the tweener class by Zeh, but I have no idea
about how to implement in my code.
Any help???
Hasta...
--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com