I’m trying to pass a hexadecimal number into a function so that it can be used to format a text field. Does anyone know the correct syntax/data type to use here?
package {
public function process(answerSprites:DisplayObjectContainer,hexCode:uint):void {
txtfield.setTextFormat(hexCode);
// 1067: Implicit coercion of a value of type uint to an unrelated type flash.text:TextFormat.
}
// Another line of code calls process()...
process(answerSprites,0x85BB3D);
}