wood burning stoves 2.0*
The moose likes Flex and the fly likes Why to use Item Attribute with Event in case of some controls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Why to use Item Attribute with Event in case of some controls " Watch "Why to use Item Attribute with Event in case of some controls " New topic
Author

Why to use Item Attribute with Event in case of some controls

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

A question about Event.Item

When i saw the example of MenuBar , i observed that we can get the data of the MenuBar clciked using a Event.Item@label .

I am having a question here , please tell me why Flex Framework is designed in such a way that getting data from the Controls is different for different controls .

I mean to ask why is it different in ncase of a MenuBar we have to use Event.item@label .

CXan anybody please tell me why what significance does an Item attribute have in case of a Event ??

Thanks in advance .


Save India From Corruption - Anna Hazare.
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
I think you can get the answer by reading flex document from adobe, as most control needs a data provider, so in case of MenuBar, you can provide xml as a data provider, from which MenuBar can then be created, Event.Item@label is a way of retrieving the data from the underlying data provider.


Do you know why this cup is useful? Because it is empty.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Hongli Li , superb explanation .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why to use Item Attribute with Event in case of some controls
 
Similar Threads
Semantic Events
when to use ActionListener interface
How to set the session attribute for the different jsp page data value.
menubar used in JApplet
where to define my menubar