aspose file tools*
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
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 .
 
 
subject: Why to use Item Attribute with Event in case of some controls