Another error:
var resultXML:XML = XML(resString);
becomes:
var /** @type {XML} */ resultXML = org.apache.flex.utils.Language.as(resString,
XML, true);
When in fact it should become:
var /** @type {XML} */ resultXML = new XML(resString);
Do you want me to create a JIRA for this?
On Aug 4, 2016, at 5:33 PM, Alex Harui <[email protected]> wrote:
>
>
> On 8/4/16, 7:22 AM, "Harbs" <[email protected]> wrote:
>
>> I’m not sure how to deal with this case:
>>
>>
>> private var name:String;
>>
>> this.name = someXML.@Name;
>>
>> The above compiles to
>>
>> this.name = someXML.attribute('Name’);
>>
>> In Javascript this.name becomes an XMLList, but in Flash, the XMLList is
>> implicitly converted to a string.
>>
>> Is it possible to make the compiler smarter and make the compiled version
>> look like this?
>>
>> this.name = someXML.attribute('Name’).toString();
>
> I will look into it.
>
> -Alex
>