Hey don't worry, actually you con't specify the data types of the elements of the array.But you can able to do using by [META DATA] .Look into following syntax
[ArrayElementType("String")]
public var stringArray:Array = new Array();
......
[ArrayElementType("Number")]
public var numberArray:Array = new Array();
....
You have foure options to specify as a data type of [ArrayElementType("-- ")].There are String,Number,Class and Interface.I hope that it would be helpful.You may get more useful tips often.. who knows...
No comments:
Post a Comment