[ https://issues.apache.org/jira/browse/FLEX-34912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Zarzycki resolved FLEX-34912. ----------------------------------- Resolution: Fixed Assignee: Michael Schmalle (was: Piotr Zarzycki) > Object class in JS.swc is not dynamic, resulting in error when setting > properties > --------------------------------------------------------------------------------- > > Key: FLEX-34912 > URL: https://issues.apache.org/jira/browse/FLEX-34912 > Project: Apache Flex > Issue Type: Bug > Components: FalconJX > Affects Versions: Apache FalconJX 0.5.0 > Reporter: Josh Tynjala > Assignee: Michael Schmalle > Fix For: Apache FalconJX 0.5.0 > > > Try the following code: > var test:Object = {}; > test.whatever = "some value"; > The compiler will give the following error: > Access of possibly undefined property whatever. > The reason is because the Object class in JS.swc isn't marked as dynamic. > There is a workaround. A property can be set with square brackets: > test["whatever"] = "some value"; -- This message was sent by Atlassian JIRA (v6.3.4#6332)