Wanco x Gainer
/**
* Copyright kotobuki ( http://wonderfl.net/user/kotobuki )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/xBpv
*/
package {
import flash.display.Sprite;
import net.wonderfl.widget.Wanco;
import funnel.*;
import funnel.ui.*;
public class FlashTest extends Sprite {
private var gainer:Gainer;
private var wanco:Wanco;
public function FlashTest() {
gainer = new Gainer();
wanco = new Wanco();
addChild(wanco);
wanco.x = 100;
wanco.y = 100;
gainer.button.addEventListener(ButtonEvent.PRESS, onButtonPress);
}
private function onButtonPress(e:ButtonEvent):void {
wanco.jump1();
}
}
}