AIR troubles me again

As senocular had told me yesterday, that AIR is just a runtime and .air file is just a package-up of a group of assets.
so i made a swf and assign it as the root of the air application and then package it directly from Flex Builder 3 without mxml-compiling.
But with only one single swf, I cannot handle the stage.window.startMove and close etc.
I write in Flash CS3 this code:

ab_mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, go);
function go()
{
stage.window.startMove();
}

but the Flash CS3 just tell me that there is not a “window” property.

So… If I want to develop some cute, transparent AIR projects, I have to make the swf compiled from MXML but not just Flash CS3 IDE ?

Anyone can give me a more detail instructions?