Answer the question
In order to leave comments, you need to log in
Various virtual machine results with/without object type casting (AIR 4.0)
Given: Flash Builder 4.7, AIR 4.0
var customLayout:ILayout;
customLayout = new HorizontalLayout();
(customLayout as HorizontalLayout).gap = 222;
customLayout.gap = 222;
ReferenceError: Error #1056: Cannot create property gap on feathers.layout.HorizontalLayout.
Answer the question
In order to leave comments, you need to log in
You can try to disassemble the swif file and see what actually happens after compilation. or look at the bytecode, if there is enough qualification. In any case, it looks very much like a compiler glitch.
And a long time ago I switched to using IntelliJ IDEA and a separately downloaded SDK in order to get away from such problems, because in "one_huge_project" such miracles in the flashbuilder began to climb through the line.
I suspect that these problems are related to the launch settings of the Java machine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question