View Full Version : Inspectable type="Array"

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")]
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.


11-16-2004, 12:27 PM
hi and Welcome to As.Org

class test {
[Inspectable(name="Ahha", defaultValue="One,2,TresS")]
var MyVar:Array;
function test() {

11-16-2004, 12:36 PM
Thanks - this works!
But it don't explain why the previous suggestion won't work.
Thanks again.