You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2016/10/04 19:06:20 UTC
[jira] [Assigned] (FLEX-35137) [Bindable] doesn't work on swf side
if referenced var is declared as private
[ https://issues.apache.org/jira/browse/FLEX-35137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Harui reassigned FLEX-35137:
---------------------------------
Assignee: Alex Harui
> [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
> Assignee: Alex Harui
> 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="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;
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)