View Full Version : object flash
angiras
04-08-2003, 05:11 PM
this OBJECT tag is not xhtml valid
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' ID='fl' WIDTH='64' HEIGHT='64'>
<PARAM NAME='movie' VALUE='fl.swf' />
<PARAM NAME='wmode' VALUE='transparent' />
<PARAM NAME='align' VALUE='default' />
<PARAM NAME='loop' VALUE='false' />
<PARAM NAME='quality' VALUE='best' />
<PARAM NAME='scale' VALUE='exactfit' />
<PARAM NAME='bgcolor' VALUE='#FFFFFF' />
<EMBED src='ys.swf' loop='false' quality='best' wmode='transparent' align='default' scale='exactfit' bgcolor='#FFFFFF' WIDTH='64' HEIGHT='64' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
</EMBED></OBJECT>
what do you use for flash and xhtml ?
thank you !
liorean
04-08-2003, 05:57 PM
In xhtml, tags and attribute names are case sensitive, and the xhtml is all lowercase. Change "OBJECT" to "object" and lowercase all attributes, and it should work just fine. Embed on the other hand isn't even in the html4 specs, not to speak of the xhtml specs.
angiras
04-08-2003, 06:16 PM
ok lowercase .....
thank you
angiras
04-09-2003, 07:51 AM
with
----------------
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0' id='ys' width='64' height='64'>
<param name='movie' value='fl.swf' />
<param name='wmode' value='transparent' />
<param name='align' value='default' />
<param name='loop' value='false' />
<param name='quality' value='high' />
<param name='scale' value='exactfit' />
<param name='bgcolor' value='' />
<embed src='fl.swf' loop='false' quality='high' wmode='transparent' align='default' scale='exactfit' bgcolor='' width='64' height='64' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash'>
</embed>
</object>
-------------------------------
I get a background color transparent for IE
but for Mozilla netscape or Opera the background is white !!!
I have tried : param name='bgcolor' value=''transparent"
!!! it becomes green
do you know how to get background transparency for other browsers ?
thank you !
brothercake
04-09-2003, 09:46 AM
netscape 6 doesn't support the transparency, but netscape 7 / recent moz builds should be okay.
Check out http://www.macromedia.com/support/flash/ts/documents/wmode.htm
btw - did you pick up on liorean's <embed> point - your page won't validate while you have that.
angiras
04-09-2003, 09:56 AM
do you know where is the list of all parameters possible for a flash object ?
angiras
04-09-2003, 10:04 AM
<param name='wmode' value='transparent' />
and
<embed src='fl.swf' loop='false' quality='high' wmode='transparent'
are set like macromedia recommendations for transparency !
and I don't get it in opera 7 or Mozilla 1.3
I really don't know why ....
liorean
04-09-2003, 10:19 AM
Angiras, what flash plugin do you use in Moz? The 6.0 r65 should handle it. Also remember that if you have QT installed, that plugin might take over the flash rendering - which you probably don't want.
The embed tag is not allowed in either html or xhtml. It was a Netscape invention, and nowadays you only need it for nn4. Drop it if you want your code to validate.
angiras
04-09-2003, 10:44 AM
I don't know what is QT, and how to remove it
the flash version I have in Mozilla is 6.0 r47
and I have nerver find in mozilla or Opera how to get new plugins and where they read it in my computer
for IE I have the last one
ok I drop at once the embed tag..
thank you again liorean :-)
liorean
04-09-2003, 11:00 AM
QT= Apple QuickTime
For plugins, have a look at <http://plugindoc.mozdev.org/>.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.