Solved

Flash & JavaScript variable in Mozilla/Netscape

Posted on 2006-07-17
3
222 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now