Trace() method doesnt work in FlashDevelop

Posted by numerical25 on Stack Overflow See other posts from Stack Overflow or by numerical25
Published on 2010-04-02T20:58:48Z Indexed on 2010/04/02 21:03 UTC
Read the original article Hit count: 429

Filed under:
|
|

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);
    }

}

© Stack Overflow or respective owner

Related posts about flashdevelop

Related posts about actionscript-3