<?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>Computer Training - Video Tutorials &#187; Flash Tutorials</title>
	<atom:link href="http://www.talentedpixel.com/category/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.talentedpixel.com</link>
	<description>Create without Limits</description>
	<lastBuildDate>Mon, 23 Aug 2010 21:22:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Beginners Flash Tutorial MovieClips</title>
		<link>http://www.talentedpixel.com/featured/beginners-flash-tutorial-movieclips.html</link>
		<comments>http://www.talentedpixel.com/featured/beginners-flash-tutorial-movieclips.html#comments</comments>
		<pubDate>Fri, 31 Oct 2008 17:20:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured Tutorials]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[Flash tutorials]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=322</guid>
		<description><![CDATA[

 High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
Using MovieClips in Flash
This Flash tutorial [...]]]></description>
			<content:encoded><![CDATA[<div style="clear:both;"></div>
<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.</strong><br />
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>Using MovieClips in Flash</h3>
<p>This Flash tutorial introduces the use of MovieClip symbols in Flash and how they function within the main Timeline.</p>
<p>The Timeline is key to understanding how Flash movies work. If you open Flash and create a new document you should see the Timeline running across the top of the screen (choose Window &gt; Timeline from the menubar if it isn&#8217;t visible):<br />
<img title="timeline" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/timeline.jpg" alt="timeline" /></p>
<p>When you create a .fla document and export a .swf movie from it, the .swf when opened will start at Frame 1 on the main Timeline and present the viewer with each successive frame with content on it (unless ActionScript code instructs it to do otherwise), looping back to the start each time it reaches the last frame. The frames are numbered on the header above the Timeline as you can see and all frames with content will be coloured in some way.</p>
<p>MovieClip symbols additionally have their own Timeline. When placed on the main Timeline in a Flash movie, a MovieClip will similarly start at its first frame and run continuously presenting all content on its frames (unless instructed otherwise by code).</p>
<p>To demonstrate this, choose Insert &gt; New Symbol from the menubar (or CTRL+F8); give the symbol a name and choose Movie clip as the type:<br />
<img title="new symbol" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/newsymbol.jpg" alt="new symbol" /></p>
<p>Flash has now taken you inside the new MovieClip symbol:<br />
<img title="inside clip" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/inclip.jpg" alt="inside clip" /><br />
The area at the top of the Timeline indicates your current location within the Flash movie (where it reads Scene1 and myclip). The cross in the centre of the stage is the position 0, 0 (x, y) within the new MovieClip.</p>
<p>To add some content to the clip, draw a shape and postion it at 0, 0 (x, y) &#8211; with the shape selected enter 0 into the X and Y fields on the Properties panel (Window &gt; Properties &gt; Properties or CTRL+F3 if it isn&#8217;t visible):<br />
<img title="position" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/position.jpg" alt="position" /></p>
<p>Still with the shape selected, Press F8 (or choose Modify &gt; Convert to Symbol); choose a name and Graphic as the type:<br />
<img title="graphic symbol" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/graphicsymbol.jpg" alt="graphic symbol" /><br />
We will use this shape to create a simple animation inside the MovieClip; select frame 10 on the Timeline by clicking on it. Make this frame a keyframe by pressing F6 or choosing Insert &gt; Timeline &gt; Keyframe:<br />
<img title="keyframe" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/keyframe.jpg" alt="keyframe" /></p>
<p>Now, on this frame, move the shape to another position on the stage. Select Frame 1 again and create a Motion Tween by choosing Motion from the Tween drop-down list on the Properties panel or by right-clicking (or CTRL+click) on the frame and choosing Create Motion Tween:<br />
<img title="motion" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/motion.jpg" alt="motion" /><br />
The timeline now indicates the tween on the frames:<br />
<img title="tween" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/tween.jpg" alt="tween" /><br />
If you&#8217;re unfamiliar with tweening, what we have done here is position the shape on the first and tenth frames, then instructed Flash to create a transition between the two; the Motion Tween moving the shape along the distance between the two points so that it progresses evenly along its course. To see the effect, place the playhead on the first frame by clicking on it and press Enter; you should see the animation on the stage as the playhead moves along the timeline.</p>
<p>Now go back to the main Timeline by pressing the backward arrow button on the Timeline header:<br />
<img title="back" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/back.jpg" alt="back" /><br />
All that we&#8217;ve done so far is create a MovieClip in the Flash document&#8217;s library, meaning that we&#8217;ve defined exactly what should happen within the clip and prepared it for use in our movie, but we haven&#8217;t actually placed it in the movie yet. To do this, select the MovieClip symbol in the library (Window &gt; Library if it isn&#8217;t visible) and drag it onto the stage:<br />
<img title="library" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/99898/library.jpg" alt="library" /><br />
<img title="instance" src="images/instance.jpg" alt="instance" /><br />
Now test your movie (press CTRL+Enter or choose Control &gt; Test Movie); you should see the animation in your clip looping continuously. To make the clip play only once, we need to edit the MovieClip; to do this right-click (or CTRL+click) it in the Library and select edit, or double-click on the instance of the clip on the stage. Select frame 10 and open the Actions Panel (F9, click on the Actions tab or choose Window &gt; Actions), enter the following code:</p>
<pre cols="20" rows="3"> stop(); </pre>
<p>Now test your movie again, the clip should play only once. By placing the stop action here, you have instructed only that particular MovieClip to stop; any other activity on the main Timeline will continue, as the MovieClip operates according to its own Timeline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/featured/beginners-flash-tutorial-movieclips.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners Flash Tutorial &#8211; Working with MYSQL and PHP</title>
		<link>http://www.talentedpixel.com/flash/beginners-flash-tutorial-working-with-mysql-and-php.html</link>
		<comments>http://www.talentedpixel.com/flash/beginners-flash-tutorial-working-with-mysql-and-php.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:14:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php tutorials]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=273</guid>
		<description><![CDATA[
 High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
Flash with PHP / MySQL
The code [...]]]></description>
			<content:encoded><![CDATA[<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.</strong><br />
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>Flash with PHP / MySQL</h3>
<p><img style="float:left;margin:0px 10px 0px 5px;" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/flash.jpg" alt="" /><em>The code used in this tutorial is mainly ActionScript 2.0, with notes for using ActionScript 3.0 &#8211; basic knowledge of databases (particularly MySQL) and server-side scripting concepts is assumed, for users who require an a tutorial on Beginners PHP and MySQL we recomend the <a href="http://www.computer-training-software.com/php-basic.htm">Beginners PHP Training Video</a></em></p>
<p>Given that Flash is used primarily on the Web, database driven components are a common requirement. In order to use data in this way within your Flash movies, you will need to use some sort of server-side scripting language, such as PHP. We use server-side scripting to communicate with a data source on the server, and Flash has some built-in capabilities for handling the data at the client-side.</p>
<p>To demonstrate, we will create a simple database-driven Flash movie using PHP and MySQL. <em>This example will need to be deployed on a server with PHP and MySQL installed.</em></p>
<p>In MySQL, create a database called &#8216;flashtest&#8217;, with one table in it called &#8216;flashdata&#8217;; in the table create just one field (for simplicity &#8211; the details of the database are not important), name the field &#8216;flash_text&#8217; and choose VARCHAR as the data type. Enter a few rows of data into the table, any strings of text will be fine.</p>
<p>Now we need PHP code to connect to and query your database. Create a file called get_data.php in the directory you intend to put your Flash file in &#8211; this will need to be on the same server as the MySQL database for the following code to work. In get_data.php enter the following code (replacing username and password with your own):</p>
<p><a class="highlighttext" onclick="fnSelect('select1')" href="javascript:void(0);">Select All</a></p>
<pre id="select1" class="php">&lt;?php

//connect to the local MySQL
mysql_connect("localhost", "username", "password");

//select your database
mysql_select_db("flashtest");

//query the database
$query="select * from flashdata";
$result=mysql_query($query);

//find out how many entries there are
$num=mysql_num_rows($result);

//write variable out - this is what the Flash document will retreive
echo "&amp;num=".$num;

//keep count
$count=0;

//loop through and write the data into variables for the flash document
while($row=mysql_fetch_array($result))
{
   //write out each entry as a variable
    $entry=$row["flash_text"];
    echo "&amp;t".$count."=".$entry;
    //increment the count variable
    $count++;
}

?&gt;</pre>
<p><em>Tip: you can test your PHP at this stage by fetching get_data.php in a Web browser &#8211; it should look something like this:</em><br />
<img title="php test" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/phptest.jpg" alt="php test" /></p>
<p>Now to use the data within a Flash movie, create a new Flash document and save it on the server also. The Flash document is able to access the variables written out by your PHP script via the GET variable. Open the Actions panel for Layer 1 and enter the following code (replacing &#8216;filepath&#8217; with the path to your PHP script):</p>
<p><a class="highlighttext" onclick="fnSelect('select2')" href="javascript:void(0);">Select All</a></p>
<pre id="select2" class="php">      //load the variables into a MovieClip by calling the server-side script
var data_mc:MovieClip=_root.createEmptyMovieClip("data_mc", _root.getNextHighestDepth());
     //loadVariables parameters: url, movieclip, method
loadVariables("http://localhost/filepath/get_data.php", data_mc, "GET");

    //create the function for using the data
data_mc.onData=function()
{
    //get the total number of entries
    var numEntries:Number=data_mc.num;
      //loop through the entries
   for(var i:Number=0; i</pre>
<p>Now test your movie, it should look something like this:<br />
<img title="output" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/output.jpg" alt="output" width="353" height="244" /></p>
<p>For Flash MX and above, you can alternatively use the LoadVars object with the following syntax:</p>
<p><a class="highlighttext" onclick="fnSelect('select3')" href="javascript:void(0);">Select All</a></p>
<pre id="select3" class="php">//create LoadVars object
var lv:LoadVars=new LoadVars();
//load the data
lv.load("http://localhost/filepath/get_data.php");
//setup load function
lv.onLoad=function(success)
{
//get the data
var numEntries:Number=lv.num;
//otherwise syntax is the same as above
};</pre>
<p>If you&#8217;re using ActionScript 3.0, the syntax will be slightly different; you need to use the URLRequest and URLLoader objects to load the data into Flash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/beginners-flash-tutorial-working-with-mysql-and-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Flash Tutorial &#8211; Loading XML Data</title>
		<link>http://www.talentedpixel.com/flash/basic-flash-tutorial-loading-xml-data.html</link>
		<comments>http://www.talentedpixel.com/flash/basic-flash-tutorial-loading-xml-data.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 13:29:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[Flash tutorials]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=266</guid>
		<description><![CDATA[
 High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125

Flash with XML Loaded Data
This Tutorial [...]]]></description>
			<content:encoded><![CDATA[<div style="margin: 10px; border: 1px #666666 dashed; padding: 10px;">
<p><img style="float: left; margin: 0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality &#8211; Flash Tutorial Videos &#8211; Taught by experts.<br />
</strong>We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</p>
</div>
<h3>Flash with XML Loaded Data</h3>
<p><em>This Tutorial has been prepared with relation to Flash 8, although the   principles covered apply to all versions; the code used is mainly ActionScript   2.0 with notes for using ActionScript 3.0</em></p>
<p>This tutorial introduces the use of externally loaded XML data in Flash; basic   knowledge of XML structures is assumed.</p>
<p>Creating Flash components using data stored in XML format is a common task. For   example, Flash galleries are often designed in such a way that the selection of   images can be changed without having to alter the .fla source file itself;   loading the image data in via XML is an ideal solution in this case.   ActionScript has built-in libraries for processing XML documents, although there   are significant differences between ActionScript 2.0 and 3.0 in this regard.</p>
<p>To demonstrate, we will load some text into Flash from an XML document and   display it.</p>
<p>The XML document has the following structure and is called mydata.xml:</p>
<p><a class="highlighttext" onclick="fnSelect('select17844325')" href="javascript:void(0);"><br />
Select All</a></p>
<pre id="select17844325" class="php">&lt;data&gt; &lt;note colour="0xFF0000"&gt;
some red text &lt;/note&gt; &lt;note colour="0x00FF00"&gt; some green text &lt;/note&gt;
&lt;note colour="0x0000FF"&gt; some blue text &lt;/note&gt;
&lt;/data&gt;</pre>
<p>Create the above document and then create a new flash document in the same   directory (remember to save your .fla to the directory before testing it).   Select the default layer (Layer 1) and open the Actions Panel (press F9 or   choose Window &gt; Actions).</p>
<p>Your approach now will differ according to whether you are using ActionScript   2.0 or 3.0. For 2.0 you use the XML class to load and process the data, whereas   with 3.0 the methods of loading external data have changed in general, and as   such you use URLRequest and URLLoader objects to actually load the data, then   pass it to an XML object for processing; please note however that the XML class   is different in AS3, while the AS3 XMLDocument class provides much the same   processing functionality as the XML class in AS2.</p>
<p>For ActionScript 2.0, type the following code into the Actions panel:</p>
<p><a class="highlighttext" onclick="fnSelect('select165545')" href="javascript:void(0);"><br />
Select All</a></p>
<pre id="select165545" class="php">//create the XML object
var my_xml:XML=new XML();
//tell it to ignore whitespace in the document
my_xml.ignoreWhite=true;  

//define the function to execute when the data has been loaded
my_xml.onLoad=function(success)
{
if (success)
{
	//first get the data from my_xml into an array
	//'this' is my_xml - the object on which the onLoad function is being called
	var my_array:Array=this.firstChild.childNodes;

	//setup textformat object for text colour
	var tf:TextFormat=new TextFormat();

	//each element in the array will be a &lt;note&gt; element - loop through
	for(var i:Number=0; i&lt;my_array.length; i++)
	{
		//create textfield for each element (name, depth, x, y, width, height)
		_root.createTextField(("field"+i+"_txt"),
			_root.getNextHighestDepth(), 10, ((i+1)*20), 100, 50);

		//assign the value (firstChild) of the current 'note' element to the textfield
		_root["field"+i+"_txt"].text=my_array[i].firstChild.toString();

		//get the element's 'colour' attribute
		var colourAttribute:Number=Number(my_array[i].attributes["colour"]);

		//assign the colour
		tf.color=colourAttribute;

		//format the textfield
		_root["field"+i+"_txt"].setTextFormat(tf);
	}
}
};
 //load the data - this will call the above function
 my_xml.load("mydata.xml");</pre>
<p>This code will load the XML document and trigger the function for processing. To   process the XML, we write each &#8216;note&#8217; element into a textfield and colour the   text according to its &#8216;colour&#8217; attribute. To access the root node (&lt;data&gt;)   we use my_xml.firstChild; to access the children (&lt;note&gt; elements) we use   .childNodes, which are returned in an Array. To access the attributes of a given   element, we use the property: attributes[<em>attribute name</em>]. movie, it should look something like this:<br />
<img src="http://www.computer-training-software.com/manuels/images-flash04/xmloutput.jpg" alt="" width="297" height="257" /></p>
<p><em><br />
Please note: depending on your own XML file, you may also need to strip out the newline characters, you can do this as follows: </em></p>
<p><a class="highlighttext" onclick="fnSelect('select16545')" href="javascript:void(0);"><br />
Select All</a></p>
<pre id="select16545" class="php"> var plain_data:String = loseReturns(my_array[0].firstChild.toString());

function loseReturns(xml_str:String):String
{
	var plain_str:String = xml_str.split("\n").join("");
	return plain_str.split("\r").join("");
}</pre>
<p><em>For ActionScript 3.0, you use the URLLoader and URLResource classes to load   the XML data into Flash, then pass it to an XML object (and optionally to an   XMLDocument object &#8211; see above). The URLLoader object fires an event on loading   the data; as such you need to create a function for processing it, passing this   to an event listener.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/basic-flash-tutorial-loading-xml-data.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners Flash Tutorial &#8211; Tweening Objects</title>
		<link>http://www.talentedpixel.com/flash/beginners-flash-tutorial-tweening-objects.html</link>
		<comments>http://www.talentedpixel.com/flash/beginners-flash-tutorial-tweening-objects.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 13:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[Flash tutorials]]></category>
		<category><![CDATA[tweening]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=249</guid>
		<description><![CDATA[
 High Quality Flash Tutorial Videos &#8211; Taught by Experts
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
Creating Motion with Flash
This Adobe Flash tutorial [...]]]></description>
			<content:encoded><![CDATA[<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality Flash Tutorial Videos &#8211; Taught by Experts</strong><br />
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>Creating Motion with Flash</h3>
<p><img style="float:left;margin:0px 10px 0px 5px;" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/flash.jpg" alt="" /><em>This Adobe Flash tutorial has been prepared with relation to Flash 8, although the principles covered apply to all versions of Adobe Flash.</em></p>
<p>This Flash tutorial introduces the fundamentals of using Tweening to create the concept of motion.</p>
<h3>Basic Tweening in Flash</h3>
<p><em>This resource has been prepared with relation to Flash 8, although the   principles covered apply to all versions</em></p>
<p>This tutorial introduces Shape and Motion Tweening in Flash.</p>
<p>Tweening is one of the basic building blocks of animation. An animation is   basically a sequence of images combined and displayed in a way that makes it   appear to the human eye like a moving image. Tweening is one of the processes   used to accomplish this.</p>
<p>When creating an animated sequence, a set of still images represent different   stages in the animation. The illusion of a moving image is achieved by showing   the images in fast succession, for example, the default speed for a movie   created in Flash is normally 12 frames per second, meaning that the movie   presents 12 still images to the viewer every second.</p>
<p>To achieve such effects manually, animators basically have to create each of   the images in turn (one for each frame), which is obviously very   labour-intensive. This is where digital tools like Flash can prove extremely   useful, as they have built-in functions to create some of the frame images using   computation. The idea here is that you just create the images at key points in   the animation (keyframes) and use Tweening to get Flash to work out the frames   &#8216;in-between&#8217;.</p>
<p>Let&#8217;s create a simple animation to demonstrate:</p>
<p>Open Flash and create a new document. Draw a shape on the stage, select it   using the select tool <img title="select tool" src="http://www.computer-training-software.com/manuels/images-flash03/select.jpg" alt="select tool" /></p>
<p>(either double click on the shape or click and drag the   area around it).</p>
<p><img title="selected shape" src="http://www.computer-training-software.com/manuels/images-flash03/shape.jpg" alt="selected shape" /></p>
<p>Convert the shape to a graphic symbol either by pressing F8 or choosing   Modify &gt; Convert to Symbol. Give the symbol a name and select the Graphic   radio button for the type; press OK.</p>
<p><img title="symbol" src="http://www.computer-training-software.com/manuels/images-flash03/symbol.jpg" alt="symbol" /></p>
<p>Now click on Frame 10 and create a Keyframe there by pressing F6 or choosing   Insert &gt; Timeline &gt; Keyframe:</p>
<p><img title="keyframe" src="http://www.computer-training-software.com/manuels/images-flash03/keyframe.jpg" alt="keyframe" /></p>
<p>Still on Frame 10, move your Graphic symbol to another position on the stage.   Test your animation by clicking on Frame 1 and pressing Enter, you&#8217;ll see that   the shape remains in it&#8217;s original position until Frame 10, when it &#8216;jumps&#8217; to   the new position. To achieve a smoother transition between these two images,   we&#8217;re going to apply a Motion Tween. Click on Frame 1 and choose Motion from the   drop-down list on the Properties panel (Window &gt; Properties &gt; Properties   if it isn&#8217;t visible):</p>
<p><img title="motion" src="http://www.computer-training-software.com/manuels/images-flash03/motion.jpg" alt="motion" /></p>
<p>The   purple area with the arrow on the Timeline indicates that a Motion Tween is   operating between the two Keyframes.</p>
<p>Now select Frame 1 and press Enter again, you&#8217;ll see that Flash has animated   the sequence by calculating what should appear on each of the frames along the   way.</p>
<p>Experiment with the Ease Tween setting (on the Properties panel when you   select Frame 1), which controls the amount of acceleration/ deceleration in the   movement.</p>
<p>Now to try a Shape Tween, create a new layer in your movie &#8211; use the new   layer button</p>
<p><img title="layer button" src="http://www.computer-training-software.com/manuels/images-flash03/layerbutton.jpg" alt="layer button" /></p>
<p>or choose Insert &gt; Timeline &gt; Layer, then   lock the first layer:</p>
<p><img title="layer" src="http://www.computer-training-software.com/manuels/images-flash03/layer.jpg" alt="layer" /></p>
<p>On your new layer, create another shape; this time don&#8217;t convert it to a   symbol. Select Frame 10 on the new layer and insert a Keyframe (as above). At   Frame 10, delete your shape and draw a different one in its place (e.g draw a   circle on the first frame and a square on the tenth). Now select Frame 1 and   choose Shape Tween from the Properties panel:</p>
<p><img title="shape tween" src="http://www.computer-training-software.com/manuels/images-flash03/shapetween.jpg" alt="shape tween" /></p>
<p>The green area on the Timeline   indicates the Shape Tween. Now, select Frame 1 and press Enter to see your   animated effect.</p>
<p><img title="halfway through shape tween" src="http://www.computer-training-software.com/manuels/images-flash03/shapeanimation.jpg" alt="halfway through shape tween" /></p>
<p>Again, you   can experiment with the Tween controls to explore the various Shape Tween   settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/beginners-flash-tutorial-tweening-objects.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners Flash Tutorial &#8211; Creating Dynamic Text</title>
		<link>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html</link>
		<comments>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 00:17:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS and XHTML]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[beginners tutorials]]></category>
		<category><![CDATA[Flash tutorials]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=227</guid>
		<description><![CDATA[

 High Quality Flash Tutorial Videos &#8211; Taught by Experts
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
Creating Dynamic Text with Flash
This tutorial has [...]]]></description>
			<content:encoded><![CDATA[<div style="clear:both;"></div>
<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality Flash Tutorial Videos &#8211; Taught by Experts<br />
</strong>We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>Creating Dynamic Text with Flash</h3>
<p><img style="float:left;margin:0px 10px 0px 5px;" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/flash.jpg" alt="" /><em>This tutorial has been prepared with relation to Flash 8, although the principles covered apply to all versions; the code included is based on ActionScript 2.0</em></p>
<p>This Flash tutorial introduces the creation, editing and formatting of dynamic text and embedding fonts.</p>
<p>There are two main ways to create a dynamic text field in Flash, one using the flash interface and the other using ActionScript, this flash tutorial will give you a fundemental understanding of this works.</p>
<h4>Create a textfield using the interface</h4>
<div>Open a new flash document, and select the text tool:</div>
<p><img title="text tool" src="http://www.computer-training-software.com/manuels/images-flash-02/texttool.jpg" alt="text tool" /></p>
<div class="conin">Click and drag on the stage to create your text field, then type something in to start with. On the Properties panel (select Window &gt; Properties &gt; Properties if it isn&#8217;t already visible), select Dynamic Text from the first drop-down list and give the textfield the instance name &#8216;my_txt&#8217;:</div>
<p><img title="textfield" src="http://www.computer-training-software.com/manuels/images-flash-02/textfield.jpg" alt="textfield" width="488" height="315" /></p>
<div class="conin">Now, create a new layer in your flash movie by clicking the Insert Layer icon on the timeline:</div>
<p><img title="new layer" src="http://www.computer-training-software.com/manuels/images-flash-02/newlayer.jpg" alt="new layer" /></p>
<div class="conin">This is the layer where we will put our ActionScript code, you can rename the layer &#8216;actions&#8217; by double clicking on it (where it currently reads Layer 2) to keep your flash file well organised.</p>
<p>With the new layer selected, open the Actions panel either by pressing F9, clicking on the Actions tab if it is visible, or choosing Window &gt; Actions. Type the following code into the actions panel:</p>
<p><a class="highlighttext" onclick="fnSelect('select155544')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="50" rows="2" id="select155544"> my_txt.text="new text" </pre>
</div>
<p><img title="textfield code" src="http://www.computer-training-software.com/manuels/images-flash-02/textcode.jpg" alt="textfield code" width="461" height="502" /></p>
<div class="conin">Now test your movie by pressing CTRL+Enter or choosing Control &gt; Test Movie</div>
<p><img title="test text" src="http://www.computer-training-software.com/manuels/images-flash-02/testtext.jpg" alt="test text" width="466" height="384" /></p>
<div class="conin">You&#8217;ll see that your original text has been replaced with the text you specified in the code. However, you might also notice that the text appears less clear than it does when the textfield is static. To demonstrate this, go back to the layer with your textfield on it and create a new one, only this time choose static from the drop-down list. Enter &#8216;new text&#8217; as the text and test the movie again, you should see a difference between the two fields:</div>
<p><img title="static vs dynamic text" src="http://www.computer-training-software.com/manuels/images-flash-02/twofields.jpg" alt="static vs dynamic text" /></p>
<div class="conin">In order to make your dynamic text have a clear appearance, you have to embed the font in it. This means that information about the font will be included in your final exported SWF movie, so that the text will be displayed consistently wherever the file is viewed. <em>Another advantage to doing this is that, if you use a font that the user viewing your SWF doesn&#8217;t have installed on their machine, the appearance of your movie will still be preserved, as the SWF contains the font information, telling the user&#8217;s machine how the text should be displayed.</em> To embed the font, you have one of the following two options:</div>
<ol style="margin:5px 0px 0px 0px; padding:0px;">
<li> Select your dynamic textfield on the stage and click the Embed button on the Properties panel, then choose Basic Latin (select OK):<br />
<img title="embed control" src="http://www.computer-training-software.com/manuels/images-flash-02/embed.jpg" alt="embed control" width="466" height="353" /></li>
<li> On the library panel (Window &gt; Library if it isn&#8217;t open) select the options button:<br />
<img title="options" src="/manuels/images-flash-02/options.jpg" alt="options" /></p>
<div class="conin">Select New Font and enter the following details:</div>
<p><img title="new font" src="http://www.computer-training-software.com/manuels/images-flash-02/newfont.jpg" alt="new font" /></p>
<div class="conin">Press OK and you&#8217;ll see your font appear in the library. Right-click (CTRL+Click for Macs) on the font in the library and choose Linkage. Click the checkbox next to &#8216;Export for ActionScript&#8217;:</div>
<p><img title="linkage" src="http://www.computer-training-software.com/manuels/images-flash-02/linkage.jpg" alt="linkage" /></p>
<div class="conin">This allows you to refer to the font in your ActionScript code (the procedure is the same for any library item that you want to control using ActionScript). Select your code (&#8216;actions&#8217;) layer and enter the following code (after your existing line)</p>
<p>:</p>
<p><a class="highlighttext" onclick="fnSelect('select55435')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="50" rows="5" id="select55435"> my_txt.embedFonts=true var tf:TextFormat=new TextFormat() tf.font="myfont" my_txt.setTextFormat(tf) </pre>
</div>
<p><img title="embed code" src="http://www.computer-training-software.com/manuels/images-flash-02/embedcode.jpg" alt="embed code" width="466" height="342" /></li>
</ol>
<div>After following one of these two options, test the movie and you should see that the appearance of your text has improved. <em>You should note that embedding fonts in your flash will increase the file size of your SWF, so only do it if necessary, particularly if your file is going to be viewed over the Web.</em></div>
<h4>Tutorial on Creating a dynamic textfield using ActionScript</h4>
<div class="conin">You can also create your dynamic textfield using ActionScript. To do this, enter the following code at the end of your script:</p>
<p><a class="highlighttext" onclick="fnSelect('select56587')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="60" rows="6" id="select56587"> var other_txt:TextField = _root.createTextField("other_txt", _root.getNextHighestDepth(), 20, 20, 200, 50) other_txt.text="other text" </pre>
</div>
<div class="conin">The parameters for the createTextField command are as follows:<br />
<br /><a class="highlighttext" onclick="fnSelect('select56555547')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="60" rows="6" id="select56555547"> createTextField(instanceName, depth, xPosition, yPosition, width, height) </pre>
</div>
<p>Try not to be put off by the code if you&#8217;re not familiar with ActionScript. A good way to familiarise yourself with it is to experiment by changing some of the parameters (e.g. change the y position to 100 and you&#8217;ll see the text appear further down). To format this text, you need to use the ActionScript approach outlined above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners Adobe Flash Tutorial &#8211; Timeline Basics</title>
		<link>http://www.talentedpixel.com/flash/beginners-adobe-flash-tutorial-timeline-basics.html</link>
		<comments>http://www.talentedpixel.com/flash/beginners-adobe-flash-tutorial-timeline-basics.html#comments</comments>
		<pubDate>Mon, 20 Oct 2008 23:26:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[beginners tutorials]]></category>
		<category><![CDATA[Flash tutorials]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=223</guid>
		<description><![CDATA[

 High Quality Flash Tutorial Videos &#8211; Taught by Experts
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
The Flash Interface &#8211; Using the Timeline
This [...]]]></description>
			<content:encoded><![CDATA[<div style="clear:both;"></div>
<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality Flash Tutorial Videos &#8211; Taught by Experts<br />
</strong>We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>The Flash Interface &#8211; <em>Using the Timeline</em></h3>
<p><img style="float:left;margin:0px 10px 0px 5px;" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/flash.jpg" alt="" /><em>This tutorial covers Flash 8, CS3 &amp; CS4</em></p>
<p>When you open the Flash authoring environment, you&#8217;ll see a number of different sections displayed. In addition to the default display, various other controls are accessible if you choose the Window menu from the top toolbar. Don&#8217;t feel overwhelmed by the interface, to begin creating Flash movies you&#8217;ll really only need to worry about a few parts of it; the rest you&#8217;ll gradually familiarise yourself with as you work along.</p>
<h4>The Stage</h4>
<p>The main area you should see in the centre of the screen is the stage area, which will look like a white rectangle:</p>
<p><img title="the stage" src="http://www.computer-training-software.com/manuels/images-flash01/stage.jpg" alt="" width="506" height="248" /></p>
<p>You can use the scrollbars to the bottom and right of the stage to view the various parts of your stage. Use the zoom control above the stage area at the top right of the central section; select from the drop-down list or type in a percentage amount, default is 100%:</p>
<p><img title="zoom" src="http://www.computer-training-software.com//manuels/images-flash01/zoom.jpg" alt="" /></p>
<p>To modify the size of your Flash Movie, select Modify &gt; Document from the top toolbar:</p>
<p><img title="modify control" src="http://www.computer-training-software.com//manuels/images-flash01/modify.jpg" alt="" /></p>
<p>Use this to specify the dimensions and framerate (number of frames per second &#8211; leave this at the default to begin with). The settings that you specify here will determine the properties of your final exported SWF file.</p>
<p><em>Be a little wary of specifying the background colour here, as if your Flash movie is going to be deployed on the Web, this will not always be displayed consistently across browsers.</em></p>
<h4>The Flash Timeline</h4>
<p>The Timeline is the key to creating animated effects in Flash. You&#8217;ll see it running across the top of the main panel:</p>
<p><img title="timeline" src="http://www.computer-training-software.com//manuels/images-flash01/timeline.jpg" alt="" width="501" height="153" /></p>
<p>The red square with the line pointing downward is the Playhead, and the white squares under it are the frames in your movie. When the movie plays, whatever is on the stage when the Playhead is over a certain frame is what will be visible while that frame is playing. Whenever you export an SWF movie, it will automatically start at the first frame on the root timeline (the default) and play until it either reaches the end or receives some command telling it to stop. Additionally, it will play the SWF continuously on a loop while the movie is open.</p>
<p><strong>Try it out by using the following steps:</strong></p>
<p>Draw a circle on the stage: select the oval tool from the left-hand-side ;<img src="http://www.computer-training-software.com//manuels/images-flash01/oval.jpg" alt="" width="33" height="31" align="absmiddle" /></p>
<p>click and drag on the stage (keep within the white area as this is the area that will be visible in the final movie):</p>
<p><img title="circle drawn" src="http://www.computer-training-software.com//manuels/images-flash01/circdraw.jpg" alt="" width="258" height="233" /></p>
<p><em>-you&#8217;ll see that Frame 1 of the current layer (Layer 1) has turned grey, indicating that there&#8217;s something on it</em> Next create a Keyframe by clicking on the second frame (to the right of the grey one) and pressing F6:</p>
<p><img title="keyframe" src="http://www.computer-training-software.com//manuels/images-flash01/keyframe.jpg" alt="" width="504" height="286" /></p>
<p><em>-flash has automatically carried your circle onto the second frame of the movie.</em></p>
<p>Move the circle by clicking and dragging on the centre of it &#8211; move it to another area of the stage; this is where the circle will appear on Frame 2.</p>
<p>Now to see the effect of what you&#8217;ve done, place the Playhead at the first frame by clicking at Frame 1, either on or above Layer 1. Press enter and your movie will play &#8211; it&#8217;s a bit boring at the moment but should give you a basic understanding of how the Timeline works.</p>
<p>Now export your movie either by pressing CTRL+Enter or choosing Control &gt; Test Movie from the menu. You&#8217;ll see that your effect loops over and over again as the SWF continually returns to the start each time it finishes.</p>
<p>Experiment with the Timeline by selecting a frame further along (e.g. 10) and creating a keyframe there, then moving the circle again. You&#8217;ll quickly see that some sort of transition between the different stages in your movie is going to be necessary for smooth animation &#8211; this is where Tweening comes in! Which will be covered in-depth in another tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/beginners-adobe-flash-tutorial-timeline-basics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

