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.
Issue with HTMLEmbedElement in Netscape
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Re: Issue with HTMLEmbedElement in Netscape
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
http://en.wikipedia.org/wiki/Usage_shar ... b_browsers
i wouldn't worry about it myself