Let’s look at an example of using the <object> element to add a Flash movie into a page. One of the really helpful things about working with Adobe’s Flash software (which can be used to create Flash animations) is that it can create the <object> code that is required to add the movie into the page for you. When you go through a process of “publishing” the file (which basically means preparing the file for the Web), the software creates an example file that can be used to display the file in your browser.
Here the following example, you can see the <object> element being used to include the Flash player — the classid attribute specifies that the Flash Player should be included, while the width and height attributes specify the dimensions of the Flash file. Then, inside the <object> element are the <param>
elements, which give further information to the flash Player ........
The <param> elements affect the way in which the object (which in this case is the Flash Player) behaves because the <object> element is used to include different types of objects; the <param> elements, as you might imagine, are specific to each object.
Here the following example, you can see the <object> element being used to include the Flash player — the classid attribute specifies that the Flash Player should be included, while the width and height attributes specify the dimensions of the Flash file. Then, inside the <object> element are the <param>
elements, which give further information to the flash Player ........
<object classid=”clsid
27CDB6E-AE6D-11cf-96B8-444553540000” width=”300”
height=”200”
codebabse=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab”>
<param name=”movie” value=”motion/flash_sample.swf”>
<param name=”play” value=”true”>
<param name=”loop” value=”false”>
<embed src=”motion/flash_sample.swf” width=”300” height=”200” play=”true”
loop=”false” QUALITY=”best” menu=”false” type=”application/x-shockwave-flash”
pluginspage=”http://www.macromedia.com/shockwave/...1_Prod_Version
=ShockwaveFlash”>
</embed>
</object>
27CDB6E-AE6D-11cf-96B8-444553540000” width=”300”height=”200”
codebabse=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab”>
<param name=”movie” value=”motion/flash_sample.swf”>
<param name=”play” value=”true”>
<param name=”loop” value=”false”>
<embed src=”motion/flash_sample.swf” width=”300” height=”200” play=”true”
loop=”false” QUALITY=”best” menu=”false” type=”application/x-shockwave-flash”
pluginspage=”http://www.macromedia.com/shockwave/...1_Prod_Version
=ShockwaveFlash”>
</embed>
</object>
Comment