How to insert a flash on the page

How to insert a flash on the page

The elements of web pages created on a flash technology can include graphic, video and audiofragments integrated by one interactive script. Such elements are stored in files with the SWF extension (from ShockWave Flash) and for an insert in hypertext documents require the room in the source code of the whole tag set.

Instruction

1. Begin with loading of the file a flash element on the server of your website. It is possible to make it by means of the manager of files of structure of a management system of your website or the control panel provided by hosting provider. These options allow to manage existence of only one browser as use file transfer under the http-protocol. It is possible to make it and with use of the ftp protocol, having applied to loading a flash file any ftp-client - the resident program which except installation in a system will demand also input of the address, the login and the password for ftp-connection.

2. Place in the web page a tag set which should transfer to the visitor's browser at least information on location of an element in the page, its amount and the address of placement on the server. If you use a management system of the website, then it will be simplest to make it - editors of pages with the visual mode have such systems. Having loaded the page in the editor, install the cursor to the right place and click the insert button a flash element on the panel with managing directors of the editor's buttons. In the opened dialog box select a flash file from the list and specify its height and width, and the editor will insert the necessary tags into the source code.

3. Use any text editor if there is no management system on your website. If there is a specialized program for editing the HTML-code, then it is even better. They, as a rule, allow to edit files directly on the server, unlike ordinary editors of the text. Having opened the necessary page in the text or specialized editor, find the place in the source code where it is necessary to place tags a flash element. You should make these tags independently. Minimum necessary set can look, for example, so:
<object classid= 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' of codebase= 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' of width= '374' of height= '374'>

<param name='movie' value='someFlash.swf'/>

<embed src='someFlash.swf' quality='high' width= '374' of height= '374' of allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage= 'http://www.macromedia.com/go/getflashplayer'/>

</object>
In the code width and height in the width and height attributes are twice specified - replace them with the sizes of yours a flash element, as well as twice mentioned name of the someFlash.swf swf-file. Then save the page with the changes made to the code.

Author: «MirrorInfo» Dream Team


Print