Solved

Flash & JavaScript variable in Mozilla/Netscape

Posted on 2006-07-17
3
228 Views
Last Modified: 2010-04-03
Hi,

I have a Flash movie that grabs a variable value from JavaScript using SetVariable. It plays fine in IE, but not in Mozilla/Netscape. Can anyone help?
0
Comment
Question by:InspireGroup
3 Comments
 
LVL 16

Accepted Solution

by:
sam85281 earned 500 total points
ID: 17131370
Most likely, the problem is how you're accessing the movie via the javascript.

Try something like:

if (navigator.appName.indexOf("Microsoft Internet")!=-1) {
document.getElementById("MOVIE_ID").SetVariable("VARIABLE", "VALUE");
} else {
document.embeds["MOVIE_NAME"].SetVariable("VARIABLE", "VALUE");
}

-Sam
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question