Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Flash ExternalInterface Does Nothing

May 29

I recently helped another developer who was trying to integrate JavaScript with Flash. I recommended using ExternalInterface and pointed him to a couple of links. He emailed me a few hours later saying he had everything linked in, but couldn’t get the example to work correctly. After troubleshooting the problem I realized the allowScriptAccess parameter was set to sameDomain. This won’t work when accessing the page from the local file system, but only when accessed from a webserver (ie http://localhost/external.htm). To get this working the allowScriptAccess parameter needs to be changed to always. This seems trivial, but after an hour’s worth of investigation I stumbled across the answer.

Leave a Reply