Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/f/l/Flappy-0.3.7/samples/mouse.py   Flappy(Download)
        spr.addChild(self.txt)
 
        spr.addEventListener(MouseEvent.MOUSE_OVER, self.on_spr_mouse_over)
        spr.addEventListener(MouseEvent.MOUSE_OUT, self.on_spr_mouse_out)
        spr.addEventListener(MouseEvent.MOUSE_DOWN, self.on_spr_mouse_down)
        spr.addEventListener(MouseEvent.MOUSE_UP, self.on_spr_mouse_up)
        gfx.endFill()
 
        self.addEventListener(Event.ADDED_TO_STAGE, self.on_stage)
 
    def on_stage(self, event):

src/f/l/Flappy-0.3.7/samples/keyboard.py   Flappy(Download)
        self.addChild(self.ball)
 
        self.addEventListener(Event.ADDED_TO_STAGE, self.on_stage)
        self.addEventListener(Event.ENTER_FRAME, self.on_enter_frame)
        self.addEventListener(MouseEvent.MOUSE_DOWN, self.on_mouse_down)
        self.addEventListener(KeyboardEvent.KEY_DOWN, self.on_key_down)

src/f/l/Flappy-0.3.7/samples/heroku_shaders.py   Flappy(Download)
        self.set_next_shader()
 
        self.addEventListener(Event.ENTER_FRAME, self.on_enter_frame)
        self.addEventListener(Event.ADDED_TO_STAGE, self.on_stage)
        self.addEventListener(KeyboardEvent.KEY_DOWN, self.on_key_down)

src/f/l/Flappy-0.3.7/samples/parasprites.py   Flappy(Download)
                    ))
 
        self.addEventListener(Event.ENTER_FRAME, self.on_enter_frame)
        self.tile_layer.addEventListener(MouseEvent.CLICK, self.on_click)
        self.old_time = time()

src/f/l/Flappy-0.3.7/samples/cube_3d.py   Flappy(Download)
        self.lasttime = time()
 
        self.addEventListener(Event.ENTER_FRAME, self.on_enter_frame)
 
    def on_enter_frame(self, event):