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
%20Setting
s/ARAV/My%
20Document
s/Flex%20B
uilder%203
/UnitConve
rter/bin-r
elease/tes
t.swf cannot access file:///C:/Documents%20and
%20Setting
s/ARAV/My%
20Document
s/Flex%20B
uilder%203
/UnitConve
rter/bin-r
elease/tes
t.html.
at flash.external::ExternalIn
terface$/_
initJS()
at flash.external::ExternalIn
terface$/c
all()
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