|
 |
flash_programming thread: Flash/XHTML integration thread
Message #1 by "Jez Walker" <jeremyw@w...> on Fri, 8 Sep 2000 12:51:30 +0100
|
|
Hi Justin,
The short answer is yes, it is possible to get the same results you
presently have with the <object> element alone, but not on all browsers/platforms.
The inclusion of the <embed> element is to cater for people using IE3 or earlier
(Windows/Mac), Netscape Navigator (Windows/Mac) or IE4+(Mac). So, you have
a choice! You can either have a site that validates to XHTML standards (by
removing all the <embed> elements), and accept that not everyone will be able to
view the Flash content, or forget the XHTML validation for the time being,
with the bonus that the majority of web users will be able to view your
web pages as you intended. I use the words ?time being? as I?m sure that
eventually, the majority of browsers/platforms will support the <object> element.
For more information on <object> and <embed>, and how to use them with Flash, visit:
<http://www.macromedia.com/support/flash/ts/documents/tag_attributes.htm>
<http://www.macromedia.com/support/flash/ts/documents/tn4150.html>
HTH
Regards,
Jez.
> Jez -
>
> Thanks for the reply!
>
> I'm not quite sure if it is possible to use the <object> tag to get the same
> results as I presently have. Here is my current code. Any suggestions on
> how to get similar functions within XHTML standards?
>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>
> codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
>
>
> id="Indexpage" width="328" height="36">
>
> <param name="_cx" value="8678" />
> <param name="_cy" value="953" />
> <param name="Movie" value="Indexpage.swf" />
> <param name="Src" value="Indexpage.swf" />
> <param name="WMode" value="Transparent" />
> <param name="Play" value="-1" />
> <param name="Loop" value="-1" />
> <param name="Quality" value="High" />
> <param name="SAlign" />
> <param name="Menu" value="-1" />
> <param name="Base" />
> <param name="Scale" value="ShowAll" />
> <param name="DeviceFont" value="0" />
> <param name="EmbedMovie" value="0" />
> <param name="BGColor" value="FFFFFF" />
> <param name="SWRemote" />
>
> <embed src="Indexpage.swf" quality="high" wmode="transparent" bgcolor="#FFFFFF" width="328" height="36"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />
> </object>
>
>
>
> >Hi Justin,
>
> >The reason your validator returns errors is that the <embed> element is not
> >officially a part of the HTML or XHTML standards! The correct solution is
> >to
> >use the <object> element.
>
> >HTH
>
> >Jez
> >(list moderator)
>
>
> >> I have been working on validating my site to XHTML standards. Overall
> >> this has been a very simple task, but I have two pages that fail to
> >> validate.
> >>
> >> The errors occur on the two pages that contain Flash content.
> >>
> >> All errors are on the attributes of the <embed> command. How can I bring
> >> this up to Xhtml standards?
> >>
> >> Thank you.
> >>
> >> Sincerely,
> >>
> >> Justin Pease
|
|
 |