How To Display your Flash files in Html:-

The easiest way to embed Flash in a website, with a single embed code. Create a Flash File named file.swf locate it in the same directory as the HTML page.

Write the following code in the html.

<html>
<body>
<center>
<object width=”300″ height=”200″>
<param name=”movie” value=”file.swf”>
<embed src=”file.swf” width=”300″ height=”200″>
</embed>
</object
</center>
</body>
</html>

U Need to Have a Flash Plugin Installed if u want to see ur flash files. A broken icon will appear on the Web page if the u don’t have the Flash plug-in installed.

In the above code i have used both an <embed> tag and an <object> tag because the <object> tag is recognized by Internet Explorer, and Netscape recognizes the <embed> tag.

The other Parameters that you can use are:-

*  bgcolor (#rrggbb): set the SWF background color using a hexadecimal value.

*  flashvars (variables): the variables placed here will be loaded in the SWF.

*  The JW Player extensively uses those. menu (true, false): set this to false to hide most of the rightclick menu.

*  The allowscriptaccess and allowfullscreen parameters tell the browser the SWF can both communicate with external scripts (and link to external pages) and use the new fullscreen mode.

Advertisements

1 comment so far

  1. sachin on

    thanx for the code


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: