Optimized for her pleasure: hex = ["00", "33", "66", "99", "CC", "FF"]; wsp = []; var r, g, b; r = 6; var x = 0; while (--r -(-1)) { g = 6; while (--g -(-1)) { b = 6; while (--b -(-1)) { wsp[x++] = "0x" + hex[r] + hex[g] + hex[b]; } } } trace(wsp);
_______________________________________________ Flashcoders@chattyfig.figleaf.com 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