Forum for Digital Media Arts (DMA) Students & Alumni
Home­Register­Gallery­FAQ­Search­Memberlist­Usergroups­Log in
Post new topic   Reply to topicShare | 
 

 Swf Object. The best way to embed flash content!!!

View previous topic View next topic Go down 
AuthorMessage
jorgelopez



Posts: 26
Join date: 2009-01-18
Age: 23

PostSubject: Swf Object. The best way to embed flash content!!!   Tue Apr 07, 2009 7:23 pm

Embeding flash content in a website is just as important as making it look good. There's is something really wrong if you create something outstanding, but, no one can see it. That's were swf object comes in. It is a Javscript library or class that allows you to embed flash content with no hassle. Many of you embed flash through Dreamweaver by going to insert > media > Flash, though this may be the easiest method, it is not the best. If the user doesn't have flash installed, adobe's Javascript file has no way of forcing the user to install flash. Swf object on the other hand has a way of showing the install Flash player now window, just as the image below.


How it is Done?

1. You create a div container (it could also be a tag in a table); the div tag is more flexible.
2. Give the div an id.
3. Download the Swfobject class from here:http://code.google.com/p/swfobject/
4. Extract the zip file onto your root site folder.
5. Reference the swfobject class in the head tag of you html page like so:


6. Then still in the

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf");


explanation:

You call the embedSWF static function of the swfobject class. The embedSWF function requires these parameters: the url of the swf file, the name or id given to the Div you created on the body tag, the width of the swf, the height of the swf, the minimum Flash player version, and the url of the expressInstall.swf file. The express install swf will be used to force the user to install Flash. It will show the dialog box shown above.

This class allows you to create alternate content inside the div tag. You can put a normal html web page inside the body div. If flash is not installed the html page will be shown, which will not let the user see a blank page.

Sample html page:








swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");





Alternative content




Hope this is helpful.
Back to top Go down
View user profile
jorgelopez



Posts: 26
Join date: 2009-01-18
Age: 23

PostSubject: The code on the post got cut off here it is:   Tue Apr 07, 2009 7:34 pm

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");





Alternative content
Back to top Go down
View user profile
jorgelopez



Posts: 26
Join date: 2009-01-18
Age: 23

PostSubject: Fix   Tue Apr 07, 2009 7:36 pm

It seems that the post section doesn't accept html code. So, here's the link for the swfobject documentation:
http://code.google.com/p/swfobject/wiki/documentation
Back to top Go down
View user profile
 

Swf Object. The best way to embed flash content!!!

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Digital Media Arts (DMA) :: Software :: Adobe Dreamweaver-
Post new topic   Reply to topic