If I am understanding correctly, you can bind the controls in the panel to the selected item in the HorizontalList (or any list-based control)

 

<mx:Label text=”{myHorixList.selectedItem.myProperty}”

 

As Matt has indicated, the precise form of the binding reference depends on exactly how you are populating the dataProvider for the list. The above will work if the dataProvider is an array of mx:Objects. If it is an array of xmlNodes, you will need to use the XML node class properties (selectedItem.attributes.myAttribute, or selectedItem.childNodes[0],, etc)  You might be able to use the dataProvider API, selectedItem.getProperty(“myProperty”)

 

It figuring out the correct form is difficult, use a change event handler and inspect the structure of the selectedItem.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Felipe Tadeus
Sent: Monday, September 26, 2005 8:28 PM
To: [email protected]
Subject: Re: [flexcoders] questions about HorizontalList

 

People,

 

He has a Horizontal list, and when he click any item, he need that flex loads in a panel a estruct based in a .xml...

 

How can he load de xml based in a comparation with the id of tipo.

 

<tipo id=1>

<hasTable>

    <hasScrool>

       <item>1</item>

    </hasScrool>

</hasTable>...

</tipo>

 



 

On 9/26/05, Matt Chotin <[EMAIL PROTECTED]> wrote:

The "change" function on HorizontalList will tell you when the item has been selected.  The selectedItem property is the item that was selected.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of andrehfraga
Sent: Sunday, September 25, 2005 8:20 PM
To: [email protected]
Subject: [flexcoders] questions about HorizontalList

 

hello all,

kow I make in a HorizontalList to know which item is selected? I need
pass how parameter in function for example getItem(-item selected-)
(Prototype: function getItem(item:String):Void) the item selected, is
it possible?

thanks.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



YAHOO! GROUPS LINKS

 

 





--
--

Educamais.Brasuca.org Join it!
           Felipe Valcanaia [ FLEX Technology ]


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to