[osflash] hi all,i have a problem when working with e4x..

iiley iiley.chen at gmail.com
Sun Jul 23 02:51:24 EDT 2006


I'm not tested, how about to remove "System.useCodepage = true;" ?
Because i see there is encoding="utf-8", that is default for flash, so
maybe System.useCodepage = true cause the problem?

2006/7/23, èÁ¸Ä³â«ËöÄÐ <dark.ws at gmail.com>:
> here is my xml document:
> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
> <ag>
> <item id="5">abc</item>
> <item id = "6">efg</item>
> </ag>
>
> i want to get the value 5 and abc.
>
> in as2.0,we can get them by the following code£º
> var myxml = new XML();
> myxml.ignoreWhite = true;
> myxml.onLoad = function(a) {
>     if (a) {
>         trace( myxml.firstChild.firstChild.attributes.id);
>         trace(myxml.firstChild.firstChild.firstChild)
>     }
> };
> System.useCodepage = true;
> myxml.load ("test.xml");
>
> but i don't know how to get the values in e4x..
> i only cant get the id by useing ag.item.it..
> thank u all¡£
>
> --
> ´ÓÄÇÒ»ÌìÆð£¬Ã»ÓиıäµÄÒÀȻûÓиıä
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>


-- 
iiley
AsWing http://www.aswing.org
Blog http://spaces.msn.com/members/iiley/


More information about the osflash mailing list