<?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>alohahands.com Blog &#187; actionScript</title>
	<atom:link href="http://alohahands.com/blog/index.php/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://alohahands.com/blog</link>
	<description>...just takin&#039; notes man.</description>
	<lastBuildDate>Tue, 25 Nov 2008 14:46:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Debugging &amp; Accessibility</title>
		<link>http://alohahands.com/blog/2008/09/20/debugging-accessibility/</link>
		<comments>http://alohahands.com/blog/2008/09/20/debugging-accessibility/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 01:12:59 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[actionScript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[personal computer]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/09/20/debugging-accessibility/</guid>
		<description><![CDATA[1. What techniques can a web designer use to optimize and debug Flash created web sites? Feel free to share any other tips that you found during your research that may be of value to creating animated web sites in Flash.
&#8220;Trace&#8221; statements are likely the most known debugging tool used for actionScript code. You can [...]]]></description>
			<content:encoded><![CDATA[<p>1. What techniques can a web designer use to optimize and debug Flash created web sites? Feel free to share any other tips that you found during your research that may be of value to creating animated web sites in Flash.</p>
<p>&#8220;Trace&#8221; statements are likely the most known debugging tool used for actionScript code. You can place a trace statement anywhere you want and have it output just about anything you want also.</p>
<p>trace(&#8221;I&#8217;m a trace action!&#8221;);</p>
<p>myTrace = &#8220;I&#8217;m the content of a variable&#8221;;<br />
trace(myTrace);</p>
<p>You can similarly use a text object you&#8217;ve placed directly on the stage to monitor during run time. You&#8217;ll only need to set something similar to: debug.text = myStringVariable;</p>
<p>Flash has an integrated debugger that is very powerful. To activate the<br />
debugger, you need to go into Control > Debug Movie. You will see<br />
the usual Test Movie setup but with an additional window aptly titled<br />
&#8216;Debugger&#8217;.</p>
<p>If you&#8217;re anything like me, you might use adobe&#8217;s liveDocs on line. I suppose it&#8217;s a debugging tool also. I plug in search criteria based on the error I&#8217;ve been delivered or the process I&#8217;m trying to complete. I also use forums and threads to help solve problems. I haven’t yet posted anything yet however.</p>
<p><a target="_new" href="http://www.actionscript.org/resources/articles/63/1/Common-Errors-and-Debugging/Page1.html">http://www.actionscript.org/resources/articles/63/1/Common-Errors-and-Debugging/Page1.html</a></p>
<p>2. What is accessibility and why is it important? What should a web designer keep in mind when designing a web site to maintain accessibility? How does accessibility effect a web site&#8217;s animation?</p>
<p>Accessibility is an approach to web design that aims to ensure the widest access to the content and features of a website. The term is often used to refer to accessibility for people with disabilities, particularly blindness. &#8230; <a target="_blank" href="http://alohahands.com/blog/www.monash.edu.au/staff/web/glossary.html">www.monash.edu.au/staff/web/glossary.html</a></p>
<p>Tim Berners-Lee, W3C director and inventor of the World Wide Web, defines it as access by everyone, regardless of disability.  Even though the World Wide Web is continuously growing, many users:<br />
•	use speech browsers or  &#8220;eyes busy&#8221;/&#8221;hands busy&#8221;, as businessmen in cars;<br />
•	don&#8217;t have the latest graphical browsers and plug-ins;<br />
•	surf with slow modems, or reside in rural or remote areas with limited access to the Internet;<br />
•	browse without graphics, using text-only browsers or subscribe to non-graphic services;<br />
•	access in noisy, high- or low-light environments;<br />
There are also many users with disabilities as;<br />
•	Visual &#8211; blind, low vision, color blind;<br />
•	Auditory &#8211; deaf, hard of hearing;<br />
•	Motor/physical &#8211; paraplegic;<br />
•	Cognitive/learning &#8211; dyslexic, learning disabled.<br />
•	They may not be able to see, hear, move, or may not be able to process some types of information easily or at all.<br />
•	They may have difficulty reading or comprehending text.<br />
•	They may not have or be able to use a keyboard or mouse.<br />
•	They may have a text-only screen, a small screen, or a slow Internet connection.<br />
•	They may not speak or understand fluently the language in which the document is written.<br />
• They may be in a situation where their eyes, ears, or hands are busy or interfered with (e.g., driving to work, working in a loud environment, etc.).<br />
•	They may have an early version of a browser, a different browser entirely, a voice browser, or a different operating system.<br />
Accessibility increases benefits for both parties: the User and the Web site Provider. It may also persuade developers to take in some alternate considerations. They may be more likely to use stronger contrasting colors or, web safe colors, abstain from flashing screens or quick moving objects and use simpler navigation.</p>
<p><a target="_new" href="http://www.w3.org/TR/WCAG10/">http://www.w3.org/TR/WCAG10/</a><br />
<a target="_new" href="http://www.rnib.org.uk/xpedio/groups/public/documents/publicwebsite/public_animatedimages.hcsp">http://www.rnib.org.uk/xpedio/groups/public/documents/publicwebsite/public_animatedimages.hcsp</a><br />
<a target="_new" href="http://www.webnauts.net/accessibility.html">http://www.webnauts.net/accessibility.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/09/20/debugging-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transitions, web site transitions</title>
		<link>http://alohahands.com/blog/2008/09/15/transitions-web-site-transitions/</link>
		<comments>http://alohahands.com/blog/2008/09/15/transitions-web-site-transitions/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 01:51:17 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[actionScript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[personal computer]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/09/15/transitions-web-site-transitions/</guid>
		<description><![CDATA[According to the msdn website, “Transitions are time-varying filters that affect how a change of content is displayed.” Basically this means that a transition is the same as other events, but instead of an instantaneous change of state, it happens over a specified period of time.  Mostly, we see transitions used during slide shows containing [...]]]></description>
			<content:encoded><![CDATA[<p>According to the msdn website, “Transitions are time-varying filters that affect how a change of content is displayed.” Basically this means that a transition is the same as other events, but instead of an instantaneous change of state, it happens over a specified period of time.  Mostly, we see transitions used during slide shows containing different images.  These are usually a wipe, or fades; a screen slide from right to left or left to right or a fade in and out.  An interpage transition is a transition that affects the entire window as the window loads and/or unloads.    This can be the same type of fade as the slide show.</p>
<p>In my opinion a lot of the web site trends are revolutionary and based on the latest technology.  With a new software product and capability, something old becomes new again.  The concept of most web sites is “attraction”.  The owner of the site wants you to view their site.  Transitions may or may not keep our ADD intellects amused long enough to hang out longer than 10 seconds.  I think I read the average web page can expect a visitor to make up his mind about leaving the site at about 4 seconds.</p>
<p>What do I think about the growing trend of using transitions?  Well, depending on their use, I think there is great potential for transitions. I like to think that transitions can be used for wonderfully interesting visual explanations for complicated or convoluted processes; for example this one showing how our bodies use energy and the resultant free radicals are bounced down the electron transfer chain to O2 in the process of oxidative phosphorylation:  http://www.brookscole.com/chemistry_d/templates/student_resources/shared_resources/animations/oxidative/oxidativephosphorylation.html</p>
<p>Transition trends are pretty cool; some are so cool they’ll stick around for over a week.  If you only want to show off your new skills and your transition does not enhance or contribute to the value or message of your site (determined by the visitor) then you’re likely to come to your senses or latch on to the next super coolness.</p>
<p>http://www.webpagesthatsuck.com/does-my-web-site-suck/does-my-web-site-suck-checklist-part-one.html</p>
<p>http://www.webpagesthatsuck.com/topic60.htm</p>
<p>http://msdn.microsoft.com/en-us/library/ms532847.aspx</p>
<p>http://www.webdevelopersjournal.com/wacky/transitions/transitions.html</p>
<p>http://www.xeogen.com/</p>
<p>http://www.adobe.com/devnet/flash/articles/animation_guide_13.html<br />
http://tutorials.learnflash.com/tutorials/flash/bettertransitionss.html<br />
http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html</p>
<p>The page located here:  http://www.jumpeyecomponents.com/Flash-Components/Transition-Effects/MovieClip-Transition-Effects-V3-45/<br />
has a graphic that transitions from one image to the next.</p>
<p>AS 2.0 thread on transitions:  http://forums.creativecow.net/thread/190/862393</p>
<p>http://www.robertpenner.com/presentations/rpenner_Animation_Workflows_in_Flash_CS3_FITC_2007.pdf</p>
<p>sliding door transition:  http://www.swishzone.com/index.php?area=resources&#038;tab=movies&#038;do=page&#038;action=detailed&#038;link_id=598</p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/09/15/transitions-web-site-transitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flash Lite for Mobile Devices</title>
		<link>http://alohahands.com/blog/2008/07/16/adobe-flash-lite-for-mobile-devices/</link>
		<comments>http://alohahands.com/blog/2008/07/16/adobe-flash-lite-for-mobile-devices/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 01:51:07 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[actionScript]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[personal computer]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/07/16/adobe-flash-lite-for-mobile-devices/</guid>
		<description><![CDATA[

  
Mobile Challenges:  screen (size, pixel, depth), memory, CPU, fragmentation, bandwidth, security, connectivity, data input, distribution &#038; deployment. Despite theses challenges, the number of mobile devices is growing at a staggering rate.  By the end of 2007, there will be 2713 million mobile devices and over 300 different models in use worldwide, compared to 755 [...]]]></description>
			<content:encoded><![CDATA[<p><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><meta content="Word.Document" name="ProgId" /><meta content="Microsoft Word 11" name="Generator" /><meta content="Microsoft Word 11" name="Originator" /></p>
<link rel="File-List" /><!--[if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>    <w:UseFELayout/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>  </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" LatentStyleCount="156">  </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object  classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object><br />
<style> st1\:*{behavior:url(#ieooui) } </style>
<p> <![endif]--><br />
<style> <!--  /* Font Definitions */  @font-face 	{font-family:Batang; 	panose-1:2 3 6 0 0 1 1 1 1 1; 	mso-font-alt:바탕; 	mso-font-charset:129; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1342176593 1775729915 48 0 524447 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;} @font-face 	{font-family:"\@Batang"; 	panose-1:2 3 6 0 0 1 1 1 1 1; 	mso-font-charset:129; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1342176593 1775729915 48 0 524447 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:Batang;} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} p 	{mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:Batang;} code 	{font-family:"Courier New"; 	mso-ascii-font-family:"Courier New"; 	mso-fareast-font-family:Batang; 	mso-hansi-font-family:"Courier New"; 	mso-bidi-font-family:"Courier New";} p.Default, li.Default, div.Default 	{mso-style-name:Default; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	mso-layout-grid-align:none; 	text-autospace:none; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:Batang; 	color:black;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --> </style>
<p><!--[if gte mso 10]><br />
<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} </style>
<p> <![endif]--><span style="font-size: 10pt; font-family: Arial">Mobile Challenges:  screen (size, pixel, depth), memory, CPU, fragmentation, bandwidth, security, connectivity, data input, distribution &#038; deployment. Despite theses challenges, the number of mobile devices is growing at a staggering rate.  By the end of 2007, there will be 2713 million mobile devices and over 300 different models in use worldwide, compared to 755 million PC’s.  (Gartner Dataquest).  Along with the number of mobile devices offering Flash support, there is also a direct correlation to the  growth of application users.  Mobile application matters to those wanting to get out their brand recognition in a more personal method, beyond television and desktop computers.</span></p>
<p><span style="font-size: 10pt; font-family: Arial">The mechanics for mobile device design is different from normal design.  There isn&#8217;t a mouse pointer, usually, or a touch-pad.  There might be a touch-screen interface or a more common directional pad.  The use of a zoom allows the user to instantly recognize focus to an object.  You&#8217;ll also want to omit labels and headers to obtain every pixel of available screen real estate.  You can use this code: <code><span style="font-family: Arial">fscommand2("fullscreen", true); to display your content in full screen mode.  The "fscommand2" has access to specific device features like the signal strength and vibrate.  You can make use of these in your project design for interesting affects.  </span></code></span></p>
<p><code><span style="font-size: 10pt; font-family: Arial">Flash Lite couples rich presentation with solid programming, anything that the object oriented library facilitates.  The following steps are an example of the ease at which one might create the code for navigating a mobile device menu:</span></code></p>
<p><span style="font-size: 10pt; font-family: Arial">Using the scroll pad on the mobile device to control our phone games is likely how you will create player control and movement.  The up, down, left, right and enter key are the usual keys available.  For each menu item, you will create one layer.  Create a movie clip and make sure to have a stop action on the first frame.  Create the text for your menu items; new game, instructions, exit.  You will now make a layer for the background environment or image.  (This will likely be the bottom most layer.)  You may also want to build a square, oval or rectangle and fit it behind your menu item.  On the next frame, move your shape to fit behind the next menu item, and so on.  The &#8220;up&#8221; and &#8220;down&#8221; events will allow you to navigate through your menu structure.  Here is sample code:</span></p>
<p>on(keyevent &#8220;&lt;Up&gt;&#8221;){<br />
// go to previous frame or stop at frame 1<br />
tellTarget(&#8221;target path to mc&#8221;){ prevFrame(); }<br />
}</p>
<p>on(keyevent &#8220;&lt;Down&gt;&#8221;){<br />
// go to next frame or stop at last frame<br />
tellTarget(&#8221;target path to mc&#8221;) {nextFrame();}<br />
}</p>
<p><span style="font-size: 10pt; font-family: Arial; color: red"> </span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"> </span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black">References: </span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"> </span></p>
<p class="Default">
<p class="Default"><strong><span style="font-size: 9pt">Link: Flash Lite Supported Devices: </span></strong><span style="font-size: 9pt"></span></p>
<p><u><span style="font-size: 7pt; font-family: Verdana; color: blue">http://www.adobe.com/mobile/supported_devices/</span></u><span style="font-size: 10pt; font-family: Arial; color: black"></span></p>
<p>http://www.adobe.com/devnet/devices/articles/getting_started_flashlite_b.pdf</p>
<p><span style="font-size: 10pt; font-family: Arial; color: red"><a target="_blank" href="http://board.flashkit.com/board/archive/index.php/">http://board.flashkit.com/board/archive/index.php/</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"><a target="_blank" href="http://flashmobilegroup.org/">flashmobilegroup.org</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: red"><a target="_blank" href="http://www.adobe.com/devnet/devices/articles/ten_tips_flash_lite_games.html">http://www.adobe.com/devnet/devices/articles/ten_tips_flash_lite_games.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: red"><a target="_blank" href="http://www.adobe.com/devnet/devices/flashlite.html">http://www.adobe.com/devnet/devices/flashlite.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"><a target="_blank" href="http://www.adobe.com/devnet/devices/articles/packing_lite_09.html">http://www.adobe.com/devnet/devices/articles/packing_lite_09.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"> Josh Ulm&#8217;s excellent whitepaper on the subject articulates other important considerations.</span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: red"><a target="_blank" href="http://www.adobe.com/devnet/devices/flashlite.html">http://www.adobe.com/devnet/devices/flashlite.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black">Packing Lite: A Mobile Media Interface Design Primer</span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"><a target="_blank" href="http://www.adobe.com/devnet/devices/articles/packing_lite.html">http://www.adobe.com/devnet/devices/articles/packing_lite.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black">Introducing Adobe Device Central CS3</span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black"><a target="_blank" href="http://www.adobe.com/devnet/devices/articles/introducing_device_central.html">http://www.adobe.com/devnet/devices/articles/introducing_device_central.html</a></span></p>
<p><span style="font-size: 10pt; font-family: Verdana; color: red"> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/07/16/adobe-flash-lite-for-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash &amp; Mobile Devices</title>
		<link>http://alohahands.com/blog/2008/07/14/flash-mobile-devices/</link>
		<comments>http://alohahands.com/blog/2008/07/14/flash-mobile-devices/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 14:15:33 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionScript]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/07/14/flash-mobile-devices/</guid>
		<description><![CDATA[tp://www.adobe.com/devnet/devices/articles/ten_tips_flash_lite_games.html
In the code example below, the _y property of the duplicated movie clip is extracting hard-coded values from an array. In contrast, the _x property is determined programmatically, by first calculating the width of the stage, and then placing the duplicate movie clips based on the resulting values of the calculation.
var clipNum = 3
var xLocate [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_new" href="http://www.adobe.com/devnet/devices/articles/ten_tips_flash_lite_games.html">tp://www.adobe.com/devnet/devices/articles/ten_tips_flash_lite_games.html</a></p>
<p>In the code example below, the _y property of the duplicated movie clip is extracting hard-coded values from an array. In contrast, the _x property is determined programmatically, by first calculating the width of the stage, and then placing the duplicate movie clips based on the resulting values of the calculation.</p>
<p>var clipNum = 3<br />
var xLocate = Stage.width/ (clipNum+1);<br />
var yArray = new Array (30,40,50);<br />
for(x=1; x<=clipNum; x++){<br />
var tempMc = attachMovie("block",<br />
"block"+x, x);<br />
with (tempMc) {<br />
_x = xLocate*x;<br />
_y = yArray[x-1];<br />
}<br />
}</p>
<p><a target="_new" href="http://www.adobe.com/devnet/devices/articles/flash_projects.html">http://www.adobe.com/devnet/devices/articles/flash_projects.html</a></p>
<p>People will access your project on different mediums and devices. They may even use a stylus or their finger to press buttons. Users will expect standard key presses will be used and followed. (Become familiar with common mobile device conventions.)</p>
<p>The options for functionality should be flexible and not device dependent. The general practice of keeping the functionality of your project separate from the events that trigger it will allow more compatibility and possibility of your project to operate on many different devices.</p>
<p>As you begin your project you should with a commonly used screen size (176&#215;208 or even 240&#215;320 pixels). These will allow you to port your game to devices much easier.</p>
<p>Your project files should be able to meet the needs of different displays. Perhaps allowing for resizing or rescaling the graphics and text will allow for greater display needs. Think about text size and legibility as well as graphics and bitmaps.</p>
<p><a target="_new" href="http://www.adobe.com/devnet/devices/articles/total_training_key_press_events.html">http://www.adobe.com/devnet/devices/articles/total_training_key_press_events.html</a></p>
<p>It&#8217;s important for the user to interact with the device and the application. You will use a broadcaster-listener model and handler method to allow the application to respond when the user has interacted with the device.</p>
<p><a target="_new" href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00002449.html">http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00002449.html</a></p>
<p><a target="_new" href="http://www.adobe.com/devnet/flash/articles/actionscript_guide_06.html">http://www.adobe.com/devnet/flash/articles/actionscript_guide_06.html</a></p>
<p>Use of variables should be utilized to help keep your code flexible. All of us have coded for &#8220;hitTest&#8221; functions now. Considering mobile devices, The method below is easy on the mobile processor and uses the objects x and y values as well as the objects dimensions.</p>
<p>var obj = new Object (x1, y1, w1, h1, x2, y2, w2, h2);<br />
if((obj.x1 >= obj.x2) &#038;&#038; (obj.x1+obj.w1 <=<br />
obj.x2+obj.w2) &#038;&#038; (obj.y1 >= obj.y2) &#038;&#038; (obj.y1+obj.h1 <=<br />
obj.y2+obj.h2)){<br />
collision = true;<br />
}else{<br />
collision = false;<br />
}</p>
<p>This code checks the relationship of obj.x1&#8217;s left edge in relation to obj.x2&#8217;s left edge. Next it evaluates the right edge, top edge and finally the bottom edge of both.</p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/07/14/flash-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swap Images &#8211; javaScript onmouseover; AS 2.0 swapDepths, array, function</title>
		<link>http://alohahands.com/blog/2008/07/08/swap-images-javascript-onmouseover-as-20-swapdepths-array-function/</link>
		<comments>http://alohahands.com/blog/2008/07/08/swap-images-javascript-onmouseover-as-20-swapdepths-array-function/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 19:10:06 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[actionScript]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/07/08/swap-images-javascript-onmouseover-as-20-swapdepths-array-function/</guid>
		<description><![CDATA[I thought you might get a kick out of this.  Through the class
and some on line studies, I was able to create essentially the
very same affect using 4 different coding methods. The first
three are in Flash 2.0 and the last one is using javaScript.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
ARRAY:
var clipArray:Array = new Array(one_mc, two_mc, three_mc);
a_mc.onRollOver = function() {
showClip(one_mc);
}
b_mc.onRollOver = function() [...]]]></description>
			<content:encoded><![CDATA[<p>I thought you might get a kick out of this.  Through the class<br />
and some on line studies, I was able to create essentially the<br />
very same affect using 4 different coding methods. The first<br />
three are in Flash 2.0 and the last one is using javaScript.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>ARRAY:</strong></p>
<p>var clipArray:Array = new Array(one_mc, two_mc, three_mc);<br />
a_mc.onRollOver = function() {<br />
showClip(one_mc);<br />
}<br />
b_mc.onRollOver = function() {<br />
showClip(two_mc);<br />
}<br />
c_mc.onRollOver = function() {<br />
showClip(three_mc);<br />
}<br />
function showClip(l_Clip:Object):Void {<br />
for (i=0; i<br />
{<br />
hideClip(clipArray[i]);<br />
}<br />
l_Clip._visible = true;<br />
}<br />
function hideClip(l_clip):Void {<br />
l_clip._visible = false;<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>FUNCTION:</strong></p>
<p>a_mc.onRollOver = function() {<br />
onShow(one_mc);<br />
}<br />
b_mc.onRollOver = function() {<br />
onShow(two_mc);<br />
}<br />
c_mc.onRollOver = function() {<br />
onShow(three_mc);<br />
}<br />
function onShow(movClip:Object):Void {<br />
onHide();<br />
movClip._visible = true;<br />
}<br />
function onHide():Void {<br />
one_mc._visible = false;<br />
two_mc._visible = false;<br />
three_mc._visible = false;<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>SWAPDEPTHS:</strong></p>
<p>a_mc.onRollOver = function() {<br />
onTop(one_mc);<br />
}<br />
b_mc.onRollOver = function() {<br />
onTop(two_mc);<br />
}<br />
c_mc.onRollOver = function() {<br />
onTop(three_mc);<br />
}<br />
function onTop (movClip:Object):Void {<br />
movClip.swapDepths(0);<br />
}</p>
<p><img title="javaScript onmouseover event" alt="javaScript onmouseover event" src="http://alohahands.com/IT470/Images/jsonmouseover.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/07/08/swap-images-javascript-onmouseover-as-20-swapdepths-array-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>actionscript 2.0 fading text</title>
		<link>http://alohahands.com/blog/2008/07/01/actionscript-20-fading-text/</link>
		<comments>http://alohahands.com/blog/2008/07/01/actionscript-20-fading-text/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:30:27 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[actionScript]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/07/01/actionscript-20-fading-text/</guid>
		<description><![CDATA[In the Actions Panel: 
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(alert_mc, &#8220;_alpha&#8221;,Regular.easeOut,100,0,10,true);
On the stage:
Create a movie clip containing your text with an instance name of &#8220;alert_mc&#8221;.
Jesse&#8217;s Example:  click here
]]></description>
			<content:encoded><![CDATA[<p><strong>In the Actions Panel: </strong><br />
import mx.transitions.Tween;<br />
import mx.transitions.easing.*;<br />
new Tween(alert_mc, &#8220;_alpha&#8221;,Regular.easeOut,100,0,10,true);</p>
<p><strong>On the stage:</strong></p>
<p>Create a movie clip containing your text with an instance name of &#8220;alert_mc&#8221;.</p>
<p>Jesse&#8217;s Example:  <a target="_blank" title="Fading Text Example" href="http://alohahands.com/flash/01selfIntroduction.swf">click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/07/01/actionscript-20-fading-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript &#8211; SharedObject;</title>
		<link>http://alohahands.com/blog/2008/06/25/actionscript-sharedobject/</link>
		<comments>http://alohahands.com/blog/2008/06/25/actionscript-sharedobject/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 17:42:22 +0000</pubDate>
		<dc:creator>alohahands</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionScript]]></category>

		<guid isPermaLink="false">http://alohahands.com/blog/2008/06/25/actionscript-sharedobject/</guid>
		<description><![CDATA[There are many possible uses of shared-objects. For example to keep track of a shopping cart (store a name and selections and values or clear all values); track a name and high score; to store user&#8217;s preferences; to check whether a user is a new visitor; or a remote shared-object; which allows you to save [...]]]></description>
			<content:encoded><![CDATA[<p>There are many possible uses of shared-objects. For example to keep track of a shopping cart (store a name and selections and values or clear all values); track a name and high score; to store user&#8217;s preferences; to check whether a user is a new visitor; or a remote shared-object; which allows you to save to and retrieve data from a Flash COM (RMTP) server.</p>
<p>I will post about two remote shared-object uses (from livedocs.adobe.com):</p>
<p>* Store and share data on Flash Media Server. A shared object can store data on the server for other clients to retrieve. For example, call SharedObject.getRemote() to create a remote shared object, such as a phone list, that is persistent on the server. Whenever a client makes changes to the shared object, the revised data is available to all clients currently connected to the object or who later connect to it. If the object is also persistent locally, and a client changes data while not connected to the server, the data is copied to the remote shared object the next time the client connects to the object.</p>
<p>* Share data in real time. A shared object can share data among multiple clients in real time. For example, you can open a remote shared object that stores a list of users connected to a chat room that is visible to all clients connected to the object. When a user enters or leaves the chat room, the object is updated and all clients that are connected to the object see the revised list of chat room users.</p>
<p>reference:  <a target="_new" href="http://flash-communications.net/technotes/sharedObjectEditor/index.html">http://flash-communications.net/technotes/sharedObjectEditor/index.html</a></p>
<p><a target="_new" href="http://flash-communications.net/technotes/sharedObjectEditor/editor.html">http://flash-communications.net/technotes/sharedObjectEditor/editor.html</a></p>
<p><a target="_new" href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html</a></p>
<p><a target="_new" href="http://www.kirupa.com/developer/actionscript/shared_objects.htm">http://www.kirupa.com/developer/actionscript/shared_objects.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alohahands.com/blog/2008/06/25/actionscript-sharedobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.550 seconds -->
