Communicating to Flash movie from browser’s JavaScript.

Posted on January 2, 2007 by ZDima.
Categories: Flash.

As you can see on my web site, the menu implemented there using a Flash movie.
When I decided to provide a link from one page of the web site to another, the question was how to change the active site section in a flash movie. I search Internet and found several solutions how to communicate with the Flash movie, but for some reason it was not working for me.
All HTML pages, flash movies and images where located in the same directory on my local computer. I was always getting -1 as a result code for TCurrentFrame or error message in FireFox’s error console Error: Error calling method on NPObject!. Any attempt to revive this interface was failing and there is no clue left on Internet on how to deal with that.

Finally, don’t know why, or may be because the last resort was to disable a Flash security, I decided to put my staff on the test web server. And guess what, it start working at once.

So if you have issue communicating from the JavaScript to Flash movie, please try to put all on the server first, before trying to hit the wall :).

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>