package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var example:XML = <example>
<bool>true</bool>
<integer>12</integer>
<number>.9</number>
</example>;
var bool:Boolean = Boolean( example.bool );
var integer:int = int( example.integer );
var number:Number = example.number;
trace( bool );
trace( integer );
trace( number );
}
}
}
|