سؤال

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

هل كانت مفيدة؟

المحلول

Use array notation as follows:

tileModel["property"] = 10;

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top