Evidently, to the compiler the following is a big difference:
Passes
[actionscript]
return [
{label:"MyriadPro",styleName:"textDefault"}
,{label:"Albertus",styleName:"textAlbertus"}
];
{label:"MyriadPro",styleName:"textDefault"}
,{label:"Albertus",styleName:"textAlbertus"}
];
[/actionscript]
FAILS
[actionscript]
return
[
{label:"MyriadPro",styleName:"textDefault"}
,{label:"Albertus",styleName:"textAlbertus"}
];
{label:"MyriadPro",styleName:"textDefault"}
,{label:"Albertus",styleName:"textAlbertus"}
];
[/actionscript]
[error message]
Severity and Description Path Resource Location Creation Time Id
1065: Metadata attributes cannot have more than one element. ProjectName/src/com/novelastudios/examples FontsUtil.as line 8 1255105753861 1317796
[/error message]
1065: Metadata attributes cannot have more than one element. ProjectName/src/com/novelastudios/examples FontsUtil.as line 8 1255105753861 1317796
[/error message]
If you couldn't tell the difference, all that is different is the bracket starts on the same line as the return in the first example. Whereas, in the second, it is on the following line.
I'm actually curious if there is a reason to the humor in this perceived "bug." I'm going to search for a post in Adobe's JIRA for Flex
0 comments:
Post a Comment