<?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>Elaine McVicar &#187; Code</title>
	<atom:link href="http://www.elainemcvicar.com/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.elainemcvicar.com/blog</link>
	<description>web design and other stuff</description>
	<lastBuildDate>Fri, 03 Sep 2010 09:51:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My Javascript Pop Up Hell</title>
		<link>http://www.elainemcvicar.com/blog/code/my-javascript-pop-up-hell/</link>
		<comments>http://www.elainemcvicar.com/blog/code/my-javascript-pop-up-hell/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 13:52:17 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=330</guid>
		<description><![CDATA[Okay, that&#8217;s quite a bit of an exaggeration, maybe purgatory rather than hell. Anyway, I don&#8217;t really know any javascript so I rely on help from the bountiful internet so I can do things with it. Lucky for me there are a bazillion javascripty jquery type pop ups, however unfortunately there are A BAZILLION javascripty [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, that&#8217;s quite a bit of an exaggeration, maybe purgatory rather than hell.</p>
<p>Anyway, I don&#8217;t really know any javascript so I rely on help from the bountiful internet so I can do things with it. Lucky for me there are a bazillion javascripty jquery type pop ups, however unfortunately there are A BAZILLION javascripty jquery type pop ups. Well again, I&#8217;m overreacting slightly. But here are a few of the pop up plugin type things I tried out.</p>
<h2><a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox</a></h2>
<p>Lightbox is the one everyone has heard of, but it annoys me slightly &#8211; although I&#8217;m not entirely sure why. Simple to use and install, but unfortunately wasn&#8217;t any use for me this time as it can only show images, rather the sections of HTML that I required.</p>
<h2><a href="http://colorpowered.com/colorbox/">Colourbox</a></h2>
<p>Colorbox is nice. It produces nice looking pop ups. Smooth transitions. It can load up flash, video as well as HTML. However, again I couldn&#8217;t use it for the project I wanted as I needed a div to pop up then stay where it was allowing you to interact with the rest of the page. I think you might be able to get Colorbox to do this, but I struggled with the coding.</p>
<h2><a href="http://swip.codylindley.com/DOMWindowDemo.html">DOMWindow</a></h2>
<p>DOMWindow was my saviour in the project I was working on. I didn&#8217;t want a hover pop up, or one that fills the entire screen, but with one click a little window should appear, then it should close when the user clicks on the close button. Very simple and easy to use.</p>
<h2>A few others</h2>
<p><a href="http://fancybox.net/">Fancybox</a><br />
<a href="http://jquery.com/demo/thickbox/">Thickbox</a><br />
<a href="http://www.shadowbox-js.com/index.html">Shadowbox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/code/my-javascript-pop-up-hell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text replace &#8211; using sIFR 3</title>
		<link>http://www.elainemcvicar.com/blog/web-design/text-replace-using-sifr-3/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/text-replace-using-sifr-3/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 10:48:52 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=286</guid>
		<description><![CDATA[I&#8217;ve been looking into a few methods for how to replace text on a page. I&#8217;d initially used CSS to replace text with images, this is quite an awkward solution as you have to create a new image for every item you want to replace. I did a bit more searching and discovered siFR 2. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking into a few methods for how to replace text on a page.</p>
<p>I&#8217;d initially used CSS to replace text with images, this is quite an awkward solution as you have to create a new image for every item you want to replace. I did a bit more searching and discovered siFR 2. sIFR (Scalable Inman Flash Replacement) allows you to replace text on a page with any font you want, using CSS, Javascript and Flash.</p>
<p>I&#8217;d struggled previously getting this version to work properly and behave the way I wanted it to. Mainly for each item in a navigational menu to look the same. So I was rather happy when I discovered there was actually a version 3. This version is incredibly easy to use. I love being able to apply CSS styles, as well as defining the font size.</p>
<p>Take a look here: <a href="http://wiki.novemberborn.net/sifr3/">sIFR 3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/text-replace-using-sifr-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash ActionScript 3.0 &#8211; Uploading an image</title>
		<link>http://www.elainemcvicar.com/blog/code/flash-actionscript-3-0-uploading-an-image/</link>
		<comments>http://www.elainemcvicar.com/blog/code/flash-actionscript-3-0-uploading-an-image/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 13:34:54 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=278</guid>
		<description><![CDATA[I&#8217;ve been having trouble implementing the code to upload an image to a server. The code is basically this: Set the variables for the file reference, file types to filter by and the url to send the image to: var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png"); var fileReference:FileReference = new FileReference(); var uploadURL:URLRequest; uploadURL = new [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having trouble implementing the code to upload an image to a server. The code is basically this:</p>
<h2>Set the variables for the file reference, file types to filter by and the url to send the image to:</h2>
<p><code>var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");<br />
var fileReference:FileReference = new FileReference();<br />
var uploadURL:URLRequest;<br />
uploadURL = new URLRequest ("upload.php");</code></p>
<h2>Select which file you want to upload to the server.</h2>
<p><code> fileReference.addEventListener(Event.SELECT, selectHandler);<br />
fileReference.browse([imagesFilter]);</code></p>
<h2>Function to tell Flash what to do once you have selected your file.</h2>
<p><code> function selectHandler (event:Event):void {<br />
var file:FileReference = FileReference(event.target);<br />
file.upload(uploadURL);<br />
}</code></p>
<h2>Then use the following PHP code in a file called upload.php.</h2>
<p><code>&lt;?PHP<br />
// The folder where the image will be uploaded to<br />
$target_path = "uploads/";<br />
/* Then add the original filename to the target path.<br />
Result is "uploads/filename.extension" */<br />
$target_path = $target_path . basename( $_FILES['Filedata']['name']);<br />
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $target_path)) {<br />
echo "The file ".  basename( $_FILES['Filedata']['name']).<br />
" has been uploaded";<br />
} else{<br />
echo "There was an error uploading the file, please try again!";<br />
}<br />
?&gt;</code></p>
<h2>So, why wasn&#8217;t is working</h2>
<p>So basically, this code wasn&#8217;t working, and I had no idea why. I kept getting the generic error [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"].</p>
<p>A nice relaxing sleep later I did some more searching and discovered this wonderful post: <a href="http://www.romantika.name/v2/flash-uploader-error/">Romantika.name | Flash Uploader Error</a>. Which basically informed me that there can be a security issue with Flash trying to upload things to a server. I updated my .htaccess file and ta da&#8230;.all worked perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/code/flash-actionscript-3-0-uploading-an-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Switcher by month using Javascript</title>
		<link>http://www.elainemcvicar.com/blog/web-design/css-switcher-by-month-using-javascript/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/css-switcher-by-month-using-javascript/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 12:53:44 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=252</guid>
		<description><![CDATA[I&#8217;ve been creating a website where I wanted to change the look depending on the season.  I&#8217;ve used Javascript to control what CSS was applied by checking what month it is, then changing the href property of the css &#60;link&#62; tag. Adding the default stylesheets to the HTML I created one main CSS file, that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been creating a website where I wanted to change the look depending on the season.  I&#8217;ve used Javascript to control what CSS was applied by checking what month it is, then changing the href property of the css &lt;link&gt; tag.</p>
<h2>Adding the default stylesheets to the HTML</h2>
<p>I created one main CSS file, that held all the styles that will never change, as well as a four separate season CSS files for Summer, Autumn, Winter and Spring. I used the Summer css file as a default and added an <em>id</em> called <em>season</em>.</p>
<p><code>&lt;link href="main.css" rel="stylesheet" type="text/css" /&gt;<br />
&lt;link id="season" href="summer.css" rel="stylesheet" type="text/css" /&gt;</code></p>
<h2>Javascript code to select the CSS</h2>
<p>Firstly I get the date, then use an <em>if statement</em> to set a variable with the correct filename. So, between December and February it will show <em>winter.css</em>, March to May <em>spring.css</em>, June to August <em>summer.css</em> and September to November <em>autumn.css</em>.</p>
<p>Then I just set the <em>href</em> property of the element with id &#8216;season&#8217;.</p>
<p><code> // Get CSS JavaScript Document<br />
function getCSS()<br />
{<br />
datetoday = new Date();<br />
themonth=datetoday.getMonth() + 1;</code><br />
<code><br />
if (themonth == 12)<br />
display = "winter.css";<br />
else if (themonth &lt;= 2)<br />
display = "winter.css";<br />
else if (themonth &gt; 2 &amp;&amp; themonth &lt;=5 )<br />
display = "spring.css";<br />
else if (themonth &gt; 5 &amp;&amp; themonth &lt;=8 )<br />
display = "summer.css";<br />
else if (themonth &gt; 8 &amp;&amp; themonth &lt;=11 )<br />
display = "autumn.css";</code><br />
<code><br />
document.getElementById('season').href = display;<br />
// End --&gt;<br />
}</code></p>
<h2>Call the function</h2>
<p>All that&#8217;s left to do is call the function in the&lt;head&gt; of the page.<br />
<code><br />
&lt;script type="text/javascript" language="javascript"&gt;<br />
getCSS();<br />
&lt;/script&gt;</code></p>
<p>Done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/css-switcher-by-month-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>And the microsites just keep on coming</title>
		<link>http://www.elainemcvicar.com/blog/code/and-the-microsites-just-keep-on-coming/</link>
		<comments>http://www.elainemcvicar.com/blog/code/and-the-microsites-just-keep-on-coming/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 14:27:10 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[classes]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=201</guid>
		<description><![CDATA[Working on another Flash microsite. I&#8217;ve not even finished the first one yet. Thankfully I can reuse a lot of the work I&#8217;ve done on the other one, and I&#8217;m really enjoying the amount I&#8217;ve been learning while working on them. Classes are really great way for me to easily reuse the code, and with [...]]]></description>
			<content:encoded><![CDATA[<p>Working on another Flash microsite. I&#8217;ve not even finished the first one yet. Thankfully I can reuse a lot of the work I&#8217;ve done on the other one, and I&#8217;m really enjoying the amount I&#8217;ve been learning while working on them.</p>
<p>Classes are really great way for me to easily reuse the code, and with each of these sites I&#8217;m working on I&#8217;m refining them. Right, back to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/code/and-the-microsites-just-keep-on-coming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash page turning components</title>
		<link>http://www.elainemcvicar.com/blog/web-design/flash-page-turning-components/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/flash-page-turning-components/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:08:20 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[page flip]]></category>
		<category><![CDATA[page turn]]></category>

		<guid isPermaLink="false">http://www.elainemcvicar.com/blog/?p=187</guid>
		<description><![CDATA[Part of the microsite I&#8217;ve been working on requires a page flipping component. Did some research into finding one that would suit, and found these: Flash Page Flip &#8211; from FREE to $499 Had a go of the free version. This is HTML based so didn&#8217;t suit my purposes of importing it into the flash [...]]]></description>
			<content:encoded><![CDATA[<p>Part of the microsite I&#8217;ve been working on requires a page flipping component. </p>
<p>Did some research into finding one that would suit, and found these:</p>
<h1><a href="http://www.flashpageflip.com/">Flash Page Flip &#8211; from FREE to $499</a> </h1>
<p>Had a go of the free version. This is HTML based so didn&#8217;t suit my purposes of importing it into the flash as an internal component, and the license with the source code was out of the budget. Animation feels nice and smooth and there are plenty of page controls, but the page images load in dynamically, so if you are flipping through quite quickly you seem to get a lot of blank pages. </p>
<p><a href="http://www.flashpageflip.com/Online-Demo.asp">View demo</a></p>
<h1><a href="http://page-flip.com/products/">Page Flip, FlippingBook &#8211; from FREE (trial) to $299</a></h1>
<p>I liked the smoothness of this one as well. It also has plenty of page control features and comes in a variety of types:</p>
<ul>
<li>FlippingBook HTML Edition &#8211; <a href="http://page-flip.com/new-demos/03-kitchen-gorenje-2008/index.html">View demo</a></li>
<li>Flash Component &#8211; <a href="http://page-flip.com/new-demos/01-simple-catalogue/index.htm">View demo</a></li>
<li>SWF Object &#8211; <a href="http://page-flip.com/new-demos/02-object-demo/index.htm">View demo</a></li>
<li>Joomla Component</li>
</ul>
<p>With the Flash Component you can add ActionScript for external navigation, page links and video. Although no source code is supplied, the component should cover any common uses.  Images also load in dynamically. It seems faster than the Flash Page Flip one, although this may be related to the image file sizes. One thing I wasn&#8217;t so keen on was that the shadows seemed a bit on the dark side, but overall seems like handy and easy to use page flipping tool.</p>
<h1><a href="http://pageflip.hu/">Dynamic Page Flip v3.5 &#8211; from $26 to $435</a></h1>
<p>This page turner offers all the standard page controls, but also has the option of auto page flipping, hard front/back cover, page tearing and right to left written books. Again this one allows you to load in either your image or swf pages dynamically, and is controlled by an XML file. Page turning animation doesn&#8217;t quite feel as smooth, but has a lot of extra features and good documentation on how to use it.</p>
<p><a href="http://pageflip.hu/">View demo</a></p>
<h1><a href="http://pageflip.hu/free.php">Page Flip v2 &#8211; FREE/Open Source</a></h1>
<p>Page Flip also offer a completely free open source version of their Page Flipping component. Has almost all the same features as v3.5, however you import your page images directly into the FLA file.</p>
<p><a href="http://pageflip.hu/free.php">View demo</a></p>
<h1>So&#8230;</h1>
<p>These all seem to be really good page turning components with slightly different usage methods and features.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/flash-page-turning-components/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>it&#8217;s all about class</title>
		<link>http://www.elainemcvicar.com/blog/web-design/its-all-about-class/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/its-all-about-class/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 22:38:22 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.danudesign.co.uk/blog/?p=173</guid>
		<description><![CDATA[I&#8217;m building a Flash microsite at the moment with the consideration that it should end up being a re-useable template, as there may be additional microsites in the future. So best way for me to do it is to create classes that control the functionality of the site. So far I have a main page [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m building a Flash microsite at the moment with the consideration that it should end up being a re-useable template, as there may be additional microsites in the future. So best way for me to do it is to create <a href="http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001879.html">classes</a> that control the functionality of the site.</p>
<p>So far I have a main page structure set out. This includes one FLA file that imports a navigation class. This class creates the menu and controls the navigation between pages.  I&#8217;ve even managed to get <a href="http://www.asual.com/swfaddress/">SWFAddress</a> working. This lets the user click back and forward on their browser through the Flash site.</p>
<p>I&#8217;ve also created a separate class for all of the content pages. This ensures that the actionscript for each page doesn&#8217;t interfere with the others. Next steps are really to code the specific pages, add the content and reskin it to fit the design. </p>
<p>I know I&#8217;ll have quite a few challenges, and the timescales I have to work on it are really tight, but I&#8217;m looking forward to seeing this project through to the end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/its-all-about-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m creating an RSS feed&#8230;I hope</title>
		<link>http://www.elainemcvicar.com/blog/general/im-creating-an-rss-feedi-hope/</link>
		<comments>http://www.elainemcvicar.com/blog/general/im-creating-an-rss-feedi-hope/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 00:06:47 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.danudesign.co.uk/blog/?p=161</guid>
		<description><![CDATA[Well, today I&#8217;m going to try to create an RSS feed for my homepage updates. The blog one is already handily incorporated by WordPress, but I&#8217;d like to create one that involves all my updates. Now the XML tags are pretty easy. This website, Make RSS Feeds, gives you the basics. However, what I need [...]]]></description>
			<content:encoded><![CDATA[<p>Well, today I&#8217;m going to try to create an RSS feed for my homepage updates. The blog one is already handily incorporated by WordPress, but I&#8217;d like to create one that involves all my updates.</p>
<p>Now the XML tags are pretty easy. This website, <a href="http://www.make-rss-feeds.com/making-an-rss-feed.htm">Make RSS Feeds</a>, gives you the basics. However, what I need is one that is automatically updated when I update my website. I believe PHP is the answer. I&#8217;ve found this site: <a href="http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/">Web reference &#8211; Creating a Custom RSS Feed with PHP and MySQL</a>. Let&#8217;s have a go!</p>
<p>Okay, that took me some time using the tutorial above, and the PHP code from my homepage updates&#8230;</p>
<p>First try in the <a href="http://feedvalidator.org/">validator</a> brought out a few errors. I believe they are to do with the header information so I&#8217;m going to search from more help with creating an RSS feed using PHP.</p>
<p>So an hour later, I&#8217;ve managed to get it to work &#8211; excellent! Seems like the tutorial I followed had a few things in it that was causing me problems, although I&#8217;m not sure why. </p>
<p>Now, after some tweaking, here you go, <a href="http://www.danudesign.co.uk/feed/">my homepage RSS feed</a>. Please let me know if you have any problems with it, and I will try to sort them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/general/im-creating-an-rss-feedi-hope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Banner Basics</title>
		<link>http://www.elainemcvicar.com/blog/web-design/flash-banner-basics/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/flash-banner-basics/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 13:40:12 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[banners]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.danudesign.co.uk/blog/?p=67</guid>
		<description><![CDATA[This is a quick beginners guide to creating advertising Flash banners, including some technical issues you should consider. Before you create your Flash banner Before you begin creating your file there are a few things you will need to confirm with your client, advertising network (i.e. MSN or Yahoo), or digital marketing agency (i.e. TradeDoubler) [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick beginners guide to creating advertising Flash banners, including some technical issues you should consider.</p>
<h1>Before you create your Flash banner</h1>
<p>Before you begin creating your file there are a few things you will need to confirm with your client, advertising network (i.e. MSN or Yahoo), or digital marketing agency (i.e. TradeDoubler) . These are, for example, banner sizes, file restrictions (such as animation length, looping, file size), and URL.</p>
<h2>Banner sizes</h2>
<p>A banner can be of almost any size, and can be dependent on placement, geographic location and company. Some common sizes are:</p>
<ul>
<li>MPU &#8211; 300 x 250 px</li>
<li>Skyscraper &#8211; 120 x 600 px</li>
<li>Full banner &#8211; 468 x 60 px</li>
<li>Leaderboard &#8211; 728 x 90 px</li>
</ul>
<h2>File restrictions</h2>
<h3>Animation length</h3>
<p>Some advertising networks will require a limit to your animation length, so before you start ensure you know what this is if there is one, otherwise take a look at <a href="http://www.iab.net/standards/richmedia.asp">IAB Rich Media Standards</a>. They recommend 15 seconds for the length of the animation.</p>
<h3>Looping</h3>
<p>Some advertising networks also do not allow the animation to loop, so find out if this is so. It&#8217;s also worth considering whether the banner will benefit from looping the animation, or if you want to finish on a final frame with a strong call to action.</p>
<h3>File size</h3>
<p>There will be a file size limit to your Flash banner, so optimising your banner is essential. It&#8217;s a good idea to consider this at the design stage. Try to keep everything as simple as you can. Bitmap images and a variety of typefaces will increase your final file size, so on your publish settings select the option to generate a size report to discover where you can streamline your file. Also, take a look <a href="http://hex.sg/blog/?p=28">here</a> for some further advice on optimising your banner.</p>
<h3>URL</h3>
<p>The standard method of passing a URL to the Flash banner is by using a clickTag. This code allows the banner clicks to be tracked. The page that the Flash is placed in will tell the banner what the &#8216;clickTag&#8217; value should be, i.e. the URL with the tracking code, then the Flash banner will use that value as the URL when it is clicked.</p>
<p>The format of the clickTag is also dependant on the placement. &#8216;clickTag&#8217; seems to be the most common, however, &#8216;ClickTag&#8217;, &#8216;ClickTAG&#8217; and &#8216;clickTAG&#8217; are also used.</p>
<h1>Starting the Flash banner</h1>
<h2>Frame rate</h2>
<p>Too fast and some processsors can&#8217;t keep up, too slow and the animation is jumpy and awkward. So what should you set your frame rate too?</p>
<p>Here&#8217;s some info on the &#8216;Magic Frame Rate&#8217;</p>
<blockquote><p>&#8220;About magic frame rate numbers: Recommended fps values for your FLA document are either 21 or 31, otherwise known as the &#8220;magic frame rate numbers&#8221;. The reason for these values is that the default document setting of 12 fps is more often than not too slow for tween animations, resulting in &#8220;jerky&#8221; motion. So most of the time it needs to be higher. In addition, it has been found that two SWFs published to the same fps, will run slower on the Mac Flash Player than on the PC Flash Player, given equivalent processing power. Sometimes the lag time is quite noticeable. To counteract this &#8220;bug&#8221;, we must set our FLA to either 21, 31, 41, 51 or 61 fps to negate this effect. But of course most computer processors cannot keep up with a frame rate higher than 31 fps, or performance issues in the Flash Player may occur. Thus it is advised that only frame rates of either 21 or 31 be used for most FLA documents. Only if you are running an FLV video player in your browser with the video at high resolution (larger than 320×240) would it be advisable to drop the frame rate of your FLV down to 12-15 in order to conserve performance. See Tom Green&#8217;s CMX article for more details on video performance in Flash.&#8221;</p></blockquote>
<p>Taken from: <a href="http://www.communitymx.com/content/article.cfm?page=2&amp;cid=C1379">Community MX : Understanding the Movie Clip Architecture</a>.</p>
<p>So, I&#8217;d recommend keeping your frame rate to 31fps, to ensure minimal performance issues while still keeping a nice, smooth animation.</p>
<h2>Background</h2>
<p>Always remember to add a solid background to your banner, rather than setting the background property in Flash. Quite often, when a banner is placed it will have the &#8216;wmode&#8217; set to transparent, so you can lose your set background colour.</p>
<h2>Border</h2>
<p>It is also recommended to have a solid border differentiating your Flash banner from the content surrounding it. This is quite often a restriction requested by advertising networks to ensure that your banner does not appear to be part of the site content.</p>
<h2>Button</h2>
<p>Unless you want different parts of your banner to link to different places, a good habit to create a transparent button covering the full size of the banner.</p>
<p>Then add the button action, something like this:</p>
<p><code>on (release) {<br />
getURL(clickTag, "_blank");<br />
}<br />
</code></p>
<h2>Providing an alternative</h2>
<p>Also remember that you may have to create a gif alternative to the Flash banner. The file size restrictions will also be an issue here, so try to keep it as simple as possible. It may be a good idea to keep this static if possible.</p>
<h1>And finally</h1>
<p>If you are looking for some more information, check out <a href="http://www.adobe.com/devnet/flash/articles/flash8_bestpractices_10.html">Adobes Best Practices when advertising with Flash</a> or read my other article on <a href="http://equatorlive.com/blogs/eviltwin/ads/flash-banner-ads/ ">Flash Banners Ads</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/flash-banner-basics/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zoom. Zoom. Zooooooom&#8230;.and drag</title>
		<link>http://www.elainemcvicar.com/blog/web-design/zoom-zoom-zooooooomand-drag/</link>
		<comments>http://www.elainemcvicar.com/blog/web-design/zoom-zoom-zooooooomand-drag/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 21:17:30 +0000</pubDate>
		<dc:creator>elaine</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash animation]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[classes]]></category>

		<guid isPermaLink="false">http://www.danudesign.co.uk/blog/?p=54</guid>
		<description><![CDATA[Well, I&#8217;m rather impressed with myself (even though I really shouldn&#8217;t be, because this has taken me days). Anyway, I eventually managed to get my Actionscript 2.0 Zoom Class working. It will let you drag a  movie clip and make it zoom in and out from either the centre or top left of  the screen, [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;m rather impressed with myself (even though I really shouldn&#8217;t be, because this has taken me days). Anyway, I eventually managed to get my Actionscript 2.0 Zoom Class working.</p>
<p>It will let you drag a  movie clip and make it zoom in and out from either the centre or top left of  the screen, rather than the centre/top left of the actual clip. Sounds a  bit confusing, but once it&#8217;s finished I&#8217;ll put up a sample and you can see what I mean.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.elainemcvicar.com/blog/web-design/zoom-zoom-zooooooomand-drag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
