View Full Version : []'s Before Constructor
jbailey
04-03-2008, 02:53 PM
What does something like [Event(name="itemRollOut", type="fl.events.ListEvent")] before the constructor mean?
newblack
04-03-2008, 03:12 PM
it's a meta tag that tells the compiler this class dispatches a ListEvent with type "itemRollOut". when adding an event listener to an instance of this data type, code hinting will offer this as a shortcut!
jbailey
04-03-2008, 03:23 PM
when adding an event listener to an instance of this data type, code hinting will offer this as a shortcut!
WOW no way!!! That's awesome! Thanks! ::off to have fun with hinting::
dr_zeus
04-03-2008, 05:14 PM
It is also used by asdoc to generate documentation about the events or styles (another type of metadata) in a class.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.