How to Embed Flash With ColdFusion for Internet Explorer 6
Internet Explorer 6 allows for the embedding of streaming video such as a Flash movie. ColdFusion lets you generate dynamic variables you use to determine the Flash movie you want to display on your site. You can determine the movie from user input or from your own calculations. You first use the "object" property and add the "embed" tag to specify the movie.
Instructions
-
-
1
Right-click the source code file you want to use to embed the Flash video. Click "Open With," then click the ColdFusion editor in the list of programs.
-
2
Create a variable to contain the Flash movie name. The following code creates a file name string named "mymovie":
<cfset mymovie = "movie.swf" >
-
-
3
Create the "Object" tag. The Object tag is for older browsers such as Internet Explorer 6 that use plugins for generating HTML content. The following code creates the Object tag with the ColdFusion variable to define the movie location:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="500" HEIGHT="500" id="#mymovie#">
-
4
Add the "embed" tag for other browsers. The following code embeds the movie for your other readers:
<EMBED src="#mymovie#" quality=high bgcolor=#FFFFFF WIDTH="800" HEIGHT="600"
NAME="#mymovie#" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED>
-
1