Call it like this C:\Vadex\VadexFlex\bin-debug\VadexFlex.html Instead of file:/// ------ Sherif Abdou http://VadexFX.com http://Sherifabdou.com ----- Original Message ----- From: George To: [email protected] Sent: Thursday, September 18, 2008 5:46 PM Subject: [flexcoders] Grrrr. Security Sandbox
Why is it that when I run from bin-debug it doesn't fail, but when I run from bin-release after running the export, I get this error: SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/eclipse/workspace/myfile/bin-release/myfile.swf cannot access file:///C:/eclipse/workspace/myfile/bin-release/myfile.html. at flash.external::ExternalInterface$/_initJS() at flash.external::ExternalInterface$/call() at myfile/setWindowTitle() at myfile/enterState() at myfile/___myfile_State2_enterState() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.states::State/http://www.adobe.com/2006/flex/mx/internal::dispatchEnterState() at mx.core::UIComponent/applyState() at mx.core::UIComponent/commitCurrentState() at mx.core::UIComponent/creationCompleteHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() All I have is a small javascript function in the wrapper to allow me to change the title bar text from within my app. George

