Just thought I'd report back for anyone else who might want to know
how to do this.

I changed from using swfobject static to dynamic embedding method (I
had a mixture of both - doh!) and added the following javascript:

                <script type="text/javascript">

                        var protocol = document.location.href.substring(0, 7);

                        if (swfobject.hasFlashPlayerVersion("9.0.0")) {
                                // embed the flash & force https

                                if (protocol == "http://";) {
                                        document.location.href = "https://"; +
document.location.href.substring(7, document.location.href.length);
                                }

                                var flashvars = {};
                                var params = {bgcolor:"#ffffcc"};
                                var attributes = { id:'content',
name:'HummingbirdBaby_estore' }; // give an id to the flash object

                                
swfobject.embedSWF("HummingbirdBaby_estore.swf", "content",
"100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params,
attributes);

                                swfmacmousewheel.registerObject(attributes.id);

                        }else{
                                // don't embed & force http

                                if (protocol == "https:/") {
                                        document.location.href = "http://"; +
document.location.href.substring(8, document.location.href.length);
                                }
                        }

        </script>

Not sure if it's the best method - but it works!

cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to