flash on 2012-9-4

by smallflowergame
♥0 | Line 22 | Modified 2012-09-04 15:03:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright smallflowergame ( http://wonderfl.net/user/smallflowergame )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/klWG
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public var sturageXML:XML;
        public function FlashTest() {
        sturageXML=<sturage>
            <name>"仓库1"</name>
            <ID>"0001"</ID>
            <areaPath>
                <pathName>"local_1"</pathName>
                <pathName>"local_2"</pathName>
                <pathName>"local_3"</pathName>
            </areaPath>
        </sturage>
        var tempTextField:TextField = new TextField;
        addChild(tempTextField);
        sturageXML.areaPath.pathName[4]="00002";
        tempTextField.text=String(sturageXML.areaPath.pathName[5]);
        
        }
    }
}