Adobe Creative Suite 5, click here to learn more


Graphic Design Forums: UK forums for graphic designers » Website Design Forums: » Website Coding & Programming Forum: » Embed .SWF files, how to??

Reply
Old 05-11-2010, 11:22 PM   #1
Administrator
 
Boss Hog's Avatar
 
Join Date: Mar 2008
Posts: 3,206
Thanks: 489
Thanked 447 Times in 353 Posts
Default Embed .SWF files, how to??

I have been given a couple of files by Adobe that are flash files (.swf), how do I go about displaying these on the forum, in the position of the main banner above?

To show the animated gifs was easy, we use the following code....

PHP Code:
<a href="http://www.graphicdesignforums.co.uk/graphic-design-competitions/3291-graphic-design-forums-competition.html"><img src="http://www.graphicdesignforums.co.uk/banners/adobe-cs5.gif" alt="WIN ADOBE CS5 PREMIUM EDITION + MUCH MORE" /></a
...but what do I have to change the above code to to display .swf files?

Any advice is greatly appreciated.

Cheers

Damon
__________________
PRINTING: Business Cards | Letterheads | Leaflets | Flyers | Resell Print?



GDF BUSINESS DIRECTORY (FREE)
Boss Hog is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 05-12-2010, 12:15 PM   #2
Senior Member
 
socreative's Avatar
 
Join Date: Jun 2009
Location: Internet
Posts: 166
Thanks: 0
Thanked 23 Times in 14 Posts
Default

use swfobject

swfobject - Project Hosting on Google Code
__________________
www.socreative.tv
web :: flash :: print :: branding
socreative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
The Following User Says Thank You to socreative For This Useful Post:
Boss Hog (05-12-2010)
Old 05-12-2010, 01:32 PM   #3
Administrator
 
Boss Hog's Avatar
 
Join Date: Mar 2008
Posts: 3,206
Thanks: 489
Thanked 447 Times in 353 Posts
Default

Thanks for that, looks a little complicated for my liking

...may just ask them to supply a different file type
__________________
PRINTING: Business Cards | Letterheads | Leaflets | Flyers | Resell Print?



GDF BUSINESS DIRECTORY (FREE)
Boss Hog is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 05-12-2010, 04:22 PM   #4
Senior Member
 
socreative's Avatar
 
Join Date: Jun 2009
Location: Internet
Posts: 166
Thanks: 0
Thanked 23 Times in 14 Posts
Default

it very easy

PHP Code:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">    
        swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
</script> 
and in your page just create a DIV with the id FlashContent like so

PHP Code:
<div id="FlashContent">
</
div

the flash movie will be loaded into that div
__________________
www.socreative.tv
web :: flash :: print :: branding
socreative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
The Following User Says Thank You to socreative For This Useful Post:
Boss Hog (05-13-2010)
Old 05-13-2010, 09:41 AM   #5
Administrator
 
Boss Hog's Avatar
 
Join Date: Mar 2008
Posts: 3,206
Thanks: 489
Thanked 447 Times in 353 Posts
Default

Thank you
__________________
PRINTING: Business Cards | Letterheads | Leaflets | Flyers | Resell Print?



GDF BUSINESS DIRECTORY (FREE)
Boss Hog is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 05-20-2010, 09:43 AM   #6
Senior Member
 
DougBarned's Avatar
 
Join Date: Jun 2009
Location: London / U.K.
Posts: 181
Thanks: 6
Thanked 12 Times in 12 Posts
Default

Also might be worth checking out A List Apart: Articles: Flash Satay: Embedding Flash While Supporting Standards for a standards supporting solution from back in 2002. Allows you to display an alternative file to viewers without (or who disable) flash.

But only if you're interested :)

/Doug
__________________
design-is.co.uk - freelance projects
dougbarned.co.uk - personal site & blog - twitter
feralinteractive.com - designer day job - twitter - facebook
DougBarned is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
The Following User Says Thank You to DougBarned For This Useful Post:
Boss Hog (05-20-2010)
Old 06-08-2010, 09:03 PM   #7
Junior Member
 
AMI Creative's Avatar
 
Join Date: Nov 2009
Location: Staffordshire, Stoke-on-Trent
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by socreative View Post
it very easy

PHP Code:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">    
        swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
</script> 
and in your page just create a DIV with the id FlashContent like so

PHP Code:
<div id="FlashContent">
</
div

the flash movie will be loaded into that div

Remember to provide a no-script tag for you alternative content :)
AMI Creative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-09-2010, 10:57 AM   #8
Senior Member
 
socreative's Avatar
 
Join Date: Jun 2009
Location: Internet
Posts: 166
Thanks: 0
Thanked 23 Times in 14 Posts
Default

i deliberately left it out since Boss Hog was struggling to understand how it works ;)
__________________
www.socreative.tv
web :: flash :: print :: branding
socreative is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 06-09-2010, 03:06 PM   #9
Administrator
 
Boss Hog's Avatar
 
Join Date: Mar 2008
Posts: 3,206
Thanks: 489
Thanked 447 Times in 353 Posts
Default

Quote:
Originally Posted by socreative View Post
i deliberately left it out since Boss Hog was struggling to understand how it works ;)
__________________
PRINTING: Business Cards | Letterheads | Leaflets | Flyers | Resell Print?



GDF BUSINESS DIRECTORY (FREE)
Boss Hog is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Flyer Printing | Print Reseller Scheme | Graphic Design | Logo Designer | Web Design UK | Graphic Design UK | Letterhead Printing
Business Card Printing | UK Business Forum | Logo Designer | NCR Pads | NCR Books | Receipt Books | Drinks Coasters | A6 Flyers | A5 Leaflets
Web Design & Development | vBulletin Skins | Small Business Websites | Leaflets | Leaflet Printing | Web Design Liverpool | Invoice Books


DISCLAIMER: All posts on this forum express the views and opinions of the author only, not the owners, staff or advertisers, hence we will not be held liable.


Powered by vBulletin®
© Copyright Jelsoft Enterprises Ltd
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.