If you want to randomize those, you can do it while you initiating the starting 
RGB value using your randomBetween function, like here under:

mc.R = mc.G = mc.B = randomBetween(0,255);              // #### starting RGB 
value


:-)

[...]   Sam Liu
Flash Developer - Languages Online
Office of Learning and Teaching
Department of Education and Training
 

T:  (03) 9637 2102    F:  (03) 9637 2060

 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter
Sent: Friday, 21 October 2005 1:10 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] dynaimc text animation


It doesn't seem to do it randomly just does the entire text box at once.

Corban Baxter      |      rich media designer      |      www.funimation.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Liu, Kai M
Sent: Wednesday, October 19, 2005 7:20 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] dynaimc text animation

One more line of code inside the onEnterFrame block:

if (this.R == this.nR && this.G == this.nG && this.B == this.nB ) delete 
this.onEnterFrame;

Without this line, your CPU will be exhausted. :-)


[...]   Sam Liu
Flash Developer - Languages Online
Office of Learning and Teaching
Department of Education and Training
 

T:  (03) 9637 2102    F:  (03) 9637 2060

 


Important - 
This email and any attachments may be confidential. If received in error, 
please contact us and delete all copies. Before opening or using attachments 
check them for viruses and defects. Regardless of any loss, damage or 
consequence, whether caused by the negligence of the sender or not, resulting 
directly or indirectly from the use of any attached files our liability is 
limited to resupplying any affected attachments. Any representations or 
opinions expressed are those of the individual sender, and not necessarily 
those of the Department of Education & Training. 
_______________________________________________
Flashcoders mailing list
[email protected] 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected] 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Important - 
This email and any attachments may be confidential. If received in error, 
please contact us and delete all copies. Before opening or using attachments 
check them for viruses and defects. Regardless of any loss, damage or 
consequence, whether caused by the negligence of the sender or not, resulting 
directly or indirectly from the use of any attached files our liability is 
limited to resupplying any affected attachments. Any representations or 
opinions expressed are those of the individual sender, and not necessarily 
those of the Department of Education & Training.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to