Archive for the 'Flash' Category



Random Colors in Flash

Want to set something to a random colour in Macromedia Flash? Once upon a time I did, and I found this code which did the trick.
Call changeColor(<target>) to set the color of <target> to a random one
Click here to view the below code as plain text
CODE:

function changeColor(targ)

{

 myColor = new Color(targ);

 myColor.setRGB(Math.random()*0xffffff);

}




About

You are currently browsing the DiscoMoose weblog archives for the 'Flash' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Categories

Categories