Right, but I don’t see any way around this. Simple property access will not work for the reasons I wrote above.
On Nov 15, 2015, at 5:49 PM, Alex Harui <aha...@adobe.com> wrote: > The compiler does not know that myXML is from myClass so it would simply > add a property access to foo. Now we could require that folks more > strongly type their code by adding in > > trace((event.target.myXML as XMLList).foo); > > > But we might get complaints. The fact we normally don’t need all that > casting is what can make AS more efficient than languages that require the > casting like Java and C++.