mc.fixo = true;
error:
openfl.display.MovieClip has no field fixo
mc.fixo = true;
error:
openfl.display.MovieClip has no field fixo
You can’t just give an instance of the MovieClip class an arbitrary field or property.
Yeah, this is one of the differences between Flash and OpenFL. In Flash, the MovieClip
class is dynamic
, so you can add any custom property that you want, but the same isn’t true in OpenFL. You’ll need to find another way to store your fixo
property. One way might be to create a subclass of MovieClip
and add your own public var fixo:Bool
to it.