<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Safari at Giraffeweb &#187; Valid Code</title>
	<atom:link href="http://www.giraffeweb.com/category/coding/valid-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.giraffeweb.com</link>
	<description>Giraffe Web Development &#38; Design</description>
	<lastBuildDate>Fri, 27 Jan 2012 13:46:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Wav Files, Macs &amp; Flash</title>
		<link>http://www.giraffeweb.com/2005/12/wav-files-macs-flash/</link>
		<comments>http://www.giraffeweb.com/2005/12/wav-files-macs-flash/#comments</comments>
		<pubDate>Fri, 30 Dec 2005 18:48:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Sound on Websites]]></category>
		<category><![CDATA[Valid Code]]></category>

		<guid isPermaLink="false">http://www.giraffeweb.com/?p=9</guid>
		<description><![CDATA[I have a client that loves sounds on her websites. I am not going to expound here about the pros and cons of sounds because regardless of anyone’s opinions, sometimes you have to pick and choose your battles! The problem &#8230; <a href="http://www.giraffeweb.com/2005/12/wav-files-macs-flash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have a client that loves sounds on her websites. I am not going to expound here about the pros and cons of sounds because regardless of anyone’s opinions, sometimes you have to pick and choose your battles!</p>
<p>The problem I had did not come to light until this client purchased a Mac for her PC-based office, and of course the first web site viewed on it was their corporate web site. Instead of the sound of people laughing, all they heard was static, and it was loud and annoying.</p>
<p>I had placed a .wav sound in SwishMax to play when the site opened.</p>
<p>The static was a result of exporting the SwishMax file using the export option .sw6 (for version 6 of the Flash Player). The fix was described as this:</p>
<p>“Mac by default uses quicktime as the swf player.<br />
Quicktime can only handle swf4 format.”</p>
<p>So, I immediately exported the file as .sw4, uploaded it and tested it on the Mac, and the problem was resolved. I would like to thank Michael Chrysler up at the SwishMax forum for helping me with this! Since it was posted earlier this year, it has been viewed about 400 times.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giraffeweb.com/2005/12/wav-files-macs-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate Flash Markup</title>
		<link>http://www.giraffeweb.com/2005/12/validate-flash-markup/</link>
		<comments>http://www.giraffeweb.com/2005/12/validate-flash-markup/#comments</comments>
		<pubDate>Tue, 27 Dec 2005 18:49:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Valid Code]]></category>

		<guid isPermaLink="false">http://www.giraffeweb.com/?p=14</guid>
		<description><![CDATA[The software I use is Dreamweaver 8, Swish Max and some Flash. I have been on a mission to figure out how to validate the code that these software packages generate for web pages. I am no expert, but have &#8230; <a href="http://www.giraffeweb.com/2005/12/validate-flash-markup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The software I use is Dreamweaver 8, Swish Max and some Flash.  I have been<br />
on a mission to figure out how to validate the code that these software packages<br />
generate for web pages. I am no expert, but have been hoping that someone<br />
who knew a lot more about how browsers work would come up with a solution.<br />
I knew that w3c only supports the &#8220;object&#8221; tag, yet Mozilla-based browsers only support the &#8220;embed&#8221;  tag,<br />
so to make the code validate would result in the Macromedia Flash not displaying<br />
in Mozilla.</p>
<p style="text-align: left;">Sample Code generated by software programs:</p>
<p style="text-align: left;"><code>&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"<br />
codebase="http://download.macromedia.com/pub/shockwave/cabs<br />
/flash/swflash.cab#version=5,0,42,0"<br />
id="flash" width="200" height="200" /&gt;<br />
&lt;param name="movie" value="flash.swf" /&gt;<br />
&lt;param name="quality" value="high" /&gt;<br />
&lt;param name="bgcolor" value="#FFFFFF" /&gt;<br />
&lt;embed name="Movie1" src="flash.swf"<br />
quality="high" bgcolor="#FFFFFF" swLiveConnect="true"<br />
width="200" height="200"<br />
type="application/x-shockwave-flash"<br />
pluginspage="http://www.macromedia.com/go/getflashplayer"&gt;&lt;/embed&gt;<br />
&lt;/object&gt;<br />
</code></p>
<p style="text-align: left;">On one of my web design lists, I asked if anyone had found a solution.  The first response came from Cranium Creations:</p>
<p style="text-align: left;"><code>&lt;object type="application/x-shockwave-flash"<br />
codebase="http://download.macromedia.com/pub/shockwave/cabs<br />
/flash/swflash.cab#version=6,0,79,0"<br />
data="http://www.websitename.com/flash.swf" width="200px" height="200px"/&gt;<br />
&lt;param name="movie" value="http://www.websitename.com/flash.swf" /&gt;<br />
&lt;param name="menu" value="false" /&gt;<br />
&lt;param name="quality" value="high" /&gt;<br />
&lt;param name="bgcolor" value="#ffffff" /&gt;<br />
&lt;param name="scale" value="100%" /&gt;<br />
&lt;a href="http://www.macromedia.com/go/getflashplayer"<br />
title="link to the Macromedia Flash Player download page"&gt;Get the latest<br />
Flash Player from Macromedia&lt;/a&gt;<br />
&lt;/object&gt;<br />
</code></p>
<p style="text-align: left;">This validates just great. But in IE it places a small graphic box (that looks like what happens when you don’t upload an image but have it in the code) in the upper left corner of the Flash object on the page until the Flash loads. For most sites that I create, that is not a huge problem, but I felt like to get the page to validate, I created a different problem. I have a larger Flash file on one web site that requires a preloader, and all the page would show was the little color graphic until after the preloader had virtually loaded the movie. Since the majority of the viewers on this particular site would be using IE, I felt I needed a better solution.</p>
<p style="text-align: left;">I plodded on and found a post on A List Apart (http://www.alistapart.com/articles/flashsatay/ — please refer to to that link for the details). This is a great explanation of the various elements of the Flash code generated by the software programs, but I still had a problem with being able to create the Flash necessary by using SwishMax:</p>
<p style="text-align: left;"><code>&lt;object type="application/x-shockwave-flash"<br />
data="c.swf?path=flash.swf" width="200" height="200" /&gt;<br />
&lt;param name="movie" value="c.swf?path=flash.swf" /&gt;<br />
&lt;param name="bgcolor" value="#ffffff" /&gt;<br />
&lt;param name="wmode" value="transparent" /&gt;<br />
&lt;img src="images/byline.jpg" width="200" height="200" alt="" /&gt;<br />
&lt;/object&gt;<br />
</code></p>
<p style="text-align: left;">I could not get SwishMax to create the container movie above, &#8220;c.swf&#8221;,<br />
correctly, as it would not take the variable passed to it from the path=flash.swf.<br />
I had to use Macromedia Flash to create the container movie (if someone<br />
knows how to get it to work in SwishMax, I would certainly welcome the<br />
comment!).</p>
<p style="text-align: left;">(Side Note: the wmode parameter above allows a menu to drop down over the<br />
Flash object.)</p>
<p style="text-align: left;">This does not totally finish the Flash code though, as now there is no way<br />
to detect the Flash Player (or version). The suggestion is to create an<br />
empty Flash object somewhere else on the page and add in the flash detection<br />
code, which can be accomplished quite simply with the code supplied above<br />
by Cranium Creations.</p>
<p style="text-align: left;">However, if you don’t care about Flash detection, the img src in the code</p>
<p style="text-align: left;">above will place a static image on the page instead of the Flash.</p>
<p style="text-align: left;">The above code has been tested on a PC in IE 6, FireFox 1.5, and Opera 7,<br />
and on a Macintosh in IE 5.2 and FireFox.</p>
<p style="text-align: left;">I think it is interesting at best to see that Drew McClellan’s quest up at<br />
A List Apart was to condense the markup because he didn’t like the bloated<br />
code generated yet Cranium Creations was because he wanted it to validate<br />
in XHTML.</p>
<p style="text-align: left;">Now if someone could figure out for me how to make the Windows Movie Videos<br />
load in Mozilla without using the embed command, that would really make<br />
me happy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.giraffeweb.com/2005/12/validate-flash-markup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

