Romain_nz
06-29-2006, 05:42 AM
Hi there,
I am including a flash object on my page using the swfobject script,
<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject("flash/images.swf", "images", "490", "366", "7", "#FFffff");
fo.addParam("name","images");
fo.addParam("id","images");
fo.addParam("swliveconnect","true");
fo.addParam("wmode","transparent")
fo.write("flashcontent");
// ]]>
</script>
and later on i call a function to send a variable to that flash object.
Now that works fine on Firefox and IE6, but for some reason IE 5 and 5.5 throws a wobly and gives me an error on that function :
function loadimage(path,picnum,title,type)
{
var myFlash=document.getElementById('images');
myFlash.SetVariable("imagepath", path);
myFlash.SetVariable("globalPicNum",picnum);
myFlash.SetVariable("globalType",type);
myFlash.SetVariable("globalTitle",title);
}
If anyone could explain how to fix it i would be immensely grateful...
Thanks,
Romain
I am including a flash object on my page using the swfobject script,
<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject("flash/images.swf", "images", "490", "366", "7", "#FFffff");
fo.addParam("name","images");
fo.addParam("id","images");
fo.addParam("swliveconnect","true");
fo.addParam("wmode","transparent")
fo.write("flashcontent");
// ]]>
</script>
and later on i call a function to send a variable to that flash object.
Now that works fine on Firefox and IE6, but for some reason IE 5 and 5.5 throws a wobly and gives me an error on that function :
function loadimage(path,picnum,title,type)
{
var myFlash=document.getElementById('images');
myFlash.SetVariable("imagepath", path);
myFlash.SetVariable("globalPicNum",picnum);
myFlash.SetVariable("globalType",type);
myFlash.SetVariable("globalTitle",title);
}
If anyone could explain how to fix it i would be immensely grateful...
Thanks,
Romain