Frage

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

War es hilfreich?

Lösung

Use array notation as follows:

tileModel["property"] = 10;

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top