Advertisement

06.05.2008 at 06:30AM PDT, ID: 23460061 | Points: 40
[x]
Attachment Details

Calling Javascript function from FLEX3 code

Asked by pigeon5566 in ActionScript, Macromedia Flash

I am calling a Javascript code from FLEX MXML Code.  When i click on Run Menu and click test in Flex builder3 it's working good. I did a Export release Build.  When I open the html file and click on a button it's not calling the javascript function I am getting the below error
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/Documents%20and%20Settings/ARAV/My%20Documents/Flex%20Builder%203/UnitConverter/bin-release/test.swf cannot access file:///C:/Documents%20and%20Settings/ARAV/My%20Documents/Flex%20Builder%203/UnitConverter/bin-release/test.html.
      at flash.external::ExternalInterface$/_initJS()
      at flash.external::ExternalInterface$/call()
      at test/callJavaScript()
      at test/__convertb_click()

Then I tried to set 'allowScriptAccess=always' in embed tag in HTML and i did a build again but still it's not working. Can anyone help me regarding this.Start Free Trial
[+][-]06.05.2008 at 06:29PM PDT, ID: 21725540

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 06:33PM PDT, ID: 21725554

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628