Skip to content Skip to sidebar Skip to footer

Flex Externalinterface Callback

Flex: public function callFromJavaScript():String { test.label='dfdsfsdf'; return '1'; } public function init():void { ExternalInterface.addCallback('sendToFla

Solution 1:

ExternalInterface functions are know to have issues across browsers and operating systems. Some of the recommendations are,

  1. User swfobject or any other standard library to embed your swf. (swfobject)
  2. Use 'allowscriptaccess=always'
  3. Give proper id and name to the embed tag
  4. id and name attribute should be always same.
  5. If your swf file is coming from a different domain than the html page, use Security.AllowDomain('domain-of-html-page.com')

Post a Comment for "Flex Externalinterface Callback"