forked from: XmlParseTest
♥0 |
Line 23 |
Modified 2012-01-30 17:36:08 |
MIT License
archived:2017-03-30 21:58:05
ActionScript3 source code
/**
* Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/AecM
*/
// forked from RaptorClaw's XmlParseTest
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var _textfield:TextField;
public function FlashTest()
{
_textfield = new TextField();
addChild(_textfield);
testXml();
}
private function testXml():void
{
var xml:XML =
<data>
<thing attr1="a" attr2="b"> </thing>
<thing attr1="b" attr2="d"> </thing>
<thing attr2="g"> </thing>
</data>
_textfield.text = xml.thing.(attribute("attr1") == "a").attribute("attr2");
}
}
}