The code used to detect flash relies on an external JS file. Did you
forget to make that available perhaps?
On 11/29/06, Gary Strommen <[EMAIL PROTECTED]> wrote:
> I have a swf embedded in a coldfusion (cfm) page. I generate the "detect
> flash version" on the html tab of the publish settings and I post it to the
> internet and test - works as expected. I copy the generated code and paste
> it into my cfm page and it no longer works. Here is the part of the code the
> html has generated:
>
>
>
> <script language="JavaScript" type="text/javascript">
> <!--
> var hasRightVersion = DetectFlashVer(requiredMajorVersion,
> requiredMinorVersion, requiredRevision);
> if(hasRightVersion) { // if we've detected an acceptable version
> var oeTags = '<object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
> + 'width="980" height="400"'
> +
> 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
> + '<param name="movie"
> value="../../category/categor001/lect001001/swf/lect001001.swf" /><param
> name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
> + '<embed src="../../category/categor001/lect001001/swf/lect001001.swf"
> quality="high" bgcolor="#ffffff" '
> + 'width="980" height="400" name="lect001001" align="middle"'
> + 'play="true"'
> + 'loop="false"'
> + 'quality="high"'
> + 'allowScriptAccess="sameDomain"'
> + 'type="application/x-shockwave-flash"'
> + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
> + '<\/embed>'
> + '<\/object>';
> document.write(oeTags);
>
> <div align="center">
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
> width="980" height="400" align="middle">
> <param name="movie"
> value="../../category/categor001/lect001001/swf/lect001001.swf" />
>
> <!--LOCATION-->
> <param name="quality" value="high" />
> <embed src="../../category/categor001/lect001001/swf/lect001001.swf"
> width="980" height="400" align="middle" quality="high"
> pluginspage="http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash"></embed>
> <!--LOCATION-->
> </object>
> </div>
> // insert non-flash content
> }
> // -->
> </script>
>
>
>
> I switch out the object tag above with the following (my code):
>
>
>
> <div align="center">
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
> width="980" height="400" align="middle">
> <param name="movie" value="lect001001.swf" />
> <!--LOCATION-->
> <param name="quality" value="high" />
> <embed src="lect001001.swf" width="980" height="400" align="middle"
> quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash"></embed>
> <!--LOCATION-->
> </object>
> </div>
>
>
>
> My swf plays but it no longer detects for the flash player. I have been
> testing on another computer. Anyways to work around this? I can supply the
> full html generated code if needed.
>
> Thanks
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2278
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15