1 Reply Latest reply on Jun 5, 2008 1:39 PM by jrunrandy

    Calling Javascript Code from FLEX

    arav5566
      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/UnitConverte r/bin-release/test.swf cannot access file:///C:/Documents%20and%20Settings/ARAV/My%20Documents/Flex%20Builder%203/UnitConverte r/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.