|
 |
flash_programming thread: Re: XHTML & Flash
Message #1 by jpease@k... on Fri, 15 Sep 2000 11:46:50 +0100
|
|
Posted on behalf of Justin Pease:
Jez -
Thanks!! It worked! Well I'll make the neccesary adjustments on a few
other pages and my site should be completely XHTML compliant.
Justin Pease
KT Software
www.ktsoftware.com
> Justin,
>
> An intriguing problem you have there! I tried simulating this error (by
> deleting the <embed> element on an HTML/Flash web page), but with no success.
>
> Try replacing the following code:
>
> <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">
>
> with:
>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=-1,-1,-1,-1"
> id="Indexpage" width="328" height="36">
>
> You will notice changes are to the version string appended to the URL in
> the 'codebase' attribute of the <object> element.
> If #Version=a,b,c,d and a,b,c,d are all set to ?1, the component (Flash Player, in this case)
> is only downloaded from the server if the release date is later than the
> installation date on the client computer.
>
> Cheers
>
> Jez.
>
>
>
> > Jez-
> >
> > Ok. I removed the <embed> tags and was able to validate the site for XHTML standards.
> > The flash does not work with Netscape (but stats show we get only 1 in 10
> > users with it anyway).
> >
> > My only concern is this. Every time I view the page a dialogue box
> > opens asking whether I want to install Flash 3.0. This seems kind of strange.
> > Even after accepting, I can refresh and it will come up again.
> > Any ideas why it is doing this? I am using IE5.
> >
> > Justin Pease
> >
> >
> >
> >
> > > 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)
|
|
 |