<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>Hi! I am making a game and I am wondering which one of this two kinds of movement is best. Don't care about the other elements. You move the blue square with the arrows...

&quot;No. 1&quot;:http://megaswf.com/view/870df847189b756a21d265034d0b7575.html
&quot;No. 2&quot;:http://megaswf.com/view/0678eecb3882288813c3597c598ff09d.html

Thank you for any replies =D</body>
    <body-html>&lt;p&gt;Hi! I am making a game and I am wondering which one of this two kinds of movement is best. Don&amp;#8217;t care about the other elements. You move the blue square with the arrows&amp;#8230;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://megaswf.com/view/870df847189b756a21d265034d0b7575.html&quot;&gt;No. 1&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://megaswf.com/view/0678eecb3882288813c3597c598ff09d.html&quot;&gt;No. 2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for any replies =D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:53:08-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">3</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485569</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65910</topic-id>
    <updated-at type="datetime">2009-11-22T11:53:08-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Oh it worked now =D Ty =D</body>
    <body-html>&lt;p&gt;Oh it worked now =D Ty =D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:16: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">1485424</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">65900</topic-id>
    <updated-at type="datetime">2009-11-22T11:16:45-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Hi!
I am making a game with 2 .as files. I want to upload a test version on www.megaswf.com, but how? I put all the files in a .zip file and try to upload them, but it stands that only .swf's is allowed... How to upload a .swf that use classes?!
Thanks!</body>
    <body-html>&lt;p&gt;Hi!&lt;br /&gt;
I am making a game with 2 .as files. I want to upload a test version on &lt;a href=&quot;http://www.megaswf.com&quot;&gt;www.megaswf.com&lt;/a&gt;, but how? I put all the files in a .zip file and try to upload them, but it stands that only .swf&amp;#8217;s is allowed&amp;#8230; How to upload a .swf that use classes?!&lt;br /&gt;
Thanks!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:01:42-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">1485377</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65900</topic-id>
    <updated-at type="datetime">2009-11-22T11:01:42-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>&quot;Here&quot;:http://www.kirupa.com/forum/showthread.php?t=275629 is someone with the same problem... no answers...:</body>
    <body-html>&lt;p&gt;&lt;a href=&quot;http://www.kirupa.com/forum/showthread.php?t=275629&quot;&gt;Here&lt;/a&gt; is someone with the same problem&amp;#8230; no answers&amp;#8230;:&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T05:57:17-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">1484652</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65862</topic-id>
    <updated-at type="datetime">2009-11-22T05:57:17-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>I am using Flash04 AS2.
I want pause to be enabled when the player clicks somewhere else than in the game and focus out from the game. I have the pause ready... I just need to check if focus out. This should be done in an if statement:

&lt;pre&gt;
if ((Key.isDown(80) &amp;&amp; !pauseLimit) || (_root.focusEnabled?!?! &amp;&amp; !pauseLimit)) {
}
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;I am using Flash04 AS2.&lt;br /&gt;
I want pause to be enabled when the player clicks somewhere else than in the game and focus out from the game. I have the pause ready&amp;#8230; I just need to check if focus out. This should be done in an if statement:&lt;/p&gt;
&lt;pre&gt;
if ((Key.isDown(80) &amp;amp;&amp;amp; !pauseLimit) || (_root.focusEnabled?!?! &amp;amp;&amp;amp; !pauseLimit)) {
}
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-11-22T03:42:46-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">1484511</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65862</topic-id>
    <updated-at type="datetime">2009-11-22T03:43:31-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>This totally work!

&lt;pre&gt;
gotoAndStop(random(3)+3);
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;This totally work!&lt;/p&gt;
&lt;pre&gt;
gotoAndStop(random(3)+3);
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-11-06T06:45:17-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">1434649</id>
    <post-number type="integer">13</post-number>
    <topic-id type="integer">63435</topic-id>
    <updated-at type="datetime">2009-11-06T06:45:17-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>maybe

&lt;pre&gt;
var flskprt = 0;
onEnterFrame=function(){
     flskprt+=2;
     target.gotoAndPlay(flskprt);
}
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;maybe&lt;/p&gt;
&lt;pre&gt;
var flskprt = 0;
onEnterFrame=function(){
     flskprt+=2;
     target.gotoAndPlay(flskprt);
}
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-10-15T07:08:07-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">1371793</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">60837</topic-id>
    <updated-at type="datetime">2009-10-15T07:08:53-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Hello!
Is it possible to save more variables in a sharedObject.getLocal()?
like

&lt;pre&gt;
var SOL = SharedObject.getLocal(&quot;mySOL&quot;,&quot;/&quot;);
SOL.data.var1=2;
SOL.data.var2=3;
SOL.flush();
&lt;/pre&gt;

?</body>
    <body-html>&lt;p&gt;Hello!&lt;br /&gt;
Is it possible to save more variables in a sharedObject.getLocal()?&lt;br /&gt;
like&lt;/p&gt;
&lt;pre&gt;
var SOL = SharedObject.getLocal(&quot;mySOL&quot;,&quot;/&quot;);
SOL.data.var1=2;
SOL.data.var2=3;
SOL.flush();
&lt;/pre&gt;
&lt;p&gt;?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-15T04:59:38-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">1371732</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">60840</topic-id>
    <updated-at type="datetime">2009-10-15T04:59:38-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Yeah lol Next step will be to make the code more &quot;pasta&quot;. How?
Anyway, wow it works now! Thanks! =D</body>
    <body-html>&lt;p&gt;Yeah lol Next step will be to make the code more &amp;#8220;pasta&amp;#8221;. How?&lt;br /&gt;
Anyway, wow it works now! Thanks! =D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-15T02:50: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">1371672</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">60733</topic-id>
    <updated-at type="datetime">2009-10-15T02:50:05-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Hey! I discovered a pattern! When you press enter, every tile except the last in the array of tiles in the horizontal row is deleted!</body>
    <body-html>&lt;p&gt;Hey! I discovered a pattern! When you press enter, every tile except the last in the array of tiles in the horizontal row is deleted!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:54:49-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">1370262</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">60733</topic-id>
    <updated-at type="datetime">2009-10-14T14:14:51-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>All the games on Kongregate, Newgrounds etc is made with Flash. If you want to start making games, you do better start with Actionscript 2 or 3.</body>
    <body-html>&lt;p&gt;All the games on Kongregate, Newgrounds etc is made with Flash. If you want to start making games, you do better start with Actionscript 2 or 3.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:41:12-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">1370190</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">60640</topic-id>
    <updated-at type="datetime">2009-10-14T13:41:12-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>&lt;pre&gt;
if(Key.isDown(2)){
_root.gotoAndStop(&quot;looser&quot;);
}
&lt;/pre&gt;
may also work =D</body>
    <body-html>&lt;pre&gt;
if(Key.isDown(2)){
_root.gotoAndStop(&quot;looser&quot;);
}
&lt;/pre&gt;
&lt;p&gt;may also work =D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:39:06-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">1370181</id>
    <post-number type="integer">7</post-number>
    <topic-id type="integer">60635</topic-id>
    <updated-at type="datetime">2009-10-14T13:39:06-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>I got the same problem! I have MX07. Is there not any other preloader versions?</body>
    <body-html>&lt;p&gt;I got the same problem! I have MX07. Is there not any other preloader versions?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:37:42-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">1370177</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">60638</topic-id>
    <updated-at type="datetime">2009-10-14T13:37:42-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>uhm... maybe post the code...?</body>
    <body-html>&lt;p&gt;uhm&amp;#8230; maybe post the code&amp;#8230;?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:35:50-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">1370166</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">60251</topic-id>
    <updated-at type="datetime">2009-10-14T13:35:50-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>&lt;pre&gt;
if(!Key.isDown(keycode)){
stop();
}
&lt;/pre&gt;

where ! is the same as _not_. It checks if the key is *_not_* down.</body>
    <body-html>&lt;pre&gt;
if(!Key.isDown(keycode)){
stop();
}
&lt;/pre&gt;
&lt;p&gt;where ! is the same as &lt;em&gt;not&lt;/em&gt;. It checks if the key is &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; down.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T13:33: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">1370157</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">60742</topic-id>
    <updated-at type="datetime">2009-10-14T13:33:22-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/4/topics/60317?page=1#posts-1364907'&gt;turoni&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;that line was just ment too see or that code worked.&lt;/p&gt;&lt;/blockquote&gt;

I think you meant &quot;that line was just meant too see _if_ that code worked.&quot;.
you do better _trace_ the problems.
&lt;code&gt;trace(&quot;message&quot;);&lt;/code&gt; the output is: message
&lt;code&gt;trace(myVAr+&quot;messages&quot;);&lt;/code&gt; the output is (lets say that the value of myVar is 55): 55messages
EDIT:
just put the code anywhere, f. eks. to check if a if(){} is working:

&lt;pre&gt;
if(condition){
	trace(&quot;message&quot;);
	doOtherStuff();
}
&lt;/pre&gt;</body>
    <body-html>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/4/topics/60317?page=1#posts-1364907&quot;&gt;turoni&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;that line was just ment too see or that code worked.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I think you meant &amp;#8220;that line was just meant too see &lt;em&gt;if&lt;/em&gt; that code worked.&amp;#8221;.&lt;br /&gt;
you do better &lt;em&gt;trace&lt;/em&gt; the problems.&lt;br /&gt;
&lt;code&gt;trace(&quot;message&quot;);&lt;/code&gt; the output is: message&lt;br /&gt;
&lt;code&gt;trace(myVAr+&quot;messages&quot;);&lt;/code&gt; the output is (lets say that the value of myVar is 55): 55messages&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;br /&gt;
just put the code anywhere, f. eks. to check if a if(){} is working:&lt;/p&gt;
&lt;pre&gt;
if(condition){
	trace(&quot;message&quot;);
	doOtherStuff();
}
&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-10-14T12:23:29-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">1369906</id>
    <post-number type="integer">11</post-number>
    <topic-id type="integer">60317</topic-id>
    <updated-at type="datetime">2009-10-14T12:25:27-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>&quot;Google is your friend!&quot;:http://lmgtfy.com/?q=Local+Shared+Object
EDIT: or &quot;this.&quot;:http://www.kongregate.com/forums/4/topics/60673</body>
    <body-html>&lt;p&gt;&lt;a href=&quot;http://lmgtfy.com/?q=Local+Shared+Object&quot;&gt;Google is your friend!&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;: or &lt;a href=&quot;http://www.kongregate.com/forums/4/topics/60673&quot;&gt;this.&lt;/a&gt;&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T11:54:12-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">1369817</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">60728</topic-id>
    <updated-at type="datetime">2009-10-14T12:10:29-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Hello! I am making my own tilebased game code. My problem is... I don't know, but when I press enter, the tiles is suddenly just not right placed.

&lt;pre&gt;

var map1 = new Array();
var tile = {w:50, h:40};
var tileNr = 0;
var previewTNr = 0;
var currentTile = 0;
attachMovie(&quot;tiles&quot;, &quot;mouse&quot;, 10000, {_x:-30, _y:-30});
createEmptyMovieClip(&quot;preview&quot;, 1);
function buildMap(map) {
	createEmptyMovieClip(&quot;empty&quot;, 2);
	for (var y = 0; y&lt;map.length; y++) {
		for (var x = 0; x&lt;map[y].length; x++) {
			empty.attachMovie(&quot;tiles&quot;, &quot;tiles&quot;+tileNr, _root.empty.getNextHighestDepth(), {_x:x*tile.w, _y:y*tile.h, frame:map[y][x]});
			tileNr++;
			for (var i = 0; i&lt;tileNr; i++) {
				empty[&quot;tiles&quot;+i].gotoAndStop(_root.empty[&quot;tiles&quot;+i].frame);
			}
		}
	}
}
onEnterFrame = function () {
	if(Key.isDown(Key.ENTER)){
		preview.removeMovieClip();
		buildMap(map1);
	}
	mouse._x = _xmouse-(mouse._width/2);
	mouse._y = _ymouse-(mouse._height/2);
	if (Key.isDown(1)) {
		previewTNr++;
		preview.attachMovie(&quot;tiles&quot;, &quot;previewT&quot;+preview.getNextHighestDepth(), preview.getNextHighestDepth(), {frame:currentTile, _x:(Math.round((_root._xmouse-(tile.w/2))/tile.w)*tile.w), _y:(Math.round((_root._ymouse-(tile.h/2))/tile.h)*tile.h)});
		for (var p = 0; p&lt;previewTNr; p++) {
			if (map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)]) {
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)] = preview[&quot;previewT&quot;+p].frame;
				
			} else {
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)] = new Array();
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)] = preview[&quot;previewT&quot;+p].frame;
				
			}
			preview[&quot;previewT&quot;+p].gotoAndStop(preview[&quot;previewT&quot;+p].frame);
		}
		for(var a=0;a&lt;map1.length;a++){
			for(var b=0;b&lt;map1[a].length;b++){
				if(map1[a][b]==undefined){
					map1[a][b]=5;
				}
			}
		}
	}
};
&lt;/pre&gt;

Here is the &quot;.swf&quot;:http://megaswf.com/view/0ea75861477c4f4c9a25709c1b48046f.html

Thank You!

~ErlendHL</body>
    <body-html>&lt;p&gt;Hello! I am making my own tilebased game code. My problem is&amp;#8230; I don&amp;#8217;t know, but when I press enter, the tiles is suddenly just not right placed.&lt;/p&gt;
&lt;pre&gt;

var map1 = new Array();
var tile = {w:50, h:40};
var tileNr = 0;
var previewTNr = 0;
var currentTile = 0;
attachMovie(&quot;tiles&quot;, &quot;mouse&quot;, 10000, {_x:-30, _y:-30});
createEmptyMovieClip(&quot;preview&quot;, 1);
function buildMap(map) {
	createEmptyMovieClip(&quot;empty&quot;, 2);
	for (var y = 0; y&amp;lt;map.length; y++) {
		for (var x = 0; x&amp;lt;map[y].length; x++) {
			empty.attachMovie(&quot;tiles&quot;, &quot;tiles&quot;+tileNr, _root.empty.getNextHighestDepth(), {_x:x*tile.w, _y:y*tile.h, frame:map[y][x]});
			tileNr++;
			for (var i = 0; i&amp;lt;tileNr; i++) {
				empty[&quot;tiles&quot;+i].gotoAndStop(_root.empty[&quot;tiles&quot;+i].frame);
			}
		}
	}
}
onEnterFrame = function () {
	if(Key.isDown(Key.ENTER)){
		preview.removeMovieClip();
		buildMap(map1);
	}
	mouse._x = _xmouse-(mouse._width/2);
	mouse._y = _ymouse-(mouse._height/2);
	if (Key.isDown(1)) {
		previewTNr++;
		preview.attachMovie(&quot;tiles&quot;, &quot;previewT&quot;+preview.getNextHighestDepth(), preview.getNextHighestDepth(), {frame:currentTile, _x:(Math.round((_root._xmouse-(tile.w/2))/tile.w)*tile.w), _y:(Math.round((_root._ymouse-(tile.h/2))/tile.h)*tile.h)});
		for (var p = 0; p&amp;lt;previewTNr; p++) {
			if (map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)]) {
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)] = preview[&quot;previewT&quot;+p].frame;
				
			} else {
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)] = new Array();
				map1[Math.round((_root._ymouse-(tile.h/2))/tile.h)][Math.round((_root._xmouse-(tile.w/2))/tile.w)] = preview[&quot;previewT&quot;+p].frame;
				
			}
			preview[&quot;previewT&quot;+p].gotoAndStop(preview[&quot;previewT&quot;+p].frame);
		}
		for(var a=0;a&amp;lt;map1.length;a++){
			for(var b=0;b&amp;lt;map1[a].length;b++){
				if(map1[a][b]==undefined){
					map1[a][b]=5;
				}
			}
		}
	}
};
&lt;/pre&gt;
&lt;p&gt;Here is the &lt;a href=&quot;http://megaswf.com/view/0ea75861477c4f4c9a25709c1b48046f.html&quot;&gt;.swf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank You!&lt;/p&gt;
&lt;p&gt;~ErlendHL&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-14T11:28:17-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">1369768</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">60733</topic-id>
    <updated-at type="datetime">2009-10-14T11:28:17-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>My friend sent me this code. Something I don't understand:
what does % do?
How can you write &lt;code&gt;if (isPrime) primes.push(i);&lt;/code&gt; without curly bracets?
EDIT: I forgot to say: Now it works. thanks! :) but can someone tell me that ^</body>
    <body-html>&lt;p&gt;My friend sent me this code. Something I don&amp;#8217;t understand:&lt;br /&gt;
what does % do?&lt;br /&gt;
How can you write &lt;code&gt;if (isPrime) primes.push(i);&lt;/code&gt; without curly bracets?&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;: I forgot to say: Now it works. thanks! :) but can someone tell me that ^&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-01T10:08:51-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">1338935</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">59015</topic-id>
    <updated-at type="datetime">2009-10-01T10:15:29-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>this worked: *primes.splice(primes.length+1,1,i);* But it is not finding the primes. It is finding some other numbers.
EDIT: Ahh... it is finding the numbers that _is not_ primes!</body>
    <body-html>&lt;p&gt;this worked: &lt;strong&gt;primes.splice(primes.length+1,1,i);&lt;/strong&gt; But it is not finding the primes. It is finding some other numbers.&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;: Ahh&amp;#8230; it is finding the numbers that &lt;em&gt;is not&lt;/em&gt; primes!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-01T09:52:51-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">1338923</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">59015</topic-id>
    <updated-at type="datetime">2009-10-01T09:54:04-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Hello! I am trying to find all the primes between 100 and 200 in Actionscript 2.
here is my code so far:

&lt;pre&gt;
primes = Array();
counter=1;
for(i = 101; i &lt;= 200; i+=2){
  for(devisor = 3; devisor &lt; Math.sqrt(i) ; devisor+=2) {
    if(i % devisor == 0){
      primes[primes.length+1]=i;
      break;
    }
  }
}
trace(primes);
&lt;/pre&gt;
I don't know if this *primes[primes.length+1]=i;* is right.
Here is the trace(primes);

&lt;pre&gt;
undefined,105,undefined,111,undefined,115,undefined,117,undefined,119,undefined,123,undefined,125,undefined,129,undefined,133,undefined,135,undefined,141,undefined,143,undefined,145,undefined,147,undefined,153,undefined,155,undefined,159,undefined,161,undefined,165,undefined,171,undefined,175,undefined,177,undefined,183,undefined,185,undefined,187,undefined,189,undefined,195

&lt;/pre&gt;
please help me? :D

EDIT: I changed &lt;code&gt;primes[primes.length+1]=i;&lt;/code&gt;&lt;code&gt; primes.splice(primes.length+1,1,i);&lt;/code&gt; and the output is:
&lt;code&gt;105,111,115,117,119,123,125,129,133,135,141,143,145,147,153,155,159,161,165,171,175,177,183,185,187,189,195
&lt;/code&gt;
This is indeed totally wrong.</body>
    <body-html>&lt;p&gt;Hello! I am trying to find all the primes between 100 and 200 in Actionscript 2.&lt;br /&gt;
here is my code so far:&lt;/p&gt;
&lt;pre&gt;
primes = Array();
counter=1;
for(i = 101; i &amp;lt;= 200; i+=2){
  for(devisor = 3; devisor &amp;lt; Math.sqrt(i) ; devisor+=2) {
    if(i % devisor == 0){
      primes[primes.length+1]=i;
      break;
    }
  }
}
trace(primes);
&lt;/pre&gt;
&lt;p&gt;I don&amp;#8217;t know if this &lt;strong&gt;primes[primes.length+1]=i;&lt;/strong&gt; is right.&lt;br /&gt;
Here is the trace(primes);&lt;/p&gt;
&lt;pre&gt;
undefined,105,undefined,111,undefined,115,undefined,117,undefined,119,undefined,123,undefined,125,undefined,129,undefined,133,undefined,135,undefined,141,undefined,143,undefined,145,undefined,147,undefined,153,undefined,155,undefined,159,undefined,161,undefined,165,undefined,171,undefined,175,undefined,177,undefined,183,undefined,185,undefined,187,undefined,189,undefined,195

&lt;/pre&gt;
&lt;p&gt;please help me? :D&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;: I changed &lt;code&gt;primes[primes.length+1]=i;&lt;/code&gt;&lt;code&gt; primes.splice(primes.length+1,1,i);&lt;/code&gt; and the output is:&lt;br /&gt;
&lt;code&gt;105,111,115,117,119,123,125,129,133,135,141,143,145,147,153,155,159,161,165,171,175,177,183,185,187,189,195
&lt;/code&gt;&lt;br /&gt;
This is indeed totally wrong.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-01T09:44: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">1338911</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">59015</topic-id>
    <updated-at type="datetime">2009-10-01T09:48:56-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>I have made one power-up. And red coins and yellow and much more. Feel free to tell me what was good or what was bad. That will help me forth! :D</body>
    <body-html>&lt;p&gt;I have made one power-up. And red coins and yellow and much more. Feel free to tell me what was good or what was bad. That will help me forth! :D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-28T07:03:03-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">3</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1331896</id>
    <post-number type="integer">18</post-number>
    <topic-id type="integer">52011</topic-id>
    <updated-at type="datetime">2009-09-28T07:03:03-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Oh god.I think I forgot to write &lt;code&gt;|| MGbest_score_so.data.MGBestScore == undefined&lt;/code&gt; in the if() thing. Try &quot;this&quot;:http://megaswf.com/view/88b7c9b00c90de66373bd3c1d1ed8293.html ! I *hope* it works now! :) Please tell me.
Thanks :)</body>
    <body-html>&lt;p&gt;Oh god.I think I forgot to write &lt;code&gt;|| MGbest_score_so.data.MGBestScore == undefined&lt;/code&gt; in the if() thing. Try &lt;a href=&quot;http://megaswf.com/view/88b7c9b00c90de66373bd3c1d1ed8293.html&quot;&gt;this&lt;/a&gt; ! I &lt;strong&gt;hope&lt;/strong&gt; it works now! :) Please tell me.&lt;br /&gt;
Thanks :)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-27T13:03:19-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">1329970</id>
    <post-number type="integer">8</post-number>
    <topic-id type="integer">58257</topic-id>
    <updated-at type="datetime">2009-09-27T13:03:19-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>Uh. When I changed the name of the Shared Object Local, it was undefined. So I wrote:

&lt;pre&gt;
if(!MGbest_score_so.data.MGBestScore){
	MGbest_score_so.data.MGBestScore=0;
}
&lt;/pre&gt;

I think this will work. It works on my computer, but to be sure:
Try it &quot;here&quot;:http://megaswf.com/view/2dbca27a55fff4f9e4c5a6f7f085adac.html .
Tell me if the highscore system works, or if it only stands 0, or if it only stands undefined.
Thanks on advance! :D</body>
    <body-html>&lt;p&gt;Uh. When I changed the name of the Shared Object Local, it was undefined. So I wrote:&lt;/p&gt;
&lt;pre&gt;
if(!MGbest_score_so.data.MGBestScore){
	MGbest_score_so.data.MGBestScore=0;
}
&lt;/pre&gt;
&lt;p&gt;I think this will work. It works on my computer, but to be sure:&lt;br /&gt;
Try it &lt;a href=&quot;http://megaswf.com/view/2dbca27a55fff4f9e4c5a6f7f085adac.html&quot;&gt;here&lt;/a&gt; .&lt;br /&gt;
Tell me if the highscore system works, or if it only stands 0, or if it only stands undefined.&lt;br /&gt;
Thanks on advance! :D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-27T07:31:21-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">1329312</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">58257</topic-id>
    <updated-at type="datetime">2009-09-27T10:00:15-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>I solved this problem:
First, I did as Moonkey suggested; 

&lt;pre&gt;
if (Math.round((NumberOfClicks/3*10))/10&gt;MGbest_score_so.data.MGBestScore || MGbest_score_so.data.MGBestScore == undefined) {
&lt;/pre&gt;

but then, the highscore was always 0. So I removed

&lt;pre&gt;
if (MGbest_score_so.data.MGBestScore) {
	MGVBestScore = MGbest_score_so.data.MGBestScore;
} else {
	MGVBestScore = 0;
}
&lt;/pre&gt;

and then it worked :D thank you

EDIT: &quot;Here&quot;:http://megaswf.com/view/4a1c83834d0f2fa13a9f0c00aca0caa7.html is the version that works (only the mini-game).</body>
    <body-html>&lt;p&gt;I solved this problem:&lt;br /&gt;
First, I did as Moonkey suggested;&lt;/p&gt;
&lt;pre&gt;
if (Math.round((NumberOfClicks/3*10))/10&amp;gt;MGbest_score_so.data.MGBestScore || MGbest_score_so.data.MGBestScore == undefined) {
&lt;/pre&gt;
&lt;p&gt;but then, the highscore was always 0. So I removed&lt;/p&gt;
&lt;pre&gt;
if (MGbest_score_so.data.MGBestScore) {
	MGVBestScore = MGbest_score_so.data.MGBestScore;
} else {
	MGVBestScore = 0;
}
&lt;/pre&gt;
&lt;p&gt;and then it worked :D thank you&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;: &lt;a href=&quot;http://megaswf.com/view/4a1c83834d0f2fa13a9f0c00aca0caa7.html&quot;&gt;Here&lt;/a&gt; is the version that works (only the mini-game).&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-27T07:23: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">1329298</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">58257</topic-id>
    <updated-at type="datetime">2009-09-27T07:24:14-07:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
</posts>
