Note that your document class in Flash projects should extend org.gaeswf.flash.BaseApplication and your Application MXML in Flex should be of type org.gaeswf.flex.BaseApplication (if none of this makes any sense to you, see my Flex 3 Code Behind Quick Start.)