LB Hosting Customer Portal. Please choose topic below.

Knowledgebase

How to set flash embeded in my webpage?

Problem:

how to set flash embeded in my webpage?

Solution:

Set Flash Embeded in HTML

After completing a Flash movie you can choose File > Save As for saving your movie. Save the file as "test.fla". To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the follwing steps:

Step A
Select File > Open. Open a Flash movie you just created.

Step B
Choose File > Export Movie.

Step C
Name the file "test.swf". Select the location of file where it is to be stored (in your Web Direcory). Click OK.

Step D
Open your HTML page where you want to put your Flash movie. Insert this code:

<br /><table width="100%" class="ex" cellspacing="0" border="1"> <br />   <tr> <br />      <td><br />        <span class="mceItemObject"  width="550" height="400"><br />           <span  name="movie" value="somefilename.swf" class="mceItemParam"></span><br />           <span class="mceItemEmbed"  src="somefilename.swf" mce_src="somefilename.swf" width="550" height="400"><br />           </span><br />        </span><br />      </td> <br />   </tr><br /></table> <br />

Note: Above describe the smallest code you need to embed a Flash movie in a browser. If user does not have the Flash plug-in installed on the Web page, a broken icon will appear on the Web page.

Note: In the above code, we put both an

Step E
Type in the address of the HTML file in your browser and look at your first Flash movie.


Let the Flash Program do the Work

The code above is the absolute minimum code to embed Flash movies in HTML pages. It is not recommended to use the minimum code. There should be a few more attributes added:

  • classid is an attribute to the
  • pluginspage is an attribute to the

The Flash program can add these attributes for you:

Step A
Choose File > Publish. Flash will now create the

Step B
Open the HTML document that Flash created, view the HTML source and copy the code into your HTML page where you want your Flash movie.

Step C
Be sure that you have the "somefilename.swf" in your Web folder.

Step D
Type in the address of the HTML file in your browser and look at your first Flash movie.



Keywords: flash embed .swf SWF audio video



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Language:

Please Login

Quick Navigation

Client Login

Email

Password

Remember Me

Search