Olaf Krüger created FLEX-35137: ---------------------------------- Summary: [Bindable] doesn't work on swf side if referenced var is declared as private Key: FLEX-35137 URL: https://issues.apache.org/jira/browse/FLEX-35137 Project: Apache Flex Issue Type: Bug Components: FlexJS Affects Versions: Apache FlexJS 0.8.0 Reporter: Olaf Krüger Fix For: Apache FlexJS 0.8.0
Simple test case: <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:js="library://ns.apache.org/flexjs/basic" applicationComplete="onInitComplete()"> <fx:Script> <![CDATA[ import vo.TestVO; [Bindable] public var testVOPublic:TestVO; // Works [Bindable] private var testVOPrivate:TestVO; // Doesn't work private function onInitComplete():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; } -- This message was sent by Atlassian JIRA (v6.3.4#6332)