In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Wanco x Gainer

Get Adobe Flash player
by kotobuki 14 Dec 2009
/**
 * 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();
        }
    }
}