I have a class with 3 variables
class cs {
public var item1;
public var item2;
public var item3;
}
I am importing this class in my main AS file and assigning values to
the variables
var cs_Instance:cs = new cs();
cs.Item1 = '1';
cs.Item2 = undefined;
cs.Item3 = '3';
I want to iterate through the values of cs_Instance and make identify
which item is undefined.
for (item:Object in cs_Instance) {
if (item == undefined) {//do something}
}
THIS DID NOT WORK.
It returned the Item name from the class not the actual value. So the
value of item within the for loop is set to Item1(Item2..Item3)
I am coming from a .NET environment and this same method is fine
there. What is the solution in Flex?
Thanks,
Goran