Search this site!

Return to the CSB Support home page
DHTML Dress-up Dog   |   Insert FLASH (.swf) file   |   Slideshow Script   |   DHTML Tabbed Notes
Insert FLASH (.swf) file
Description:
Here is a quick 1-2-3 for inserting a Flash (.swf) file into a CuteSITE Builder/Trellix Web page.  To use, you should have the following items:

Your file that ends with .swf
The associated HTML code generated for your .swf file
How to use:
For purposes of this example, the name of the file that I need to install is called 'sample1.swf'

1. From CSB/Trellix, display the page where you wish to insert your Flash file

2. If using CSB, click on Insert > HTML Code.  If using Trellix Web, click on Insert a Build your own web gem.

3. Copy and paste the HTML code you were given into the window.  

You will need to edit the code as follows:

look for a line that begins with:
<embed src="sample1.swf" ...

and change it to read:
<embed src="^GEMDIR/sample1.swf" ...

4. Click on the button labeled 'Files for this compnent (or gem)", and select to add a file. Locate and insert your .swf file (sample1.swf, in my case)

5. Save and publish!

Example:
For an example of an SWF file installed, see Demo #22 under the Tutorials section!
Download the code
right click on link, then click on 'Save target (or frame) as'
 n/a
Other information:

Source code:
The HTML code provided with your SWF file may be as simple as:

<EMBED SRC="Soccer.swf" WIDTH="129" HEIGHT="148">
<NOEMBED>Get Flash !</NOEMBED>
</EMBED>

or something more complicated, like:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="129" height="148">
<PARAM name="movie" value="Soccer.swf">
<PARAM name="quality" value="high">
<PARAM name="menu" value="true">
<EMBED SRC="Soccer.swf" quality="high" menu="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="129" height="148">
</EMBED>
</OBJECT>


Note: in both cases, you want to add ^GEMDIR/ inside the starting double quotes on the EMBED SRC line:

<EMBED SRC="^GEMDIR/Soccer.swf" WIDTH="129" HEIGHT="148">
-or-
<EMBED SRC="^GEMDIR/Soccer.swf" quality="high" menu ...