topical media & game development
actionscript-events-Console.ax
actionscript-events-Console.ax
[swf]
flex
package {
import flash.display.*;
import flash.events.*;
public class @ax-actionscript-events-Console extends Sprite {
// Constructor
public function @ax-actionscript-events-Console () {
var game:actionscript_events_Game = new actionscript_events_Game();
game.addEventListener(actionscript_events_Game.GAME_OVER, gameOverListener);
}
private function gameOverListener (e:Event):void {
trace("The game has ended!");
// Display "back to console" UI (code not shown)
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.