Issue with HTMLEmbedElement in Netscape

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
vkallore
Forum Newbie
Posts: 1
Joined: Mon Dec 28, 2009 6:50 am

Issue with HTMLEmbedElement in Netscape

Post by vkallore »

Hi

I'm new to Actionscript(2.0).

I'm facing an issue with Netscape browsers when I'm trying to pass a value to flash through JavaScript.

Here I am copying the js code bellow

<script language="javascript">

function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else
{
return document.getElementById(movieName);
}
}
}

function showMyColor(pad,text){
var flashmovie = getFlashMovieObject(object id);
flashmovie.SetVariable("/:pad_color",pad);
flashmovie.SetVariable("/:write",text);
}
</script>


It is working fine with IE and the expected result will come when an alert is executed in the beginning of 'getFlashMovieObject' function.

Why it is so?

Sorry for my bad English.

Thank you in advance.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: Issue with HTMLEmbedElement in Netscape

Post by daedalus__ »

hmm i didn't know people still used netscape browsers

http://en.wikipedia.org/wiki/Usage_shar ... b_browsers

i wouldn't worry about it myself
Post Reply