You're trying to run a Flex SWF as a worker and not the main app? I doubt that is supported.
-Alex On 3/12/14 8:43 AM, "Gary Yang" <flashflex...@gmail.com> wrote: >https://issues.apache.org/jira/browse/FLEX-34137 > > >On Wed, Mar 12, 2014 at 10:26 AM, Gary Yang <flashflex...@gmail.com> >wrote: > >> Error: Error #3731: This feature is not available within this context. >> at >> >>spark.components::Application/initContextMenu()[/Users/justinmclean/Docum >>ents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Appl >>ication.as:1832] >> at >> >>spark.components::Application/initialize()[/Users/justinmclean/Documents/ >>ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Applicati >>on.as:1385] >> at AppMain/initialize() >> at >> >>mx.managers.systemClasses::ChildManager/childAdded()[/Users/justinmclean/ >>Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/ >>systemClasses/ChildManager.as:197] >> at >> >>mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users >>/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/sr >>c/mx/managers/systemClasses/ChildManager.as:367] >> at >> >>mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean >>/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers >>/SystemManager.as:3065] >> at mx.managers::SystemManager/ >> >>http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean >>/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers >>/SystemManager.as:2851] >> at mx.managers::SystemManager/ >> >>http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/ >>Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framewo >>rk/src/mx/managers/SystemManager.as:2731] >> at flash.events::EventDispatcher/dispatchEventFunction() >> at flash.events::EventDispatcher/dispatchEvent() >> at >> >>mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/Apa >>cheFlex4.12.0/frameworks/projects/framework/src/mx/preloaders/Preloader.a >>s:572] >> at flash.utils::Timer/_timerDispatch() >> at flash.utils::Timer/tick() >>