We have a web-based flash project that uses ExternalInterface calls from inside the Flash piece to open up additional html pages that contain resource files and documents. The project also makes heavy use of videos, and because of that, some recipients on remote islands on limited bandwidth are having issue with the online version, and would like to have a downloadable version and play it back from a local drive.

When I tried to play the project back locally from a folder, most of the project still works. It’s when the flash piece makes ExternalInterface calls that errors occur. Initially I thought the problem could be fixed by chaning a publish setting to local access instead of network access, and re-publishing the fla files. Nope, that did not fix the problem; in fact, somehow the setting was already set to local access, and it did not have any problem working from  a http server.

What solved the problem was changing the value of a param in the html page that hosts the flash piece from “SameDomain” to “always”. And now the whole project can play happily from a local drive.

Now all I need to do to provide a downloadable local version is to add a little file as instructions to how to start the project locally and zip the whole thing up, and put it on a web server.

  • Digg
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Haohao
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • Reddit
  • Technorati
  • TwitThis

Related posts:

  1. Flash Component UIScrollBar Issue Resolved
  2. Bizarre Flash Behaviour
  3. Timer Object Management in Flash CS4
  4. ExternalInterface Tips
  5. Flash Tween Engines for AS3

Tags: , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>