You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Peter Ent (JIRA)" <ji...@apache.org> on 2014/09/19 23:41:33 UTC

[jira] [Created] (FLEX-34548) FalconJX is not creating a getter function for MXML-declared objects.

Peter Ent created FLEX-34548:
--------------------------------

             Summary: FalconJX is not creating a getter function for MXML-declared objects.
                 Key: FLEX-34548
                 URL: https://issues.apache.org/jira/browse/FLEX-34548
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
         Environment: Mac OS X 10.7.5
            Reporter: Peter Ent


Create (or use a FlexJS example) and give an id to an MXML component in the MyInitialView.mxml file:

<basic:Label id="firstLabel" text="First Label" />

In the same file, reference the component by its id in a script block:

<fx:Script>
    private function doSomething():void {
        var label:Object = firstLabel;
    }
</fx:Script>

Now compile this with FalconJX into MyInitialView.js. Inspecting the MyInitialView.js you will find:

var label /* type of Object */ = this.get_firstLabel();

Unfortunately, there is no get_firstLabel() function generated by FalconJX.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)