ActionScript 3 Random Color

I wanted to test something with different colors, turns out it’s easy to pick a random color:

var box:Shape = new Shape();
var random_color:Number = Math.random() * 0xffffff;, 1);, 0, 100, 100);;

Comments: None so the first!

Leave a reply

Your email address will not be published. Required fields are marked *

Hope comes from within, not without. There is no light to show the way but that which some of us carry within us. Be a lantern, not a shadow. Those of us that can, must walk the darker path so that others may follow.

— Asurmen, The Darker Road