House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search flex

February 09, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28             

Home /  Groups /  Adobe Flex

What am I doing wrong for a LinkBar

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kim Hoopingarner
04/08/2009 12:38 PM

I've posted a very simple program below.  And it doesn't work as I thought it should.  Simply - I want to be able to bind a dynamic array to the link bar.   When I run this - I got the linkbar with no TEST 1 showing.  I'm sure this is a silly problem - 101, right? Thanks for your advice! <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();"> <mx:Script>   <![CDATA[     [Bindable] private var aLanguage:Array = new Array();          private function init():void{       aLanguage.push("Test 1");     }   ]]> </mx:Script>    <mx:Canvas>   <mx:LinkBar id="tbbLanguage" dataProvider="{aLanguage}" width="294" color="#ffffff" backgroundColor="#000000"/> </mx:Canvas> </mx:Application>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Barney Boisvert
04/08/2009 12:44 PM

The issue is that Array objects aren't don't trigger binding execution when they are changed.  You'll need to use an ArrayCollection instead (or trigger the binding execution manually). cheers, barneyb ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kim Hoopingarner
04/08/2009 01:04 PM

Thanks!  


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists