Question

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

Was it helpful?

Solution

Use array notation as follows:

tileModel["property"] = 10;

OTHER TIPS

To not have FDT flag this as an error, you'll need to adjust the parser to ignore it.

See screenshot:enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top