I have a button that changes the RBG of an object like this:
[AS]
on(release) {
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (_root.square);
myColoredObject.setRGB(myColor);
}
[/AS]
how can i make it so it displays the hex number for the color in a dynamic text box?