insert_active_flash.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
wkilc
Super Advanced
Super Advanced
Posts: 60
Joined: Fri Sep 26, 2003 9:28 pm

insert_active_flash.js

Post by wkilc »

Hello,

I have been using Milonic's insert_active_flash JS to insert my flash objects on pages that use the menu:

[code]<script>
myFlashObject=new Object
myFlashObject.movie="flashfile.swf"
myFlashObject.quality="high"
myFlashObject.wmode="transparent"
myFlashObject.width=850
myFlashObject.height=550
myFlashObject.version="5,0,0,0"

commitFlashObject(myFlashObject, "myFlashDiv")
</script>[/code]

The problem I am having is on a secure SSL (https://) page. Internet Explorer says it is a "nonsecure" item, even though I defined it with a full, absolute URL:

[code]<script>
myFlashObject=new Object
myFlashObject.movie="https://www.mysite/flashfile.swf"
myFlashObject.quality="high"
myFlashObject.wmode="transparent"
myFlashObject.width=850
myFlashObject.height=550
myFlashObject.version="5,0,0,0"

commitFlashObject(myFlashObject, "myFlashDiv")
</script>[/code]

Is there something I need to modify in the JS itself to make this work? Any ideas?

Thanks.

~Wayne
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: insert_active_flash.js

Post by Andy »

Problem solved.

It was looking for files from macromedia.com using http instead of whatever the current protocol was.

Tested at https://milonic.com/over.php and can be downloaded from https://milonic.com/insert_active_flash.js

HTH,
Andy
wkilc
Super Advanced
Super Advanced
Posts: 60
Joined: Fri Sep 26, 2003 9:28 pm

Re: insert_active_flash.js

Post by wkilc »

:D
Thanks Andy! You da' man.

~Wayne
Post Reply