Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Flash & JavaScript variable in Mozilla/Netscape

Posted on 2006-07-17
3
Medium Priority
?
236 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

885 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