Some help with Flashdevelop

I was just trying to get started with Flashdevelop and Flex 2 SDK as the compiler and I’m running this kind of basic test code.

It compiles fine and traces what it should but when I close the .swf tab, the whole program crashes. Anyone got any ideas why that is happening?

My project just has 1 file, cool.as
ActionScript Code:
[FONT=Courier New][LEFT]package [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]import[/COLOR] flash.[COLOR=#000080]display[/COLOR].[COLOR=#000080]Sprite[/COLOR];

[COLOR=#0000ff]public[/COLOR] [COLOR=#000000]**class**[/COLOR] cool [COLOR=#0000ff]extends[/COLOR] Sprite [COLOR=#000000]{[/COLOR]
    
    [COLOR=#0000ff]public[/COLOR] [COLOR=#000000]**function**[/COLOR] cool[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
        [COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]'cool as3 is working'[/COLOR][COLOR=#000000])[/COLOR];
    [COLOR=#000000]}[/COLOR]
    
[COLOR=#000000]}[/COLOR]

[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]