<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>1. You can become strictly a programmer, but getting an art guy might be difficult if you have zero experience and nothing to show them. Then again, its usually artists looking for programmers so it might be easier this way.

3. I'm guessing, but probably a few months. For a team of beginners, more like several months.</body>
    <body-html>&lt;p&gt;1. You can become strictly a programmer, but getting an art guy might be difficult if you have zero experience and nothing to show them. Then again, its usually artists looking for programmers so it might be easier this way.&lt;/p&gt;
&lt;p&gt;3. I&amp;#8217;m guessing, but probably a few months. For a team of beginners, more like several months.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T21:28:06-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440883</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">63914</topic-id>
    <updated-at type="datetime">2009-11-07T21:28:06-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Having a folder called Tutorial and a class with exactly the same name seems like a bad idea. Try renaming the folder to lower case.</body>
    <body-html>&lt;p&gt;Having a folder called Tutorial and a class with exactly the same name seems like a bad idea. Try renaming the folder to lower case.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T19:06:03-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440261</id>
    <post-number type="integer">9</post-number>
    <topic-id type="integer">63867</topic-id>
    <updated-at type="datetime">2009-11-07T19:06:03-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Edit: Sounds like you may have just missed the linkage on one of your buttons?</body>
    <body-html>&lt;p&gt;Edit: Sounds like you may have just missed the linkage on one of your buttons?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:24:36-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440153</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">63876</topic-id>
    <updated-at type="datetime">2009-11-07T18:26:36-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Flash doesn't have the equivalent of a factory class. It's a shame, because its extremely useful and makes the preloading mess much simpler.

A factory class is like a 2 frame wrapper for your project. Everything in your main class (and anything else referenced by your main class) gets dumped into frame 2 of the factory class. As long as you don't reference your main class directly in your factory class you can easily preload while on frame 1 of the factory class, and once that's finished move to frame 2 of the factory class and create an instance of your main class.</body>
    <body-html>&lt;p&gt;Flash doesn&amp;#8217;t have the equivalent of a factory class. It&amp;#8217;s a shame, because its extremely useful and makes the preloading mess much simpler.&lt;/p&gt;
&lt;p&gt;A factory class is like a 2 frame wrapper for your project. Everything in your main class (and anything else referenced by your main class) gets dumped into frame 2 of the factory class. As long as you don&amp;#8217;t reference your main class directly in your factory class you can easily preload while on frame 1 of the factory class, and once that&amp;#8217;s finished move to frame 2 of the factory class and create an instance of your main class.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:20:49-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440146</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">63867</topic-id>
    <updated-at type="datetime">2009-11-07T18:20:49-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>You can use parseInt to convert from a string to a whole number

&lt;pre&gt;
if (parseInt(_root.str) + parseInt(_root.def) + parseInt(_root.mag) + parseInt(_root.agi) == 50) {
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;You can use parseInt to convert from a string to a whole number&lt;/p&gt;
&lt;pre&gt;
if (parseInt(_root.str) + parseInt(_root.def) + parseInt(_root.mag) + parseInt(_root.agi) == 50) {
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:14:58-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440130</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">63814</topic-id>
    <updated-at type="datetime">2009-11-07T18:14:58-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>If I understand you right, you just need to give all 3 symbols the same 'base class' in the linkage options (&quot;ToggleButton&quot;), and then give each a unique 'class'.</body>
    <body-html>&lt;p&gt;If I understand you right, you just need to give all 3 symbols the same &amp;#8216;base class&amp;#8217; in the linkage options (&amp;#8220;ToggleButton&amp;#8221;), and then give each a unique &amp;#8216;class&amp;#8217;.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:08:45-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440115</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">63876</topic-id>
    <updated-at type="datetime">2009-11-07T18:08:45-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>You can just use

&lt;pre&gt;
Array[someIndex].speed
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;You can just use&lt;/p&gt;
&lt;pre&gt;
Array[someIndex].speed
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-11-06T14:46:11-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1435782</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">63689</topic-id>
    <updated-at type="datetime">2009-11-06T14:46:11-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>||

shift+\</body>
    <body-html>&lt;p&gt;||&lt;/p&gt;
&lt;p&gt;shift+\&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-06T14:12:57-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1435665</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">63680</topic-id>
    <updated-at type="datetime">2009-11-06T14:12:57-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>bq. Is there a compelling reason for using a floating point number when you just want an integer

No. For some reason I was thinking as2 (where there is no int type)</body>
    <body-html>&lt;blockquote&gt;
&lt;p&gt;Is there a compelling reason for using a floating point number when you just want an integer&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No. For some reason I was thinking as2 (where there is no int type)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-04T18:37:07-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1431440</id>
    <post-number type="integer">8</post-number>
    <topic-id type="integer">63494</topic-id>
    <updated-at type="datetime">2009-11-04T18:37:07-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>You declare parameters in the function header. Then they are automatically given the value that you pass in when you call the function, and you can use them the same as you use local variables.

&lt;pre&gt;
function getAward(awardnumber:Number) {
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;You declare parameters in the function header. Then they are automatically given the value that you pass in when you call the function, and you can use them the same as you use local variables.&lt;/p&gt;
&lt;pre&gt;
function getAward(awardnumber:Number) {
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-11-04T18:16:29-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1431396</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">63494</topic-id>
    <updated-at type="datetime">2009-11-04T18:16:29-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Are you working in as3?

You may be able to use FlashDevelop to incorporate the libraries from multiple swfs into a final project swf which includes all of it. That would allow you to work in multiple flas.</body>
    <body-html>&lt;p&gt;Are you working in as3?&lt;/p&gt;
&lt;p&gt;You may be able to use FlashDevelop to incorporate the libraries from multiple swfs into a final project swf which includes all of it. That would allow you to work in multiple flas.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-04T04:27:50-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1430128</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">63293</topic-id>
    <updated-at type="datetime">2009-11-04T04:27:50-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Looks like in as2 it should be &lt;code&gt;bmd.rectangle&lt;/code&gt; instead.</body>
    <body-html>&lt;p&gt;Looks like in as2 it should be &lt;code&gt;bmd.rectangle&lt;/code&gt; instead.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-04T04:02:19-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1430097</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">63336</topic-id>
    <updated-at type="datetime">2009-11-04T04:02:19-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/4/topics/63355?page=1#posts-1429642'&gt;UnknownGuardian&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;Forgive my ignorance, but why do you say&lt;/p&gt;
&lt;pre&gt;
Game.ballHandler[&quot;Ball0&quot;]
&lt;/pre&gt;
&lt;p&gt;What is ballHandler that you can access some object by passing in a String in the &lt;code&gt;[]&lt;/code&gt;?&lt;/p&gt;&lt;/blockquote&gt;

You can do that with an instance of any dynamic class (MovieClips, Arrays, Objects etc)


bq. Is there something I have to do in the library to make them compatible? 


You need to use attachMovie instead of creating a new object. If that isn't working, there must be a problem with your linkage. If you tick export for actionscript and make sure the 'class' field matches the name of the class exactly it should work.</body>
    <body-html>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/4/topics/63355?page=1#posts-1429642&quot;&gt;UnknownGuardian&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;Forgive my ignorance, but why do you say&lt;/p&gt;
&lt;pre&gt;
Game.ballHandler[&quot;Ball0&quot;]
&lt;/pre&gt;
&lt;p&gt;What is ballHandler that you can access some object by passing in a String in the &lt;code&gt;[]&lt;/code&gt;?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You can do that with an instance of any dynamic class (MovieClips, Arrays, Objects etc)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is there something I have to do in the library to make them compatible?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You need to use attachMovie instead of creating a new object. If that isn&amp;#8217;t working, there must be a problem with your linkage. If you tick export for actionscript and make sure the &amp;#8216;class&amp;#8217; field matches the name of the class exactly it should work.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-04T03:46:09-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1430081</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">63355</topic-id>
    <updated-at type="datetime">2009-11-04T03:46:09-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>You use '=' to assign something. So inside your if there you are setting the x to 1000.

To compare, use '=='

Although in this case you might be better off checking '&gt;=' (greater than or equal to)</body>
    <body-html>&lt;p&gt;You use &amp;#8216;=&amp;#8217; to assign something. So inside your if there you are setting the x to 1000.&lt;/p&gt;
&lt;p&gt;To compare, use &amp;#8216;==&amp;#8217;&lt;/p&gt;
&lt;p&gt;Although in this case you might be better off checking &amp;#8216;&amp;gt;=&amp;#8217; (greater than or equal to)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-24T20:21:47-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1402812</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">62124</topic-id>
    <updated-at type="datetime">2009-10-24T20:21:47-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>You can listen for an &lt;code&gt;Event.CHANGE&lt;/code&gt; Event.

&lt;pre&gt;
inputField.addEventListener(Event.CHANGE, handleInput);

function handleInput(event:Event):void {
	trace(&quot;user typed: &quot; + inputField.text);
}
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;You can listen for an &lt;code&gt;Event.CHANGE&lt;/code&gt; Event.&lt;/p&gt;
&lt;pre&gt;
inputField.addEventListener(Event.CHANGE, handleInput);

function handleInput(event:Event):void {
	trace(&quot;user typed: &quot; + inputField.text);
}
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-10-24T20:19:22-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1402808</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">62126</topic-id>
    <updated-at type="datetime">2009-10-24T20:19:22-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Well you use it on a specific bitmapData. If you have a specific Bitmap, you can use its .bitmapData property.

I should mention the x and y aren't stage coordinates, they are in pixels, relative to the topleft corner of the BitmapData. So you'll need to subtract the Bitmap's x and y from whatever stage coordinates you want to test against. And if the Bitmap is scaled you'll have to account for that too.</body>
    <body-html>&lt;p&gt;Well you use it on a specific bitmapData. If you have a specific Bitmap, you can use its .bitmapData property.&lt;/p&gt;
&lt;p&gt;I should mention the x and y aren&amp;#8217;t stage coordinates, they are in pixels, relative to the topleft corner of the BitmapData. So you&amp;#8217;ll need to subtract the Bitmap&amp;#8217;s x and y from whatever stage coordinates you want to test against. And if the Bitmap is scaled you&amp;#8217;ll have to account for that too.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-23T18:06:04-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1399272</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">61940</topic-id>
    <updated-at type="datetime">2009-10-23T18:06:04-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Attach the MOUSE_UP listener to the stage instead. Then you don't have to worry about releasing outside or if the user moves the mouse outside the object within one frame - it'll always fire.

You probably only want to attach that listener inside the MOUSE_DOWN handler, though, and remove it again inside the MOUSE_UP handler.</body>
    <body-html>&lt;p&gt;Attach the MOUSE_UP listener to the stage instead. Then you don&amp;#8217;t have to worry about releasing outside or if the user moves the mouse outside the object within one frame &amp;#8211; it&amp;#8217;ll always fire.&lt;/p&gt;
&lt;p&gt;You probably only want to attach that listener inside the MOUSE_DOWN handler, though, and remove it again inside the MOUSE_UP handler.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-23T17:46:13-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1399241</id>
    <post-number type="integer">9</post-number>
    <topic-id type="integer">61856</topic-id>
    <updated-at type="datetime">2009-10-23T17:46:13-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Yeah, using &lt;code&gt;bitmapData.getPixel32(x, y)&lt;/code&gt; you can get the 32 bit color of the pixel.

You could then bitwise AND to check if there's any alpha there.

&lt;pre&gt;
if ((bitmapData.getPixel32(x, y) &amp; 0xFF000000) &gt; 0) {
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;Yeah, using &lt;code&gt;bitmapData.getPixel32(x, y)&lt;/code&gt; you can get the 32 bit color of the pixel.&lt;/p&gt;
&lt;p&gt;You could then bitwise &lt;span class=&quot;caps&quot;&gt;AND&lt;/span&gt; to check if there&amp;#8217;s any alpha there.&lt;/p&gt;
&lt;pre&gt;
if ((bitmapData.getPixel32(x, y) &amp;amp; 0xFF000000) &amp;gt; 0) {
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-10-23T17:40:37-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1399235</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">61940</topic-id>
    <updated-at type="datetime">2009-10-23T17:41:36-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>&lt;code&gt;Math.random(array)&lt;/code&gt; is being evaluated right then and there - not each time the function is called.

You can just generate those numbers inside the function.

&lt;pre&gt;
interval = setInterval(randomColors, 5000);

...

function randomColors() {
red = Math.random(array);
blue = Math.random(array);
green = Math.random(array);
trace(&#8220;interval called&#8221;);
}
&lt;/pre&gt;

Although I don't think &lt;code&gt;Math.random(array)&lt;/code&gt; would work anyway.

If it doesn't work, try &lt;code&gt;array[Math.floor(Math.random() * array.length)]&lt;/code&gt; instead</body>
    <body-html>&lt;p&gt;&lt;code&gt;Math.random(array)&lt;/code&gt; is being evaluated right then and there &amp;#8211; not each time the function is called.&lt;/p&gt;
&lt;p&gt;You can just generate those numbers inside the function.&lt;/p&gt;
&lt;pre&gt;
interval = setInterval(randomColors, 5000);

...

function randomColors() {
red = Math.random(array);
blue = Math.random(array);
green = Math.random(array);
trace(&#8220;interval called&#8221;);
}
&lt;/pre&gt;
&lt;p&gt;Although I don&amp;#8217;t think &lt;code&gt;Math.random(array)&lt;/code&gt; would work anyway.&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#8217;t work, try &lt;code&gt;array[Math.floor(Math.random() * array.length)]&lt;/code&gt; instead&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-22T14:42:43-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1395969</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">61778</topic-id>
    <updated-at type="datetime">2009-10-22T14:42:43-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>I would guess that you've declared a variable called 'Event' which is obscuring the class name. So when you type Event.ENTER_FRAME it thinks you're trying to access an instance variable instead of a static one belonging to the class.</body>
    <body-html>&lt;p&gt;I would guess that you&amp;#8217;ve declared a variable called &amp;#8216;Event&amp;#8217; which is obscuring the class name. So when you type Event.ENTER_FRAME it thinks you&amp;#8217;re trying to access an instance variable instead of a static one belonging to the class.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-22T13:58:05-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1395868</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">61776</topic-id>
    <updated-at type="datetime">2009-10-22T13:58:05-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>&lt;code&gt;if&lt;/code&gt; evaluates what is in the brackets directly after it. In your code, that's just 

&lt;pre&gt;
(50 &lt; (root.bl1p &#8211; _root.rl1p))
&lt;/pre&gt;

If you wrap the whole lot in another set of brackets it'll work

&lt;pre&gt;
if ((50 &lt; (root.bl1p &#8211; _root.rl1p) ) or (50 &lt; (root.bl2p &#8211; root.rl2p)) or (50 &lt; (root.bl3p &#8211; root.rl3p)) or (50 &lt; (root.bl4p &#8211; root.rl4p)) or (50 &lt; (root.bl5p &#8211; _root.rl5p))) {
&lt;/pre&gt;


&lt;code&gt;or&lt;/code&gt; has also been deprecated for a while, so you should switch over to using &lt;code&gt;||&lt;/code&gt; instead.</body>
    <body-html>&lt;p&gt;&lt;code&gt;if&lt;/code&gt; evaluates what is in the brackets directly after it. In your code, that&amp;#8217;s just&lt;/p&gt;
&lt;pre&gt;
(50 &amp;lt; (root.bl1p &#8211; _root.rl1p))
&lt;/pre&gt;
&lt;p&gt;If you wrap the whole lot in another set of brackets it&amp;#8217;ll work&lt;/p&gt;
&lt;pre&gt;
if ((50 &amp;lt; (root.bl1p &#8211; _root.rl1p) ) or (50 &amp;lt; (root.bl2p &#8211; root.rl2p)) or (50 &amp;lt; (root.bl3p &#8211; root.rl3p)) or (50 &amp;lt; (root.bl4p &#8211; root.rl4p)) or (50 &amp;lt; (root.bl5p &#8211; _root.rl5p))) {
&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;or&lt;/code&gt; has also been deprecated for a while, so you should switch over to using &lt;code&gt;||&lt;/code&gt; instead.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-20T00:51:20-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1389009</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">61379</topic-id>
    <updated-at type="datetime">2009-10-20T00:51:20-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Yes, but there are some limitations.

If you go &quot;here&quot;:http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html#getLocal%28%29 you can read about how to do it. Particularly the paragraph starting with &quot;Although the localPath parameter is optional&quot;</body>
    <body-html>&lt;p&gt;Yes, but there are some limitations.&lt;/p&gt;
&lt;p&gt;If you go &lt;a href=&quot;http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html#getLocal%28%29&quot;&gt;here&lt;/a&gt; you can read about how to do it. Particularly the paragraph starting with &amp;#8220;Although the localPath parameter is optional&amp;#8221;&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-18T16:23:16-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1384039</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">61327</topic-id>
    <updated-at type="datetime">2009-10-18T16:23:16-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Yeah, the One vs 100 makes no real difference. It's still 100 hitTests.

It's more important to figure out ways of testing _less_ than 100 bullets. For example, splitting your game area into a grid, and then only hitTesting the bullets in the same or neighbouring cells of the grid.

30 is a pretty standard fps for action games, but you can notice a difference if it's higher.</body>
    <body-html>&lt;p&gt;Yeah, the One vs 100 makes no real difference. It&amp;#8217;s still 100 hitTests.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s more important to figure out ways of testing &lt;em&gt;less&lt;/em&gt; than 100 bullets. For example, splitting your game area into a grid, and then only hitTesting the bullets in the same or neighbouring cells of the grid.&lt;/p&gt;
&lt;p&gt;30 is a pretty standard fps for action games, but you can notice a difference if it&amp;#8217;s higher.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-18T13:06:43-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1383036</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">61286</topic-id>
    <updated-at type="datetime">2009-10-18T13:06:43-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>It can get nasty to do using Flash, but it's pretty simple using FlashDevelop. Looking at tutorials targetted at Flash might be confusing the issue.

&quot;Here&quot;:http://www.bit-101.com/blog/?p=946 is a pretty good explanation. You can skip down below the first code block for FD relevant stuff.</body>
    <body-html>&lt;p&gt;It can get nasty to do using Flash, but it&amp;#8217;s pretty simple using FlashDevelop. Looking at tutorials targetted at Flash might be confusing the issue.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bit-101.com/blog/?p=946&quot;&gt;Here&lt;/a&gt; is a pretty good explanation. You can skip down below the first code block for FD relevant stuff.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-18T10:16:36-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1382470</id>
    <post-number type="integer">12</post-number>
    <topic-id type="integer">61182</topic-id>
    <updated-at type="datetime">2009-10-18T10:16:36-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Yup that's right. You could safely remove that line.</body>
    <body-html>&lt;p&gt;Yup that&amp;#8217;s right. You could safely remove that line.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-18T10:10:52-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1382455</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">61248</topic-id>
    <updated-at type="datetime">2009-10-18T10:10:52-07:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
</posts>
