<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Flash ActionScript Key.isDown Command</title>
      <link>http://ask.metafilter.com/15772/Flash-ActionScript-KeyisDown-Command/</link>
      <description>Comments on Ask MetaFilter post Flash ActionScript Key.isDown Command</description>
	  	  <pubDate>Tue, 01 Mar 2005 12:30:23 -0800</pubDate>
      <lastBuildDate>Tue, 01 Mar 2005 12:30:23 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Flash ActionScript Key.isDown Command</title>
  	<link>http://ask.metafilter.com/15772/Flash-ActionScript-KeyisDown-Command</link>	
  	<description>I have some ActionScript and I need to change the keyboard controls from the arrow keys (up, down, left and right) to a, z , comma and period but nothing seems to be working... Please hope me! &lt;br /&gt;&lt;br /&gt; The code is as follows:&lt;br&gt;
&lt;br&gt;
onClipEvent (enterframe) {&lt;br&gt;
	if (Key.isDown(key.DOWN) &amp;amp;&amp;amp; _y &lt; 100) { _y=_y+1; } if (key.isdown(key.up) &amp;&amp; _y&gt; 10 {&lt;br&gt;
		_y=_y-1;&lt;br&gt;
	}&lt;br&gt;
	if (Key.isDown(key.RIGHT) &amp;amp;&amp;amp; _x &lt; 200) { _x=_x+1; } if (key.isdown(key.left) &amp;&amp; _x&gt; 10) {&lt;br&gt;
		_x=_x-1;	&lt;br&gt;
	}&lt;br&gt;
&lt;br&gt;
I have tried replacing the DOWN, UP, RIGHT and LEFT with the letters alone, letters in quotes and the key codes listed in the Flash help file but nothing is working.  What am I missing?&lt;br&gt;
&lt;br&gt;
Note: Flash MX with ActionScript in Expert* Mode&lt;br&gt;
&lt;br&gt;
&lt;small&gt;* How ironic is that? :)&lt;/small&gt;&lt;/&gt;&lt;/&gt;</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.15772</guid>
  	<pubDate>Tue, 01 Mar 2005 12:13:15 -0800</pubDate>
  	<dc:creator>stringbean</dc:creator>
	
	<category>flash</category>
	
	<category>actionscript</category>
	
	<category>keyboard</category>
	
</item>
<item>
  	<title>By: juv3nal</title>
  	<link>http://ask.metafilter.com/15772/Flash-ActionScript-KeyisDown-Command#269638</link>	
  	<description>I think you want: Key.isDown(85)&lt;br&gt;
where 85 is to be replaced with the keycode for the key you want (unless you already tried that in which case I&apos;ve no idea).</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.15772-269638</guid>
  	<pubDate>Tue, 01 Mar 2005 12:30:23 -0800</pubDate>
  	<dc:creator>juv3nal</dc:creator>
</item>
<item>
  	<title>By: stringbean</title>
  	<link>http://ask.metafilter.com/15772/Flash-ActionScript-KeyisDown-Command#269653</link>	
  	<description>Seventeen minutes!&lt;br&gt;
&lt;br&gt;
I don&apos;t know if that is a speed record for Ask MeFi...&lt;br&gt;
&lt;br&gt;
...but I definitely do know that you are a life saver!&lt;br&gt;
&lt;br&gt;
Thank you so much,  juv3nal.&lt;br&gt;
&lt;br&gt;
You&apos;ve made my day.&lt;br&gt;
&lt;br&gt;
(^_^)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.15772-269653</guid>
  	<pubDate>Tue, 01 Mar 2005 12:41:15 -0800</pubDate>
  	<dc:creator>stringbean</dc:creator>
</item>

    </channel>
</rss>
