views:

494

answers:

1

When I put a trace("test"); at the entry point of my flashdevelop project and run it. The application runs fine but I do not see the trace in the output. Below is my code

package 
{
    import flash.display.Sprite;
    import flash.events.Event;

    /**
     * ...
     * @author Anthony Gordon
     */
    public class Main extends Sprite 
    {

        public function Main():void 
        {
            if (stage) init();
            else addEventListener(Event.ADDED_TO_STAGE, init);
        }

        private function init(e:Event = null):void 
        {
            trace("test");
            removeEventListener(Event.ADDED_TO_STAGE, init);
            // entry point
            var game:Game = new Game(stage);
            addChild(game);
        }

    }
}
A: 

get the flash player content debugger. to associate SWFs with the standalone debug player, you must launch it once.

Please note the debug player is somewhat slower. You need the 'standalone' player if you are running your flash apps in a popup window, or you need one or both of the plugins if you plan to test your flash apps in a web browser (one plugin is for IE, one plugin is for all other browsers)

back2dos