Embeding FLASH Movies


© Umais Ahmad

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">
<param name="movie" value="filename.swf">
<embed src="filename.swf" width="500" height="500">
</embed>
</object>

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.

Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo


Here's the follow-up discussion on this article: View all related messages

5.   Sep 4, 2004 1:53 AM
How can I hyperlink a ShockwaveFlash object in ASP.NET ? It must be in HTML code not in flash editor .
Thanks .

-- posted by that_is_nana


4.   Jul 29, 2002 4:28 AM
i have a swf file and i have embedded in HTML.
now i want to give a hyperlink(href) for that,
how to give that?
the link should be given only in html not in flash file like "GetURL".

example

...


-- posted by kishannarasiah


3.   Feb 15, 2002 11:21 AM
I find I don't have the time I used to take to play with my pc, but I do like to read these articles. Thanks for all your patient, easy going lessons! ...

-- posted by SandyMcC


2.   Feb 12, 2002 4:18 AM
In response to message posted by helper2:

Thanks for posting the message. I have written width and height parameters in pixels only ...


-- posted by Umais


1.   Feb 9, 2002 12:58 AM
Though the basic idea of putting a Flash movie on a web page is essential, there are other methods that make the movie a bit more than a small area on your browser. Please note that not all movies ar ...

-- posted by helper2





For a complete listing of article comments, questions, and other discussions related to Umais Ahmad's FLASH Programming topic, please visit the Discussions page.