<?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 Designer - Defining the internet through beautiful design &#187; Flash</title>
	<atom:link href="http://www.webdesignermag.co.uk/category/tutorials/flash-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdesignermag.co.uk</link>
	<description>Web Design for real people</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:00:29 +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>Web Workshop: Flash animation</title>
		<link>http://www.webdesignermag.co.uk/tutorials/web-workshop-flash-animation/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/web-workshop-flash-animation/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 10:33:45 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Mark Shufflebottom]]></category>
		<category><![CDATA[Point and Click]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=7182</guid>
		<description><![CDATA[Web games need to be something of a novelty compared with games on consoles or PCs. You don’t have the capability, time or money to create a web-based game that is going to be the next groundbreaking first person shooter. Instead the game has to offer something unique that is compelling with the player and offer a fun experience that raises a smile in the mind of the user.]]></description>
			<content:encoded><![CDATA[<!--anno--><!--anno--><p><img class="alignnone size-full wp-image-7183" title="Web Workshop: Flash animation" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/09/anno.tif" alt="Web Workshop: Flash animation" />OneClickDog.com created Littlewheel which has won an MTV award for best browser game and it’s no wonder. They’ve taken the old point-and-click game and created some of the most beautiful animation, that tells an interactive story with a challenge of bringing you in-game friends back to life.</p>
<p><span style="color: #999999;"><em><strong>AUTHOR: Mark Shufflebottom | Web Designer Issue 180</strong></em></span></p>
<p><img class="alignnone size-full wp-image-7187" title="Web Workshop: Flash animation" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/09/anno.jpg" alt="Web Workshop: Flash animation" width="500" height="333" /></p>
<p><strong>ANNOTATIONS</strong></p>
<p><strong>Background</strong><br />
The background contains blurred imagery giving a sense of depth to the project and creates a rich environment that becomes very believable.</p>
<p><strong>Point-and-click</strong><br />
The game is a familiar point-and-click that allows users to explore the interface and solve puzzles in order to progress. The white circles give you a clue as to clickable areas that are interactive.</p>
<p><strong>Interactive</strong><br />
The scenery can be interacted with and usually some small detail is overlooked when trying to solve the puzzles.</p>
<p><strong>Silhouette</strong><br />
The silhouette style of imagery gives a very striking look which uses Flash’s flat vector style to great strength instead of being perceived as a<br />
weakness.</p>
<p><strong>Avatar</strong><br />
Your character is a robot who is trying to restore power and life to a city and wake the powerless robot population.</p>
<p><strong>inspiration</strong> http://fastgames.com/littlewheel.html</p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><strong>TECHNIQUE</strong><br />
<strong>1 Add symbols</strong><br />
Create the player Movie Clip you want to move. Add this to the stage and give it the instance name of ‘player’. Now create a button in the library and add two instances of the button on each side of the stage. Name one ‘walkHere’ and the other ‘walkThere’.</p>
<p><strong>2 Setting up the code</strong><br />
On a new layer, select frame 1 and open the ActionScript editor. Copy in the code as shown into the editor. The irst three lines set up some variables that we will use. The irst is the most important as it will determine the speed at which your player moves. Then we set up listeners to listen for mouse clicks on either of the buttons.</p>
<p><em>var walkRate = 15;<br />
var targetBuffer = 10;<br />
var clicked:String;<br />
walkHere.addEventListener<br />
(MouseEvent.CLICK, goToPoint);<br />
walkThere.addEventListener<br />
(MouseEvent.CLICK, goToPoint);</em></p>
<p><strong>3 Move when clicked</strong><br />
After the irst set of code copy in the next code as shown. This is the function that is called when either of the buttons are clicked on. Notice that the player is moved to the position of the mouse when the user clicks the button and this is stored in the targetx and targety variables. The player is then moved by adding the movePlayer listener which is called every frame.</p>
<p><em>function goToPoint(e:MouseEvent)<br />
:void<br />
{clicked=e.target.name<br />
player.targetx = mouseX;<br />
player.targety = mouseY;<br />
player.addEventListener<br />
(Event.ENTER_FRAME, movePlayer); }</em></p>
<p><strong>4 Move the player</strong><br />
Add this code under the last. It is called every frame and moves the player towards the target position. You will notice a large if statement, this is checking to see if the player has reached the target and if so the listener is removed so that the player stops moving.</p>
<p><em> function movePlayer(e:Event):void<br />
{<br />
var pMove:Array = new Array();<br />
pMove = getMovement(player.<br />
targetx,player.targety);<br />
var xinc = pMove[0];<br />
var yinc = pMove[1];<br />
player.x += xinc;<br />
player.y += yinc;<br />
if ((player.x &gt; (player.targetxtargetBuffer)<br />
&amp;&amp; player.x &lt; (player.<br />
targetx+targetBuffer)) &amp;&amp;<br />
(player.y &gt; (player.targetytargetBuffer)<br />
&amp;&amp; player.y &lt; (player.<br />
targety+targetBuffer)))<br />
{<br />
player.removeEventListener(Event<br />
.ENTER_FRAME, movePlayer);<br />
}<br />
}</em></p>
<p><strong>05 Last code</strong><br />
The inal section of code works out the position increment to move the player to. Once done, hit Return and Enter on the keyboard to see the ile. Click on either of the buttons to see your player move to those points.</p>
<p><em>function getMovement(thisX, thisY)<br />
:Array<br />
{<br />
var movement:Array = new Array();<br />
var xdiff = (thisX &#8211; player.x);<br />
var ydiff = (thisY &#8211; player.y);<br />
var diff = Math.sqrt(Math.<br />
pow(xdiff,2) + Math.pow(ydiff,2));<br />
var fraction = walkRate / diff;<br />
var xinc = fraction * xdiff;<br />
var yinc = fraction * ydiff;<br />
movement.push(xinc, yinc, diff);<br />
return movement;<br />
}</em></p>
<p><strong>COMMENT | What the experts think of the site</strong><br />
<strong>Simple gameplay works best</strong><br />
“The beauty of Littlewheel is that it is a very simple game that anyone can play. The whole point of the game is to control a very limited selection of actions until you progress to the next screen. When you inally complete the game it is something that anyone can achieve but it gives you a massive sense of accomplishment because of all the beautiful animation.”<br />
<span style="color: #999999;"><em><strong>Mark Shufflebottom</strong></em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/web-workshop-flash-animation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build an animated 3D Flash logo</title>
		<link>http://www.webdesignermag.co.uk/blog/3d-flash-logo/</link>
		<comments>http://www.webdesignermag.co.uk/blog/3d-flash-logo/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 09:39:15 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[animated]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[sting]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=6358</guid>
		<description><![CDATA[In this tutorial we will turn a regular logo into a motion sting. This could be used as part of a website, mobile app or location-based screen to give presence to the brand.]]></description>
			<content:encoded><![CDATA[<!--final1--><!--shot-1--><!--shot-2--><!--shot-3--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/final1.jpg"><img class="alignnone size-full wp-image-6374" title="final" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/final1.jpg" alt="Build an animated 3D Flash logo" width="500" height="313" /></a></p>
<p>As part of building a brand logo, it is important to give consideration to how it moves as much as the visual communication arrived at for a static logo. With more and more brands using screen-based media, motion literacy is becoming increasingly important as part of the web designer’s general knowledge. In this tutorial we will turn a regular logo into a motion sting. This could be used as part of a website, mobile app or location-based screen to give presence to the brand. The first part will focus on giving the logo weight, this in part is done by using a 3D shape for the logo, but using motion we can make this more real by adding bounce as it drops into shot. The ground will have a reaction by generating a splat that vines will grow out from. Using some particle effects we can create a reveal on the graphic logo to highlight the wording and bring this to the forefront of the visuals.</p>
<p>tools | tech | trends: Flash</p>
<p>This tutorial originally appeared in Web Designer issue 176, authored by Mark Shufflebottom. The tutorial files may be <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/10/Flash_motion_logo.zip" target="_blank">downloaded here</a></p>
<p><strong>1) Getting started</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-1.jpg"><img class="alignnone size-full wp-image-6372" title="Build an animated 3D Flash logo" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-1.jpg" alt="Build an animated 3D Flash logo" width="500" height="313" /></a></p>
<p>Drag the project folder from the CD to your desktop, inside the folder open ‘start.fla’ in Flash. The project contains many of the assets needed for the project in the library. On the stage you’ll see the background in place. Add a new layer and name it ‘drop’.</p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><strong>2) Add the logo</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-2.jpg"><img class="alignnone size-full wp-image-6367" title="Build an animated 3D Flash logo" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-2.jpg" alt="Build an animated 3D Flash logo" width="500" height="313" /></a></p>
<p>From the library drag the ‘logo-center’ to the stage and position just off the top. Right-click the timeline and choose ‘Add motion tween’ from the menu. Move to frame 12 and drag the logo down to the middle of the screen. Switch to the Motion Editor tab and scroll down to the ‘Eases’ section.</p>
<p><strong>3) Add a bounce</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-3.jpg"><img class="alignnone size-full wp-image-6366" title="Build an animated 3D Flash logo" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/04/shot-3.jpg" alt="Build an animated 3D Flash logo" width="500" height="313" /></a></p>
<p>Click the plus icon and choose ‘Bounce In’ then increase the value to 15. Scroll up and under Basic Motion Y change the Ease drop menu to ‘2-Bounce In’. Switch back to the timeline and Ctrl/Cmd-click frame 13, then right-click and choose Split Motion. If you preview the animation you will see the logo drop and bounce.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/blog/3d-flash-logo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a custom YouTube player</title>
		<link>http://www.webdesignermag.co.uk/blog/create-a-custom-youtube-player/</link>
		<comments>http://www.webdesignermag.co.uk/blog/create-a-custom-youtube-player/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 17:23:27 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[Yahoo!]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=6010</guid>
		<description><![CDATA[YouTube's javascript player API makes it possible to create a custom player using javascript controls with a chromeless version of its embedded Flash player]]></description>
			<content:encoded><![CDATA[<!--youtubemain--><!--step-1--><!--step-2--><!--step-4--><!--step-5--><!--step-6--><!--step-7--><!--step-15--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/youtubemain.jpg"><img class="size-full wp-image-6012 alignnone" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/youtubemain.jpg" alt="Create a custom YouTube player" width="500" height="313" /></a><br />
<em><span style="color: #808080;">Download the <a title="Create a custom YouTube player" href="http://www.webdesignermag.co.uk/tutorial-files/issue-174-tutorial-files/" target="_self"><strong>full code</strong></a> to accompany this tutorial</span></em></p>
<p>A CUSTOMSKINNED YouTube player isn’t possible, right? Well, it is now. Using YouTube’s JavaScript API combined with a chromeless version of its embedded Flash player allows you to control a video window with custom JavaScript/CSS controls. Throw jQuery (http://jquery.com) into the mix and you can create a really nice custom-skinned player with all of the functionality of a basic Flash player.</p>
<p>YouTube’s extensive API also makes it possible to load and play several videos with one player, allowing you to take your player a step further and create a video gallery. A demo player showcasing just about everything you can do with the API is available at http://tinyurl.com/324h6aq. We’ll cover the basic setup of a custom player, as well as how to integrate an optional video gallery. The good folks over at Airwalk (http://airwalk.com) have recently launched a new website showcasing this functionality and have generously allowed us to feature their player, imagery and videos for the purposes of illustration.</p>
<p><strong>01 API reference</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-1.jpg"><img class="size-full wp-image-6019 alignnone" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-1.jpg" alt="Create a custom YouTube player" width="500" height="381" /></a><br />
When using an API, a good place to start is always the reference. Take a look at the YouTube JavaScript Player API Reference (http://code.google.com/apis/youtube/js_api_reference.html) to get an idea of what’s possible for your player. It’s nice to know this stuff up front so you don’t have to make changes later!</p>
<p><strong>02 Project setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-2.jpg"><img class="alignnone size-full wp-image-6020" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-2.jpg" alt="Create a custom YouTube player" width="500" height="407" /></a><br />
The code presented in this tutorial is all XHTML 1.0 Transitional. So really, the only requirement here is that you use that for your doctype. Beyond that you could keep things organised by storing assets (css, images, JavaScript) in a data folder, separated in subfolders by type.</p>
<p><strong>03 Some simple CSS</strong><br />
The XHTML/CSS setup on the CD is pretty easy. The CSS contains two sections, one for some generic reset declarations to strip the browser defaults off of most items and another section for the player layout.<br />
<em>@charset “utf-8”;<br />
/******************************<br />
* Reset *<br />
* *<br />
******************************<br />
/ */<br />
* {<br />
padding:0;<br />
margin:0;<br />
border:none;<br />
}<br />
html {<br />
height:100%; width:100%;<br />
}<br />
body {<br />
font:16px/24px Arial, Helvetica, sans-serif;<br />
height:100%; width:100%; background:#fff<br />
url(../images/body-bg.gif) top left repeat;<br />
}<br />
/******************************<br />
* Layout *<br />
* *<br />
******************************<br />
/ */<br />
/* &#8230; */</em></p>
<p><strong>04 Play/pause button setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-4.jpg"><img class="alignnone size-full wp-image-6021" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-4.jpg" alt="Create a custom YouTube player" width="500" height="361" /></a><br />
The play/pause button should be set up with a sprite background image containing both the ‘playing’ and ‘paused’ states. This way, when the state changes you can simply move the background image and there is no need to load a new image into the button. We’ll cover how the switch works later in the tutorial.</p>
<p><strong>05 Seekbar setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-5.jpg"><img class="alignnone size-full wp-image-6022" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-5.jpg" alt="Create a custom YouTube player" width="500" height="361" /></a><br />
The seekbar should be set up with a sprite background. The functionality will be different as the background will be positioned to reflect the percentage of the video that’s played. Set the background colour of the seekbar to any colour, then add a background image of a different colour that’s large enough to fill the seekbar.</p>
<p><strong>06 Mute button setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-6.jpg"><img class="alignnone size-full wp-image-6023" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-6.jpg" alt="Create a custom YouTube player" width="500" height="361" /></a><br />
The mute/unmute button should be set up exactly like the play/pause button. We’ll cover how to switch the position later in the tutorial.</p>
<p><strong>07 JavaScript framework</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-7.jpg"><img class="alignnone size-full wp-image-6024" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-7.jpg" alt="Create a custom YouTube player" width="500" height="406" /></a><br />
For JavaScript, include a couple frameworks and your own player.js file. The first framework, jQuery (http://jquery.com), will be used to reference the controls, bind event listeners to them and update their display as the player state changes. Next, SWFObject (http://code. google.com/p/swfobject/) will be used to embed the chromeless Flash player on the page. Finally, your own player.js file will tie it all together unobtrusively (no in line JavaScript will be used). Let’s look closer at player.js…</p>
<p><strong>08 Document ready</strong><br />
The first thing you need to do in player.js is set a few global variables for the player and listen for the DOM to be ready. As you can see, jQuery makes this really easy by simply attaching a ready listener to the document object. Inside this listener, now that items are ready, attach the listeners to the player controls.</p>
<p><em>var player = null;<br />
var ready = false;<br />
var seekReady = false;<br />
var playheadInterval = 0;<br />
var tooltip = null;<br />
$(document).ready(function() {<br />
// embed chromless player<br />
var id = ‘flash’;<br />
var src = ‘pgfLv6-Qv0w’;<br />
var params = {allowScriptAccess:”always”};</em></p>
<p><strong>09 YouTube player ready</strong><br />
The function “onYouTubePlayerReady” is required to be a global object by the YouTube Chromeless Flash Player,<br />
and will be called when the player is ready to accept commands. In this function, get a reference to the player, add a state change event listener and flip the ready flag.</p>
<p><em>/************************************************<br />
* onYouTubePlayerReady:void *<br />
* *<br />
* Called from the YouTube player API. *<br />
* This player is ready for action! *<br />
************************************************<br />
/ */<br />
onYouTubePlayerReady = function() {<br />
player = document.getElementById(‘myplayer’);<br />
player.addEventListener(“onStateChange”,<br />
“onPlayerStateChange”);<br />
ready = true;<br />
}</em></p>
<p><strong>10 YouTube player state</strong><br />
Each time the YouTube player’s state changes, it’ll dispatch a state change event and call this function. The new player state code will be passed into this function. You can see which state is mapped to which code by looking at the comments in the code below.</p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><em>/************************************************<br />
* onPlayerStateChange:void *<br />
* *<br />
* Handle player state change. *<br />
************************************************<br />
/ */<br />
onPlayerStateChange = function(s) {<br />
switch(s) {<br />
case -1: // unstarted<br />
return;<br />
case 0: // ended<br />
resetPlayer();<br />
return;<br />
case 1: // playing</em></p>
<p><strong>11 Update the playhead</strong><br />
While the player is playing, the “updatePlayhead” function should be called on an interval every ten milliseconds. This function takes the player’s playhead time divided by the player’s total time to determine the percentage of the video that has been played, and sets the position of the background sprite of the seekbar respectively. A portion of the code for this step is shown here for reference.</p>
<p><em>/************************************************<br />
* updatePlayhead:void *<br />
* *<br />
* Update the seekbar. *<br />
************************************************<br />
/ */<br />
updatePlayhead = function() {<br />
if(typeof(player.getCurrentTime) ==<br />
‘undefined’) {<br />
clearInterval(playheadInterval);<br />
return;</em></p>
<p><strong>12 Play/pause</strong><br />
The “playPause” function should check the player’s state, play the video if it is unstarted, ended, or paused and pause the video if it is playing. This function also manages the display of the play/pause button by setting the position of the background image depending on the player state.<br />
/************************************************<br />
* playPause:void *<br />
* *<br />
* Toggle play/pause. *<br />
************************************************<br />
/ */<br />
playPause = function() {<br />
switch(player.getPlayerState()) {<br />
case -1: // unstarted<br />
case 0: // ended<br />
case 2: // paused<br />
player.playVideo();</p>
<p><strong>13 Seek percentage</strong><br />
The seekbar should also handle clicks to seek the video.  This is done by determining the x position where the user clicked on the seekbar and dividing that by the total width of the seekbar. This gives us a percentage to seek the video to.</p>
<p><em>/************************************************<br />
* seekToPercent:void *<br />
* *<br />
* Seek to the passed percentage. *<br />
* *<br />
* percent:Number &#8211; percent to seek to. *<br />
************************************************<br />
/ */<br />
seekToPercent = function(percent) {<br />
var time = percent * player.getDuration();<br />
player.seekTo(time, true);<br />
}</em></p>
<p><strong>14 Toggle sound</strong><br />
The “toggleSound” function should check if the player is currently muted and unmute it, and vice versa. This function also manages the display of the mute/unmute button by setting the position of the background image depending on the player’s sound state.</p>
<p><em>/************************************************<br />
* toggleSound:void *<br />
* *<br />
* Toggle mute/unmute. *<br />
************************************************<br />
/ */<br />
toggleSound = function() {<br />
if(player.isMuted()) {<br />
player.unMute();<br />
$(‘#mute-btn’).css(‘backgroundposition’,<br />
‘0px 0px’);<br />
} else {<br />
player.mute();<br />
$(‘#mute-btn’).css(‘background</em></p>
<p><strong>15 Final steps to finish</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-15.jpg"><img class="alignnone size-full wp-image-6018" title="Create a custom YouTube player" src="http://www.webdesignermag.co.uk/wp-content/uploads/2011/02/step-15.jpg" alt="Create a custom YouTube player" width="500" height="322" /></a><br />
That’s it! You should have a functioning custom player with play/pause, seek and mute functionality. If you have any problems, reference the files included on the CD. If you would like to take your player a step further, check out the ‘In Detail’ section in this article which covers turning your player into a gallery.</p>
<p><strong>FURTHER TECHNIQUE</strong></p>
<p><span style="color: #333333;"><em><strong>Turn your custom player into a gallery</strong></em></span></p>
<p>In the example code there are several pieces of code denoted with the comment “Video Gallery<br />
(Optional).” These optional blocks are what is required to add the video gallery.</p>
<p><strong>Step 1: Thumbnail list XHTML/CSS</strong><br />
The first step is to create an unordered list (or any other element that you prefer) to contain the links to each video in<br />
your gallery. The example on the CD shows a list floated next to the player with square thumbnails floated in three  columns. Each list item contains a link with a call to the “loadVideo” function and passes the video id. This is really the only requirement, everything else can be styled as you choose.</p>
<p><strong>Step 2: Adding a preview tooltip</strong><br />
Next, add a preview tooltip to give the user a preview of each video before they click to load it. In the example on the CD you will find a section commented “tooltip” in the document ready handler (player.js line 44). In this section, a new tooltip div is created and styled. Then listeners are added to each thumbnail in our unordered list to fill, position and show the tooltip on mouseenter and hide the tooltip on mouseleave.</p>
<p><strong>Step 3: The “loadVideo” function</strong><br />
In the “loadVideo” function flip the ready flag back false and use the YouTube JavaScript API’s “cueVideoById” function to load a new video. Note that the “cueVideoById” function also takes parameters for start time and quality which have been set to “0” and “default” for the purposes of this example. When the new video is loaded, the player will dispatch the “stateChange” event with a “cued” status. Simply handle this event in the “onPlayerStateChanged” listener and reset the<br />
player/controls for the new video.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/blog/create-a-custom-youtube-player/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bring imagery to life in Flash CS4</title>
		<link>http://www.webdesignermag.co.uk/tutorials/image-to-life-in-flash/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/image-to-life-in-flash/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 16:53:48 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[motion]]></category>
		<category><![CDATA[tween]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4920</guid>
		<description><![CDATA[Don’t just emulate your HTML pages, use Flash in your designs to add flare and dynamism to your static, lifeless imagery]]></description>
			<content:encoded><![CDATA[<!--final1--><!--step-110--><!--step-22--><!--step-31--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/final1.jpg"><img class="alignnone size-full wp-image-4921" title="final" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/final1.jpg" alt="Bring imagery to life in Flash CS4" width="500" height="334" /></a></p>
<p>Don’t just emulate your HTML pages, use Flash in your designs to add flare and dynamism to your static, lifeless imagery</p>
<p>The biggest mistake any Flash designer can make is to merely emulate what you can do in HTML with Flash. Flash designers should play to the strengths of Flash using its rich palette of animation tools and special effects to add value to what could normally be displayed using HTML. One of the largest uses of Flash on the internet is for marketing purposes.<br />
In this tutorial we will explore taking a static image and adding interest to this using a variety of special effects, such as blurring the background and letting it fade into focus slowly so that the user’s attention is focused on the foreground. We will place a product in the foreground and add flashes of light to draw attention to it. Rather than just displaying static text, we will dynamically script the text onto the design using a typewriter effect with ActionScript 3.0. Once you have completed the tutorial you may want to use the same techniques to fade the content out again.</p>
<p>This article was originally authored by Mark Shufflebottom and appeared in Web Designer issue 167. You may download the <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Flash-Tut.zip" target="_blank">project files here</a></p>
<p><strong>01 Setting up the document</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-110.jpg"><img class="alignnone size-full wp-image-4934" title="step-1" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-110.jpg" alt="Bring imagery to life in Flash CS4" width="500" height="313" /></a></p>
<p>From the cover CD browse to the tutorial folder and open ‘start.fla’ in Flash CS4. Once open, look in the Properties panel and change the background to black, the frame rate to 25fps and the document size to 1024&#215;618 pixels. In the library click on the ‘bg.jpg’ image and drag it to the stage.</p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><strong>02 Convert to Symbol</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-22.jpg"><img class="alignnone size-full wp-image-4929" title="step-2" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-22.jpg" alt="Bring imagery to life in Flash CS4" width="500" height="313" /></a></p>
<p>Position the image at 0 pixels on the x and y axis in the Properties panel, then go to the Modify menu and select Convert to Symbol. Name the symbol ‘bg’ and make it a Movie Clip then click OK. Right-click on the frame and choose Create Motion Tween from the menu. Drag the timeline out to frame 111 and move the first frame to five.</p>
<p><strong>03 Add the tweens</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-31.jpg"><img class="alignnone size-full wp-image-4938" title="step-3" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-31.jpg" alt="Bring imagery to life in Flash CS4" width="500" height="313" /></a></p>
<p>Move the playhead to frame five and then click on the image on the stage so it is selected. In the Properties panel add a colour effect of Alpha and set this to 0%. Further down in the properties is the Filters. Add a Blur filter to the image and set it at 25 pixel blur on both the x and y axis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/image-to-life-in-flash/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Interactive 3D comic scenes with Flash CS4</title>
		<link>http://www.webdesignermag.co.uk/tutorials/interactive-3d-comic-scenes-with-flash-cs4/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/interactive-3d-comic-scenes-with-flash-cs4/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 11:52:31 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[comic]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4712</guid>
		<description><![CDATA[Publishing your own interactive comic is simple with Flash, we explore how to set up and make interactive 3D scenes]]></description>
			<content:encoded><![CDATA[<!--finished--><!--step-1--><!--step-2--><!--step-3--><!--step-4--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/finished.jpg"><img class="alignnone size-full wp-image-4730" title="Interactive 3D comic scenes with Flash CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/finished.jpg" alt="Interactive 3D comic scenes with Flash CS4" width="500" height="295" /></a></p>
<p>Comics have far reaching influence these days, following Hollywood’s pillage of the best and most successful comic book tales as they try to cash in on ready-made audiences. DC Comics has recently attempted to turn its comics into digital adventures by releasing titles such as The Watchmen and Batman as digital comics on DVD and Blu-ray. These comics are paced to audio to enhance the stories so that they can be watched on the home TV.<br />
In this tutorial we are going to up the ante as we create a more immersive interactive experience. Instead of simply playing the comic, we will create a 3D scene by placing content on different z depths in CS4 and allowing the user to move the mouse round to actually look into the scene. To advance the story the user will click the mouse button to move from frame to frame. You can change the content in the tutorial for your own comic images.</p>
<p>This article was originally authored by Mark Shufflebottom and appeared in Web Designer issue 168. You may download the companion project assets by <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/03/Flash-Tut.zip" target="_blank">clicking here</a></p>
<p><strong>01 Setting up the project</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-1.jpg"><img class="alignnone size-full wp-image-4715" title="Interactive 3D comic scenes with Flash CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-1.jpg" alt="Interactive 3D comic scenes with Flash CS4" width="500" height="313" /></a></p>
<p>From the project files open the ‘start.fla’ file in Flash. In the properties panel change the size of the document to 800&#215;440 pixels then look in the library to see the assets that have been split into folders so that they are easy to use. Press Ctrl/Cmnd+F8 to create a new symbol, name it ‘perspective’ and make it a Movie Clip.</p>
<p><strong>02 The first scene</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-2.jpg"><img class="alignnone size-full wp-image-4724" title="Interactive 3D comic scenes with Flash CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-2.jpg" alt="Interactive 3D comic scenes with Flash CS4" width="500" height="313" /></a></p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p>Open the scenery folder in the library and drag the ‘corridor’ symbol onto the stage. In the Transform palette increase the size of the corridor to 200%. Position this at -1102 pixels on the x axis, -580 pixels on the y axis and 300 on the z axis. Now position the corridor in the background of the perspective frame.</p>
<p><strong>03 Add your hero</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-3.jpg"><img class="alignnone size-full wp-image-4723" title="Interactive 3D comic scenes with Flash CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-3.jpg" alt="Interactive 3D comic scenes with Flash CS4" width="500" height="313" /></a></p>
<p>In the hero folder of the library drag the ‘hero_move’ symbol onto the stage positioning this at -382 pixels on the x axis, -314 pixels from the y axis and 246 pixels on the z axis. Add the ‘sadus1’ symbol from the enemy library onto the stage and position at -658, -382, -50 pixels on the respective x, y and z axis.</p>
<p><strong>04 Add the glow</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-4.jpg"><img class="alignnone size-full wp-image-4722" title="Interactive 3D comic scenes with Flash CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/08/step-4.jpg" alt="Interactive 3D comic scenes with Flash CS4" width="500" height="313" /></a></p>
<p>From the props folder in the library drag the ‘glow’ symbol onto the stage, use the Modify&gt;Arrange menu to send the glow back behind the ‘enemy’. Position on the z axis at -50 pixels and in the Properties panel add a 15 pixel blur filter. Click on frame 30 and press F5 to extend the timeline, then add a new layer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/interactive-3d-comic-scenes-with-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash time-lapse headers</title>
		<link>http://www.webdesignermag.co.uk/tutorials/time-lapse-headers/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/time-lapse-headers/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 11:26:43 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[time-lapse]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4507</guid>
		<description><![CDATA[Create a Flash header scene which animates according to your system clock]]></description>
			<content:encoded><![CDATA[<!--comp--><!--Step1--><!--Step2--><!--Step3--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/comp.jpg"><img class="alignnone size-full wp-image-4516" title="Flash time-lapse headers" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/comp.jpg" alt="Flash time-lapse headers" width="500" height="409" /></a></p>
<p>Create a Flash header scene which animates according to your system clock</p>
<p>Tired of the looped animations or static design of your site headers? Here is your chance to create something which will be different at every visit!</p>
<p>When you design something, you are usually happy with it for some time. After a while though, you start thinking about changing things so people don’t always see the very same thing and inevitably get bored. To avoid such a scenario, let’s have a look at creating a scene where you can guarantee it will be different every single time users will visit it. To make it happen in a dynamic manner, we will be counting on one variable which is constantly different upon users’ every visit and that is time factor. Together, we will create a scene which animates according to different times of a day, ie into night at night, into day during the day and of course into states in-between noon and midnight. Once you go through the tutorial, it will be only up to you whether you recreate the scene in the same, illustrated fashion or you go for something rather more realistic such as photograph cutouts or so on – the techniques and principles remain exactly the same.</p>
<p>Project files for this tutorial can be <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2009/11/Flash-DayNight.zip" target="_blank">downloaded here</a>.<br />
This article was originally authored by Lubos Buracinsky, and featured within Web Designer issue 164</p>
<p><strong>01 Getting started</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step1.jpg"><img class="alignnone size-full wp-image-4517" title="Flash time-lapse headers" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step1.jpg" alt="Flash time-lapse headers" width="500" height="290" /></a></p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p>Open start.fla from the project files. Inside the library<br />
from the MCs folder, drag the Movie Clip ‘sky day’ onto the stage and name the layer ‘sky day’. Create a new layer, name it ‘sky night’ and from the library drag the Movie Clip ‘sky night’ to it. Next, give it an instance name of ‘nightSky’.</p>
<p><strong>02 Add depth</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step2.jpg"><img class="alignnone size-full wp-image-4511" title="Flash time-lapse headers" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step2.jpg" alt="Flash time-lapse headers" width="500" height="290" /></a></p>
<p>Create a new layer, name it ‘hillsDay’ and from the library drag MC ‘hillsDay’ to the stage. Give it an instance name of ‘hills’. Create a new layer called ‘farm’. Drag the MC farm  to the stage and give it an instance name of ‘house’. Also give an instance name of ‘windows’ to MC ‘windows’ and ‘building’ to the Movie Clip ‘building’ inside the farm MC.</p>
<p><strong>03 The Sun and the Moon</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step3.jpg"><img class="alignnone size-full wp-image-4512" title="Flash time-lapse headers" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/06/Step3.jpg" alt="Flash time-lapse headers" width="500" height="290" /></a></p>
<p>In the main timeline, under the hillsDay layer, create a new layer and call it ‘Sun&amp;Moon’. From the library, place Movie Clips of ‘Sun’ and ‘Moon’ on the timeline, align them to the middle, the order should not matter. Give both instances names of ‘Sun’ and ‘Moon’ accordingly. Add a little glow filter to each.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/time-lapse-headers/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Animated interfaces with Flash CS4’s Bone tool</title>
		<link>http://www.webdesignermag.co.uk/tutorials/flash-cs4-bone-tool/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/flash-cs4-bone-tool/#comments</comments>
		<pubDate>Tue, 11 May 2010 09:19:18 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bone]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4401</guid>
		<description><![CDATA[Flash CS4 already has some new powerful animation features]]></description>
			<content:encoded><![CDATA[<!--final1--><!--step-1--><!--step-2--><!--step-3--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/final1.jpg"><img class="alignnone size-full wp-image-4407" title="final" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/final1.jpg" alt="final" width="500" height="362" /></a></p>
<p>Flash CS4 already has some new powerful animation features. get to grips with the Bone tool to create an animated interface</p>
<p>The now previous version of Flash has some handy tools for animating, with one of the newest additions being the Bone tool. This may sound like a pretty strange tool but this has been the mainstay of character animation in 3D packages for years. Even rival packages to Flash such as Toon Boom Studio use a Bone tool. So you may be wondering what’s so special about this new tool? Well, if you draw any shape on the stage and add bones to it, you can move those bones around to animate the shape. This can add life to any object you can draw. As bones can be added to Movie Clips, stage drawings or graphic symbols, animating movement becomes much simpler.<br />
It also introduces a new animation concept to Flash users, known as inverse kinematics. This is when you take the end of a bone chain, such as an arm or a leg, and move it. What it actually does is move all the other joints as well, giving you the ability to create realistic movement in a snap. This tutorial will create an animated arm that will bring content onto the stage by pressing a button.</p>
<p>(<em>This tutorial originally appeared in Web Designer issue 158, authored by Mark Shufflebottom</em>)</p>
<p><strong>01 Getting started</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-1.jpg"><img class="alignnone size-full wp-image-4414" title="Animated interfaces with Flash CS4’s Bone tool" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-1.jpg" alt="Animated interfaces with Flash CS4’s Bone tool" width="500" height="375" /></a></p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p>From the cover CD, drag the file ‘start.FLA’ onto the desktop and then double-click this file to open Flash CS4. Once open you will see a background image on the stage and two symbols in the library. Press Ctrl+F8 to create a new symbol, make this a graphic symbol and then name it ‘animation 1’.<br />
<strong><br />
02 Add the symbols</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-2.jpg"><img class="alignnone size-full wp-image-4403" title="Animated interfaces with Flash CS4’s Bone tool" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-2.jpg" alt="Animated interfaces with Flash CS4’s Bone tool" width="500" height="375" /></a></p>
<p>Click OK to create the new symbol then drag the ‘arm’ symbol from the library onto the stage. Using the Free Transform tool, rotate the ‘arm’ symbol 90º counter-clockwise. Drag two more ‘arm’ symbols to the stage and using the transform palette reduce the sizes to 80% and 40% respectively. Position as shown above.</p>
<p><strong>03 Add the screen</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-3.jpg"><img class="alignnone size-full wp-image-4404" title="Animated interfaces with Flash CS4’s Bone tool" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/05/step-3.jpg" alt="Animated interfaces with Flash CS4’s Bone tool" width="500" height="375" /></a></p>
<p>From the Library drag the ‘screen’ symbol onto the stage and position it on the end of the arm as shown above. In the Properties panel, under Color effect, change the style to Alpha and then set this at around 60%. This is to help us see the arm so that we can set the bones up properly and effectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/flash-cs4-bone-tool/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create a 3D flip clock preloader</title>
		<link>http://www.webdesignermag.co.uk/blog/3d-flip-clock-preloader/</link>
		<comments>http://www.webdesignermag.co.uk/blog/3d-flip-clock-preloader/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 10:46:54 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[preloader]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4184</guid>
		<description><![CDATA[Add a bit more to your website’s first impression by creating a unique 3D preloader utilising Flash CS4’s 3D Rotation capability and ActionScript 3]]></description>
			<content:encoded><![CDATA[<!--finalimage_05--><!--step1--><!--step2--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/finalimage_05.jpg"><img class="alignnone size-full wp-image-4185" title="Create a 3D flip clock preloader" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/finalimage_05.jpg" alt="Create a 3D flip clock preloader" width="500" height="313" /></a></p>
<p>Add a bit more to your website’s first impression by creating a unique 3D preloader utilising Flash CS4’s 3D Rotation capability and ActionScript 3</p>
<p>A website’s preloader is the very first impression people get when they visit it so you should really endeavour to make it look the best you can in order to captivate their attention right away. There is nothing worse than waiting for a highly anticipated website to load up and be staring at something really boring. Well, we will be doing the exact opposite of this!<br />
Together we will create an impressive 3D flip clock loader which will also react to your mouse movements. By offering a compelling experience right from the beginning, not only will you be more likely to engage your visitors before the site loads up but you will also show you care about attention to detail. There is a little bit of work to do but we will be going over some useful techniques from which everyone should benefit.</p>
<p>This tutorial originally appeared in Web Designer issue 162, authored by Lubos Buracinsky. Project files may be downloaded <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2009/09/02_Flash-Flipclock.zip" target="_blank">here</a></p>
<p><strong>01 Getting started</strong></p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/step1.jpg"><img class="alignnone size-full wp-image-4186" title="Create a 3D flip clock preloader" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/step1.jpg" alt="Create a 3D flip clock preloader" width="500" height="313" /></a></p>
<p>Open start.fla from the cover CD. From the library, drag Movie Clips “number9” – “number0” onto the stage on top of one another into one layer. Give each of them an instance name of “n0”, “n1”, “n2” etc according to the number it represents. Next, align them all to the centre. With all selected, press F8, convert them into a Movie Clip called “NumberSet” with registration point in the middle.</p>
<p><strong>02 Duplicate</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/step2.jpg"><img class="alignnone size-full wp-image-4187" title="Create a 3D flip clock preloader" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/04/step2.jpg" alt="Create a 3D flip clock preloader" width="500" height="313" /></a></p>
<p>Select the “NumberSet” Movie Clip and duplicate it twice. Place them in a row one next to another with approximately 5px space between each. Next, name the instances from right to left “ones”, “tens”, “hundreds”. Again, select all three instances, press F8, select Movie Clip, name it “counter” with registration point in the middle and give it an instance name of “counter”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/blog/3d-flip-clock-preloader/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Flash Week Day #5 &#8211; Adding animation in CS4</title>
		<link>http://www.webdesignermag.co.uk/blog/flash-week-day-5-adding-animation-in-cs4/</link>
		<comments>http://www.webdesignermag.co.uk/blog/flash-week-day-5-adding-animation-in-cs4/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 11:44:41 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=4007</guid>
		<description><![CDATA[Adding animation with the Motion Editor &#38; Motion Presets in Flash CS4]]></description>
			<content:encoded><![CDATA[<!--final-option-1--><!--step-110--><!--step-24--><!--step-32--><h3>Adding animation with the Motion Editor &amp; Motion Presets in Flash CS4</h3>
<p>THE NEW MOTION EDITOR IN FLASH CS4 ALLOWS YOU TO CREATE COMPELLING ANIMATIONS FASTER THAN EVER. HERE WE’LL USE TWEENING TRICKS TO BUILD A SIMPLE PHOTO GALLERY</p>
<h3><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/final-option-1.jpg"><img class="alignnone size-full wp-image-4013" title="Flash Week Day #5 - Adding animation in CS4" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/final-option-1.jpg" alt="Flash Week Day #5 - Adding animation in CS4" width="500" height="366" /></a></h3>
<p>TAKING SOME CUES from After Effects, Adobe has completely overhauled the way tweening works in Flash CS4. These new features are designed to allow you to create animations quicker and easier than previously possible. The new Motion Editor takes everything required to create a tween and rolls it up into one panel, making it much easier. From here you can tween Basic Properties (in 2D or 3D), transform properties, colour effects, and filters while also allowing custom or preset eases to be added to your tweens.</p>
<p>In addition, after you’ve created a tween you can save it as a reusable Motion Preset. This allows you to easily reuse animations in future projects by simply applying them to new objects from the Motion Presets panel. This  short step-by-step guide will specifically highlight  some of these new tweening capabilities in Flash CS4, using a simple photo gallery component as an example. The Motion Presets and assets for this tutorial have been included on the CD and can also be downloaded from www.webdesignermag.co.uk.</p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><strong>01 File setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-110.jpg"><img class="alignnone size-full wp-image-4014" title="step-1" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-110.jpg" alt="step-1" width="500" height="366" /></a><br />
Create a new ActionScript 3.0 file with Flash CS4. Make sure the frame rate is 30fps and resize the stage to 600&#215;600. Add a background colour or pattern and a title/description of your choice as shown in the example provided. You can also add any other elements you choose at this stage.</p>
<p><strong>02 Import photos</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-24.jpg"><img class="alignnone size-full wp-image-4015" title="step-2" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-24.jpg" alt="step-2" width="500" height="366" /></a><br />
Next, you’ll need to import each photo that you would like to use to the library. When you are finished, create a new folder on the timeline and place each photo onto a separate layer. Make sure each photo is at the same x and y position and that they all measure exactly the same size.</p>
<p><strong>03 Photo setup</strong><br />
<a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-32.jpg"><img class="alignnone size-full wp-image-4016" title="step-3" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/step-32.jpg" alt="step-3" width="500" height="366" /></a><br />
When all of the photos have been added, it’s time to set them up. For each photo, select it and create a Movie Clip symbol (press F8 or select Modify&gt;Convert to Symbol). Make sure you select centre registration for each photo. This will be important for the animations we will create later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/blog/flash-week-day-5-adding-animation-in-cs4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash Week Day #4 – Twitter feed</title>
		<link>http://www.webdesignermag.co.uk/tutorials/flash-week-day-4-%e2%80%93-twitter-feed/</link>
		<comments>http://www.webdesignermag.co.uk/tutorials/flash-week-day-4-%e2%80%93-twitter-feed/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 17:44:46 +0000</pubDate>
		<dc:creator>Mark Billen</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Mashup]]></category>
		<category><![CDATA[SWXFormat]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.webdesignermag.co.uk/?p=3993</guid>
		<description><![CDATA[Add a Twitter feed to your blog with Flash]]></description>
			<content:encoded><![CDATA[<!--Playfool--><!--Step1--><!--Step2--><!--Step3--><!--Step4--><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Playfool.jpg"><img class="alignnone size-full wp-image-4004" title="Flash Week Day #4 – Twitter feed" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Playfool.jpg" alt="Flash Week Day #4 – Twitter feed" width="500" height="297" /></a></p>
<p>Add a Twitter feed to your blog with Flash</p>
<p>MASH THOSE TWEETS INTO YOUR SITE WITH SOME SWXFORMAT ACTION</p>
<p>Twitter seems to be the big buzz word at the moment. Just over a year ago the number of users was still only in the thousands, but now it is in the millions and everyone is using the micro-blogging tool, from designers to celebrities such as Stephen Fry and William Shatner. A rather nifty idea is to create a little badge to go on your blog so visitors could see what you’re staying via Twitter as well as your blog. There are a few free twitter badges, but they don’t give you the freedom to really put your own design into the badge. They limit you to background and text colour, so why not to create your own?<br />
You may find you have a problem with your badge working fine on the desktop but when you place it online you may have a cross-domain issue. So how do you get around this problem you ask? Well, it’s SWXformat.org to the rescue. SWXformat acts as the proxy to get your data and then sends it to your Flash file online. So let’s get cracking and make a Twitter badge!</p>
<p>Download the project assets by <a href="http://www.webdesignermag.co.uk/wp-content/uploads/2009/05/068-070_flashtwitter.zip" target="_blank">clicking here</a></p>
<p><strong>01 Installing SWXformat</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step1.jpg"><img class="alignnone size-full wp-image-3996" title="Flash Week Day #4 – Twitter feed" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step1.jpg" alt="Flash Week Day #4 – Twitter feed" width="500" height="260" /></a></p>
<p>It’s best to set up your development environment, so first of all you need to download the latest version of SWXformat. You can go to the site swxformat.org or straight to the source code here: http://tinyurl.com/decewk, For AS3 support, copy the “org” folder from Library/v2/AS3 next to your Flash document.</p>
<p><strong>02 New Flash file</strong></p>

					<div class="adInPost">
						<script type="text/javascript">
							GA_googleFillSlot("WD_MidPage_MPU1");
						</script>
					</div><p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step2.jpg"><img class="alignnone size-full wp-image-4001" title="Flash Week Day #4 – Twitter feed" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step2.jpg" alt="Flash Week Day #4 – Twitter feed" width="350" height="403" /></a></p>
<p>Open up Flash CS4 and create a new Flash File (ActionScript 3.0) and make the stage 211px x 428px, Call the first layer ‘BG’. On the cover disc you’ll have an fla file called Twitter, inside that we have created a background, but please let your design skills loose here. Add the background and then create a new layer called ‘panels’.</p>
<p><strong>03 Panels</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step3.jpg"><img class="alignnone size-full wp-image-4003" title="Flash Week Day #4 – Twitter feed" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step3.jpg" alt="Flash Week Day #4 – Twitter feed" width="400" height="362" /></a></p>
<p>So the Twitter posts stand out we need to create five panels, again these are supplied in the source fla on the cover disc, but we urge you to be creative. Place the panels at 7px on the X axis and then place them at equal distances apart on the Y axis. You can do this by selecting all the panels and then using the Align properties panel.</p>
<p><strong>04 Data 1</strong></p>
<p><a href="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step4.jpg"><img class="alignnone size-full wp-image-4002" title="Flash Week Day #4 – Twitter feed" src="http://www.webdesignermag.co.uk/wp-content/uploads/2010/02/Step4.jpg" alt="Flash Week Day #4 – Twitter feed" width="500" height="286" /></a></p>
<p>Add a new layer called ‘data’. Place two dynamic text fields over the top panel you just created. Open the Properties Inspector and in the Instance field name call the first item ‘one’, this should be approximately three lines high because it will store the tweet. Next call the second item ‘created0’.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesignermag.co.uk/tutorials/flash-week-day-4-%e2%80%93-twitter-feed/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

