actionscript-3fdt

Could not resolve variable (may be a dynamic member)


I created variable with datatype object and created property for this object and asignt value to it.

var tileModel : Object = new Object();
tileModel.property = 10;

But I got warning in FDT Ide. Could not resolve variable (may be a dynamic member)

I have found that possibly solution might be use /*FDT_IGNORE*/ but I would rather solve it some clasic way.

Thank you for every answer


Solution

  • Use array notation as follows:

    tileModel["property"] = 10;