|
By Eddy R.
11-08-00
Flash V. 4.0
Creating a Flash movie is one thing but knowing how to display
it in your web site is another. Not knowing how to insert a Flash
movie into a web page is a common problem that many Web builders
who are new to Flash face. Fortunately, in this tutorial we'll provide
the solution to that very problem.
Embedding
the Movie
Yes, a Flash movie has to be Embedded into a web page just like
any other object (such as sound). The HTML tag that must be used
to accomplish our objective is - yes, you guessed it, the <Embed></Embed>
tags.
Now, let's go ahead and take a look at how we'd go about embedding
the Flash movie using this tag. See the code below.
<embed src="/folder/your_flash_file.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="200"
height="200">
</embed>
The code above must be placed where you want your Flash movie to
appear - where in your web page you want to movie to appear that
is.
As you already know, the <Embed> tag is used to embed objects
into a web document. The your_flash_file.swf must be replaced with
the name of your movie file. The "quality" attribute designates
the quality of the movie - there are four options: Low, Auto Low,
Auto High, and High.
The "pluginspage" is used to specify where to send visitors
who do not have the Flash plug-in installed in their systems, and
"type" identifies the object being embedded.
Remember; practice makes perfect, so go ahead and practice embedding
a few Flash movies on Web documents until you get the hang of it,
in time you'll see that embedding Flash movies is a breeze!
|