|
|||
|
So far we have known much more about Flash so need is felt that you must now be taught ‘How to embed Flash movies in web pages’. Flash will remain continue but you have to take start inserting Flash movies in your web pages from right now. I have already taught you that Flash is basically designed for web animations but it is also used in offline work like in creating games, presentations, etc. How we can embed Flash movies in our web pages? So lets learn.
You know that Flash editable files are stored with .FLA extension. When you choose Test Movie from Control menu, it creates a movie file with .SWF extension in the same directory that contains a .FLA file. This was the one method by which you can create .SWF file. Actually this .SWF movie file is used over the web. You can also create .SWF file by using Flash publishing feature. Suppose you have a .FLA file opened. Now you want to create a .SWF movie file. For this choose File > Publish Settings. Click Formats tab if it is already not active. Unselect the .html check box. Make sure only .swf check box is selected. You have specified here that Flash will export only a .swf file. Here you can see that Real Player and other formats are also supported. Keep other settings remain unchanged and press Publish button. Your .SWF file will be saved in the same folder that contains a .FLA file. Note down the filename of .SWF file and use the same in the following code. <object width="500" height="500"> Here I shall assume that you know HTML (Hyper Text Markup Language) and also know about uploading files over the net. If you are interested in learning HTML, please mail me at umais@suite101.com. I shall email you an HTML tutor by ‘Joe Barta’. Copy & Paste the above code in the body tags of your web page at required place. The tags ‘object’ and ‘embed’ are for the same purpose. The difference is that the ‘object’ tag works in Internet Explorer and other in Netscape Navigator. The width and height of movie can be set in pixels as required. Here make sure when you will upload files; the .SWF file and .HTML file that contains the above code must be in the same directory. Another possibility is also there when you give full path of .SWF file in the above code. Go To Page: 1 2
The copyright of the article Embeding FLASH Movies in FLASH Programming is owned by . Permission to republish Embeding FLASH Movies in print or online must be granted by the author in writing.
For a complete listing of article comments, questions, and other discussions related to Umais Ahmad's FLASH Programming topic, please visit the Discussions page. |
|||
|
|
|||
|
|
|||