PEF
11-16-2004, 08:42 AM
I'm having trouble using the Inspectable meta-tag with the type set to Array.
During design time the parameters are set correctly, but by runtime the parameters aren't read at all. See the folowing example:
private var __dataLabels : Array;
[Inspectable (name="Data labels", type="Array", defaultvalue="label1,label2")]
[ArrayProps(elementType="String")]
public function set labels (aLabels : Array) : Void {
__dataLabels = aLabels;
}
Changing the type to String - just to check - aLabels has the value: label1
Am I doing something wrong or is it just one of the "funny" things One deal with, when writing components i Flash?
Hope someone is able to help me.
Peter
During design time the parameters are set correctly, but by runtime the parameters aren't read at all. See the folowing example:
private var __dataLabels : Array;
[Inspectable (name="Data labels", type="Array", defaultvalue="label1,label2")]
[ArrayProps(elementType="String")]
public function set labels (aLabels : Array) : Void {
__dataLabels = aLabels;
}
Changing the type to String - just to check - aLabels has the value: label1
Am I doing something wrong or is it just one of the "funny" things One deal with, when writing components i Flash?
Hope someone is able to help me.
Peter