Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hongli Li , superb explanation .
 
    Bookmark Topic Watch Topic
  • New Topic