post your comment   print   send to a friend
Rate:  75% | Views: 961
Question categories:  Do It Yourself

how can i embed a flash movie in my html pages?

Answer by: Stuart Pierce, Knowledge Base Support

In order to display a Flash movie (.swf file) on your website you have to include certain HTML code in the source of the particular web page. The exact code that needs to be added contains the HTML OBJECT and EMBED tags. These two tags are used to reference to the actual flash files, and to specify display options as well.

In the HTML example below it is assumed that both your HTML file and the flash movie file (named flash_movie.swf) are uploaded to the same directory of your webspace (the html directory for Unix-based hosting plans or the WWWROOT directory for Windows-based hosting plans).

EXAMPLE:

<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="550" HEIGHT="400" id="flash_movie.swf">
<PARAM NAME=movie VALUE="flash_movie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://yourdomain.com/flash_movie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="flash_movie.swf" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

Here is a brief explanation of the required code attributes:

  • Classid: should appear exactly as in the example above because they present important information to the browser (OBJECT tag).
  • Codebase: identifies the location of the Flash Player plug-in so that the user can download it, if it is not already installed (OBJECT tag only).
  • PARAM NAME=movie: the value of this attribute specifies the location of the flash file relative to the location of the HTML file (in this case it is assumed that both are placed in the same directory). You may also enter the full URL of the flash file: http://yourdomain.com/flash_movie.swf (OBJECT tag only).
  • SRC: specifies the location (URL) of the movie to be loaded (EMBED tag only). This is equivalent to the movie attribute of the OBJECT tag.
  • PLUGINSPAGE: identifies the location of the Flash Player plug-in so that the user can download it, if it is not already installed (EMBED tag only). This is equivalent to the codebase attribute of the OBJECT tag.
  • WIDTH, HEIGHT: specify the width and height of the flash movie screen in pixels.

Note: You might have noticed that the OBJECT and EMBED tags have similar functionality. However, both are needed due to the specifics of the different browser types.

Related links:

Customer Feedback
Rate:  75% | Views: 961 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Website Hosting | Flash Web Design    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    Gallery2
    HTML Validation
    Guest Book
    Live Chat
    Java
    ASP
    Form Mail
    Forums
    CGI scripts
    JavaScript
    Blogs
    Perl scripts
    Image Manipulation
    Thumbnail Generator
    Counter
    Customer Survey
    Search Site Engine
    Linpha Gallery
    MediaWiki
    Sitemap Builder
    TikiWiki
    Online Calendar
    Coppermine Gallery
    Joomla
    Wordpress
Messages
 

Get Insider Info and Tips on the Aplus.Net Blog!

It's here! Introducing The Aplus.Net official blog. Check in as we run down the issues important to the web hosting industry, and offer tips and advice on how to make your website the best it can be. You can even post comments and suggest ideas. Get involved with the Aplus.Net community!
Visit the Aplus.Net Blog today!

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What databases are and the varieties of database designs
 
2. How do I add a picture to my Web site?
 
3. Where do I get additional Fonts from for my Web design?
 
4. What are flat file and relational databases?
 
5. What is superstitial?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest