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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
johnl
Forum Members
Forum Members
Posts: 34
Joined: Thu May 03, 2007 5:58 am

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

Post 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
Last edited by johnl on Tue Aug 07, 2007 3:42 pm, edited 1 time in total.
ironblaze94

Re: 'click to activate and use this control'

Post 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
johnl
Forum Members
Forum Members
Posts: 34
Joined: Thu May 03, 2007 5:58 am

Re: 'click to activate and use this control'

Post 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
ironblaze94

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

Post 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
Post Reply

Return to “CMSMS Core”