flash on 2011-2-12
package {
import flash.display.Sprite;
import flash.events.Event;
import net.wonderfl.widget.Wanco;
public class FlashTest extends Sprite {
private var trace:Function = Wonderfl.log;
private var unco:Wanco;
public function FlashTest() {
unco = new Wanco();
unco.x = stage.stageWidth/2;
unco.y = stage.stageHeight/2;
addChild(unco);
trace(unco.width);
trace(unco.height);
addEventListener(Event.ENTER_FRAME, update);
}
private function update(e:Event):void{
unco["turnFace"]();
}
}
}