Dear all,

I have a function in my Flex application which should be called from
the external scripts like javascript

So i have added that aprticular function to addCallback method of
Externalinterface
But when i create the Export release build using Flex builder and try
opening it from the output folder this error is encountered .

So do i have to add any extra compiler argument for my Flex Builder ??

the following error is observed.

SecurityError: Error #2060: Security sandbox violation:
ExternalInterface caller file:///C:/Documents and Settings/srao8/
Desktop/VISUALIZER TEST/main.swf cannot access file:///C:/Documents
and Settings/srao8/Desktop/VISUALIZER TEST/main.html.

at flash.external::ExternalInterface$/_initJS()
        at flash.external::ExternalInterface$/addCallback()
        at main/initApp()
        at main/___main_Application1_creationComplete()
        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()



Thanks in Advance

Regards
Sudhi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to