Communicating to Flash movie from browser’s JavaScript.

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 :) .

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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

WP Like Button Plugin by Free WordPress Templates