Copy link to clipboard
Copied
Can someone tell me what this syntax is, or point me to some documentation that explains it?
package fl.controls.listClasses {
// what are these?
[Style(name="overSkin", type="Class")]
[Style(name="disabledTextFormat", type="flash.text.TextFormat")]
[Style(name="upSkin", type="Class")]
public class CellRenderer...
{
...
...
The lines in brackets are the syntax in question...
They appear to be package level declarations of anonymous arrays, filled by a (presumably static) call to Style? With named arguments?
I don't get it. What's being stored, here, where is it being stored, and how is it accessed?
Any illumination appreciated...
rickb
Copy link to clipboard
Copied
Google "style metadata" or check the docs.
http://www.google.com/search?hl=en&q=Style+metadata&meta=&aq=f&oq=
Copy link to clipboard
Copied
Ok, that's interesting - I can't find it anywhere in Flash or AS3 docs, but it appears to be in Flex docs....
nice....
Now, if I can just figure out why it's there and what it's for...
...
Copy link to clipboard
Copied
Ok, I get it - this is so the Flex compiler can recognize what's supplied by the class so you can use the class in MXML.
Haven't got there, yet - still banging my head against AS3 in Flash. At least I know what it is, now...
Thanx,
rickb
Copy link to clipboard
Copied
Hi,
this is style metadata, see the link
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=metadata_141_14.html
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more