Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
embedding swf in html pages
Old 12-16-2009, 06:39 PM embedding swf in html pages
Ultra Talker

Posts: 254
Trades: 0
i used to use dreamweaver code to embed an swf file using the
AC_RunActiveContent.js file along with the html code

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','heigh t','400','title','Video','src','test','quality','h igh','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','test' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Video">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<embed src="test.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object></noscript>


i have used the swfobject method by following the steps mentioned at
http://code.google.com/p/swfobject/wiki/documentation

when i use the swfobject method and validate my html code there are no errors however with the dreamweaver code i get errors when validating my html code

my question is when i downloaded the zip file from
http://code.google.com/p/swfobject/

after unzipping this file there are 2 swfobject.js files one in the root directory after unzipping and another swfobject.js file inside a folder called src

i have used swfobject.js file from the root directory when i called this from
<script type="text/javascript" src="swfobject.js"></script>

and the flash file plays and also the html code validates,

is this the right way of using swfobject.js file from root directory or should i be using the one from the src folder


also just to test how the alternate content would appear if the flash player plugin is disabled or uninstalled i entered html text as alternate content using swfobject method, what i have noticed is i get the alternate content only if i disable flash player plugin however if i disable
javascript in most browsers the swf file plays

as the swfobject is calling a javascript i guess the swf file should not play or is this how it normally works

if this is the case in the alternate text, i guess i should be mentioning

"You have either javascript disabled/turned off or do not have a flash player plugin installed, download the latest flash player"




please advice.

thanks a lot
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-05-2010, 10:47 AM Re: embedding swf in html pages
Junior Talker

Posts: 2
Name: pearsalice
Trades: 0
That might not work well <script type="text/javascript" src="swfobject.js"></script>. The above embedded code is looking good though. Once you have adobe flash installed. It should work.
Or try some thing like

<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

pearsalice is offline
Reply With Quote
View Public Profile
 
Old 01-05-2010, 04:13 PM Re: embedding swf in html pages
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The point is NOT to use that <embed> tag!

The swfObject.js file in the src directory is the SOURCE code - so unless you're a hard-core javascripter, you don't need it. The swfObject zip file comes with very complete documentation on how to implement it and their forum is very helpful if you have trouble with it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-19-2010, 02:27 AM Re: embedding swf in html pages
saniya's Avatar
Junior Talker

Posts: 1
Name: saniya marabath
Trades: 0
Hi,

Below is the validated HTML flash embed code and it doesn't require any JavaScript file. Just simply change the "data & Value src" and size of the swf.

<object type="application/x-shockwave-flash"
data="flash/webdesign-flash.swf"
width="500" height="300">
<param name="movie" value="flash/webdesign-flash.swf" />
<param name="quality" value="high"/>
</object>


Hope this helps,
Cheers
__________________

Please login or register to view this content. Registration is FREE
saniya is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to embedding swf in html pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.34408 seconds with 12 queries