Bluepearl Design
Go Back   Bluepearl Design > Misc > Tutorials > Macromedia Flash

Embedding flash with swfobject.js

Flash is the industry's most advanced authoring environment for creating interactive websites, digital experiences and mobile content.
    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 05-21-2006, 11:52 PM   #1 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,903
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Arrow Embedding flash with swfobject.js

Recently Microsoft has released a patch for Internet Explorer which effected how flash looked in IE.
The new patch added borders around flash and made users double click on flash objects which was not only ugly but annoying.

Here is how i now add flash to my sites which removes the above problems and is also XTHML compliant.

HTML Code:
<script type="text/javascript" src="swfobject.zip"></script>
<div id="flash">
  This text will be replaced by your SWF
</div>
<script type="text/javascript">
   var so = new SWFObject("header.swf", "flash", "950", "176", "7", "#ffffff");
   so.write("flash");
</script> 
Quick explanation:
HTML Code:
<div id="flash">
  This text will be replaced by your SWF
</div> 
This creates a HTML element which will hold the SWF movie.

"movie.swf" -Path to your SWF
"flash" -ID of your embed tag
"950" -width of your SWF
"176" -height of your SWF
"7" -The required player version for your Flash content
"#ffffff" - Background color of your flash movie

Make sure to download the attachment swfobject.js otherwise this script will not work.
Attached Files
File Type: zip swfobject.zip (2.2 KB, 30 views)
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-22-2006, 12:19 AM   #2 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,421
Images: 1
Rep Power: 8 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
Re: Embedding flash with swfobject.js

FINALLY!

i've been waiting for this solution for ages
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 09:10 AM   #3 (permalink)
ICY
 
ICY's Avatar
 
Title: Ice God
Join Date: Jun 2004
Location: Canada
Age: 21
Posts: 2,116
Images: 14
Rep Power: 7 ICY is on a distinguished road
Send a message via AIM to ICY Send a message via MSN to ICY
Re: Embedding flash with swfobject.js

I should have put this tutorial up lol
__________________
ICY is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 04:34 PM   #4 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,903
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Embedding flash with swfobject.js

Only problem is that this will not detect/install flash for you if u havent got it installed in your browser already. There is a solution but i will have to dig it up lol
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2006, 08:49 AM   #5 (permalink)
ICY
 
ICY's Avatar
 
Title: Ice God
Join Date: Jun 2004
Location: Canada
Age: 21
Posts: 2,116
Images: 14
Rep Power: 7 ICY is on a distinguished road
Send a message via AIM to ICY Send a message via MSN to ICY
Re: Embedding flash with swfobject.js

like using a variable to detect what version of flash they have with java and then redirecting them to the flash stuff? Because I would know how to do that... but yeah........
__________________
ICY is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-27-2006, 10:22 AM   #6 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,421
Images: 1
Rep Power: 8 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
Re: Embedding flash with swfobject.js

icy rules..
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-28-2006, 07:42 AM   #7 (permalink)
ICY
 
ICY's Avatar
 
Title: Ice God
Join Date: Jun 2004
Location: Canada
Age: 21
Posts: 2,116
Images: 14
Rep Power: 7 ICY is on a distinguished road
Send a message via AIM to ICY Send a message via MSN to ICY
Re: Embedding flash with swfobject.js

I don't think the way I could do it would be very search engine friendly
__________________
ICY is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-28-2006, 05:22 PM   #8 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,903
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Embedding flash with swfobject.js

Quote:
Originally Posted by ICY
I don't think the way I could do it would be very search engine friendly
add your code anyways, so anyone reading this topic can have 2 options
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2006, 03:27 PM   #9 (permalink)
 
Title: Bluepearl Veteran
Join Date: Feb 2005
Posts: 1,848
Images: 9
Rep Power: 6 Kate will become famous soon enoughKate will become famous soon enough
Re: Embedding flash with swfobject.js

Thanks for adding Sean
Kate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2006, 07:37 PM   #10 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,421
Images: 1
Rep Power: 8 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
Re: Embedding flash with swfobject.js

this also keeps firefox from showing a small white flash when you change pages, or just come to the site.
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads for: Embedding flash with swfobject.js
Thread Thread Starter Forum Replies Last Post
Flash Basics 101 mrCharlie Macromedia Flash 9 05-30-2006 08:10 PM
need help with adobe flash 8 Xthar Need Help? 2 03-26-2006 06:38 PM
Macromedia flash 8 Sean Software 16 10-21-2005 07:17 PM
Flash MX Frustration autumn whispers2me Need Help? 9 06-26-2005 04:42 AM


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 03:04 PM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52