Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35137

[Bindable] doesn't work on swf side if referenced var is declared as private

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FlexJS 0.8.0
    • Apache FlexJS 0.8.0
    • FlexJS
    • None

    Description

      Simple test case:

      <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:js="library://ns.apache.org/flexjs/basic"
      applicationComplete="onApplicationComplete()">

      <fx:Script>
      <![CDATA[
      import vo.TestVO;

      [Bindable] public var testVOPublic:TestVO; // Works
      [Bindable] private var testVOPrivate:TestVO; // Doesn't work

      private function onApplicationComplete():void

      { this.testVOPrivate = new TestVO("Private TestVO"); this.testVOPublic = new TestVO("Public TestVO"); }

      ]]>
      </fx:Script>

      <js:valuesImpl>
      <js:SimpleCSSValuesImpl />
      </js:valuesImpl>

      <js:beads>
      <js:ApplicationDataBinding />
      </js:beads>

      <js:initialView>
      <js:View>
      <js:beads>
      <js:VerticalLayout />
      </js:beads>
      <js:Label text="

      {testVOPrivate.item}

      " />
      <js:Label text="

      {testVOPublic.item}

      " />
      </js:View>>
      </js:initialView>
      </js:Application>

      TestVO.as:

      [Bindable]
      public class TestVO
      {
      public function TestVO(item)

      { this.item = item; }

      public var item:String;
      }

      Attachments

        Activity

          People

            aharui Alex Harui
            okrueger@edscha.com Olaf Krüger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: