Page 1 of 1

'click to activate and use this control' (SOLVED)

Posted: Tue Aug 07, 2007 12:11 pm
by johnl
Hi

          In IE when I view my flash It gives the message 'click to activate and use this control'  with a grey box around.

I have followed all the online workarounds http://tinyurl.com/22lxzr but still no luck.


Anyone know how these workarounds can be applied to CMS made simple?


Thanks

Re: 'click to activate and use this control'

Posted: Tue Aug 07, 2007 2:56 pm
by ironblaze94
ok this is what i used and it works

you have to use the tag around your flash for it to work, for instance i used this to add it into the template

Code: Select all

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Where It Is On Your Server"  />
<embed src="Where It Is On Your Server" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
change the Where It Is On Your Server to say http://www.yoursite.com/uploads then add the location the flash file is in e.g. http://www.yousite.com/uploads/flash/flash-file.swf


next create a new file in notepad (not ms word, notepad) and include this coe

Code: Select all

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}
save it as ieupdate.js and remember to change the "Save As Type"  at the bottom of the save box to All Types or it wont work

then upload the javascript file to cms and add this code DIRECTLY after the code in the template

Code: Select all

<__script__ type="text/javascript" src="http://www.yoursite.com/uploads/ieupdate.js"></__script>
obviously changing the location to suit your site

and save the template and reload the page and everything should work !

;D

Re: 'click to activate and use this control'

Posted: Tue Aug 07, 2007 3:42 pm
by johnl
ironblaze94 wrote: ok this is what i used and it works

you have to use the tag around your flash for it to work, for instance i used this to add it into the template

Code: Select all

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Where It Is On Your Server"  />
<embed src="Where It Is On Your Server" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
change the Where It Is On Your Server to say http://www.yoursite.com/uploads then add the location the flash file is in e.g. http://www.yousite.com/uploads/flash/flash-file.swf


next create a new file in notepad (not ms word, notepad) and include this coe

Code: Select all

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}
save it as ieupdate.js and remember to change the "Save As Type"  at the bottom of the save box to All Types or it wont work

then upload the javascript file to cms and add this code DIRECTLY after the code in the template

Code: Select all

<__script__ type="text/javascript" src="http://www.yoursite.com/uploads/ieupdate.js"></__script>
obviously changing the location to suit your site

and save the template and reload the page and everything should work !

;D

Thanks for your help,got it working by following tutorial at  http://activecontent.blogspot.com/&nbsp; in the end.

I will try your solution later as it looks good.

Thanks for the help

Re: 'click to activate and use this control' (SOLVED)

Posted: Tue Aug 07, 2007 4:07 pm
by ironblaze94
that site uses alot more javascript, i wonder why mine uses so little and gets the same results  ???

anyway as long you get it working, it took me a while to get there but its now its ok