Hi!
I am expecting problems while creating components.
I've defined property
[Inspectable(type="Number", defaultValue="12")]
public function get size():*{
return isNaN(Number(this._format.size)) ? 0 : Number(this._format.size);
}
public function set size(value:*):void{
trace('VALUE:', value);
this._format.size = value;
}
Flash will convert any user defined value to 0.
But if I'll change type to String
[Inspectable(type="String", defaultValue="12")]
public function get size():*{
return isNaN(Number(this._format.size)) ? 0 : Number(this._format.size);
}
public function set size(value:*):void{
trace('VALUE:', value);
this._format.size = value;
}
Expected value will be passed. How to fix Number type?
North America
Europe, Middle East and Africa
Asia Pacific