On 8/4/16, 7:22 AM, "Harbs" <harbs.li...@gmail.com> 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

Reply via email to