<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>The reason why I made this post is to help improve on it. Surely, no one wants games made in 5 minutes to be submitted on Kongregate; that's why I came here hoping to find ways to improve on it, or to improve on later flash games in the future. Honestly, I'm not looking for more revenue to make, but I have decided to take a step further and actually listen to people's feedback since they have now become important to me.</body>
    <body-html>&lt;p&gt;The reason why I made this post is to help improve on it. Surely, no one wants games made in 5 minutes to be submitted on Kongregate; that&amp;#8217;s why I came here hoping to find ways to improve on it, or to improve on later flash games in the future. Honestly, I&amp;#8217;m not looking for more revenue to make, but I have decided to take a step further and actually listen to people&amp;#8217;s feedback since they have now become important to me.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-07T18:01:00-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">1</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1281004</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">56259</topic-id>
    <updated-at type="datetime">2009-09-17T04:18:16-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Well, I managed to do that already. I guess I'm assuming that it is legal to do this since I found nothing related to this in the Kongregate policy. Let's hope how it goes, and hopefully improve on the tutorial.</body>
    <body-html>&lt;p&gt;Well, I managed to do that already. I guess I&amp;#8217;m assuming that it is legal to do this since I found nothing related to this in the Kongregate policy. Let&amp;#8217;s hope how it goes, and hopefully improve on the tutorial.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-07T17:58:31-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">1</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1280986</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">56259</topic-id>
    <updated-at type="datetime">2009-09-17T04:18:16-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Hi everyone. I just released this game called Master of Basics: Flash Tutorial. This is a tutorial dedicated to help new developers help make flash games or improve and optimize flash games before released. You can find my game here.

http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial

What I ask for is feedback. Bugs, mispellings, or maybe improvements that I can work on make this tutorial as effective as possible. It's not cool submitting quick 5 minute games that may become hidden. I worked hard on this, but I know I can improve it. Let me know on what you think of this, and how effective it is so that I may improve on it or maybe improve on my later flash games.

Thanks. =)</body>
    <body-html>&lt;p&gt;Hi everyone. I just released this game called Master of Basics: Flash Tutorial. This is a tutorial dedicated to help new developers help make flash games or improve and optimize flash games before released. You can find my game here.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial&quot;&gt;http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What I ask for is feedback. Bugs, mispellings, or maybe improvements that I can work on make this tutorial as effective as possible. It&amp;#8217;s not cool submitting quick 5 minute games that may become hidden. I worked hard on this, but I know I can improve it. Let me know on what you think of this, and how effective it is so that I may improve on it or maybe improve on my later flash games.&lt;/p&gt;
&lt;p&gt;Thanks. =)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-07T17:57:33-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">1280979</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">56261</topic-id>
    <updated-at type="datetime">2009-09-17T04:18:18-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Let me make this quick and simple. I know that I have the right to tell friends and others to check out my games. Whenever you upload a game, you can also send to others about the new game through e-mail. My question is, can you post your game link in posts? Here's my example:

Say for example that I have uploaded a new game:

http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial

Can I post a link to my new game so that others can see and check it out. Or is it illegal and wrong for me to post my game in Kongregate forums?

The reason why I ask from a developer's perspective is because I want to inform others of my new game, or this case, my tutorial that may benefit others who are also developers.

If this is illegal to do this, please delete the link at least so that I won't break the rules anymore, and I will not repeat this again. Or I can remove the link too of course. I'm just curious to finding out.</body>
    <body-html>&lt;p&gt;Let me make this quick and simple. I know that I have the right to tell friends and others to check out my games. Whenever you upload a game, you can also send to others about the new game through e-mail. My question is, can you post your game link in posts? Here&amp;#8217;s my example:&lt;/p&gt;
&lt;p&gt;Say for example that I have uploaded a new game:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial&quot;&gt;http://www.kongregate.com/games/Stataen/master-of-basics-flash-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can I post a link to my new game so that others can see and check it out. Or is it illegal and wrong for me to post my game in Kongregate forums?&lt;/p&gt;
&lt;p&gt;The reason why I ask from a developer&amp;#8217;s perspective is because I want to inform others of my new game, or this case, my tutorial that may benefit others who are also developers.&lt;/p&gt;
&lt;p&gt;If this is illegal to do this, please delete the link at least so that I won&amp;#8217;t break the rules anymore, and I will not repeat this again. Or I can remove the link too of course. I&amp;#8217;m just curious to finding out.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-07T17:44:28-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">1</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1280914</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">56259</topic-id>
    <updated-at type="datetime">2009-09-17T04:18:16-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>I knew that this was going to happen. I stated earlier in my last post that I may needed help on my game, although another post may come again. Well, here I am again needed help on the same game I'm making. Hopefully, it's not too much of a burden like last time.

One thing I don't know for myself is downloading anything from the flash game. What I mean is that you can download an swf file from the game. Examples include Super Crazy Guitar Mania Deluxe 3, and :the game:. They have download links that can let you download files. My question is, how do you do that? I want to have a button that lets the user download something from the game.

The reason why I request this is that the fact that my next game is actually going to be tutorial. On one section of the tutorial, there may a part that at first may be difficult to understand. I want to have the feature where users can download a flash file to understand what I am saying. Anybody can help me on this? The game is written in AS2. I know the code of the operations of the button, but not how to download stuff when clicked.</body>
    <body-html>&lt;p&gt;I knew that this was going to happen. I stated earlier in my last post that I may needed help on my game, although another post may come again. Well, here I am again needed help on the same game I&amp;#8217;m making. Hopefully, it&amp;#8217;s not too much of a burden like last time.&lt;/p&gt;
&lt;p&gt;One thing I don&amp;#8217;t know for myself is downloading anything from the flash game. What I mean is that you can download an swf file from the game. Examples include Super Crazy Guitar Mania Deluxe 3, and :the game:. They have download links that can let you download files. My question is, how do you do that? I want to have a button that lets the user download something from the game.&lt;/p&gt;
&lt;p&gt;The reason why I request this is that the fact that my next game is actually going to be tutorial. On one section of the tutorial, there may a part that at first may be difficult to understand. I want to have the feature where users can download a flash file to understand what I am saying. Anybody can help me on this? The game is written in AS2. I know the code of the operations of the button, but not how to download stuff when clicked.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-09-03T07:16: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">1265301</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">55694</topic-id>
    <updated-at type="datetime">2009-09-17T04:14:32-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Well, now that I finally got this solved, I can then progress and move on with my game. This may be probably the last advice of help for the upcoming game, although I have a feeling that I may need help again.

Thanks to everyone who helped me out on this problem. =)</body>
    <body-html>&lt;p&gt;Well, now that I finally got this solved, I can then progress and move on with my game. This may be probably the last advice of help for the upcoming game, although I have a feeling that I may need help again.&lt;/p&gt;
&lt;p&gt;Thanks to everyone who helped me out on this problem. =)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-30T19:08:54-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">1255973</id>
    <post-number type="integer">23</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>You're not going to believe this:

I downloaded the flash file andrewluong, and looked at it real carefully. After investigating both files, it turns out that both actionscript programs have the EXACT same code. The code that you gave me is the SAME as the code that I have.

So how come my flash file produces a null error and yours doesn't?

After comparing both files, I have this following answer:

My flash file is consisted of two frames. The first frame is where I have the MCs and the programming. The second frame has nothing. When the hit test is complete, the null error produces. One way to solve that was to put the MCs in the second frame.

The flash file that you created is different. You have 2 layers instead of one. The top layer consists of 1 MC and the progamming, which extends to the second frame. The second layer is the moving MC, in this case, which is called &quot;reddy&quot;. When reddy hits the object flr, it goes to the second frame and stops there, without producing a null error.

In summary, it was the frames that was causing the problem, not the programming code.</body>
    <body-html>&lt;p&gt;You&amp;#8217;re not going to believe this:&lt;/p&gt;
&lt;p&gt;I downloaded the flash file andrewluong, and looked at it real carefully. After investigating both files, it turns out that both actionscript programs have the &lt;span class=&quot;caps&quot;&gt;EXACT&lt;/span&gt; same code. The code that you gave me is the &lt;span class=&quot;caps&quot;&gt;SAME&lt;/span&gt; as the code that I have.&lt;/p&gt;
&lt;p&gt;So how come my flash file produces a null error and yours doesn&amp;#8217;t?&lt;/p&gt;
&lt;p&gt;After comparing both files, I have this following answer:&lt;/p&gt;
&lt;p&gt;My flash file is consisted of two frames. The first frame is where I have the MCs and the programming. The second frame has nothing. When the hit test is complete, the null error produces. One way to solve that was to put the MCs in the second frame.&lt;/p&gt;
&lt;p&gt;The flash file that you created is different. You have 2 layers instead of one. The top layer consists of 1 MC and the progamming, which extends to the second frame. The second layer is the moving MC, in this case, which is called &amp;#8220;reddy&amp;#8221;. When reddy hits the object flr, it goes to the second frame and stops there, without producing a null error.&lt;/p&gt;
&lt;p&gt;In summary, it was the frames that was causing the problem, not the programming code.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-30T13:17: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">1254412</id>
    <post-number type="integer">20</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Grrr...by trying that method, it gives me this following error output.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at test2_fla::MainTimeline/blkfall()

The method where I put the movie clips in the second frames will work fine. The other way gives me another kind of null error. This one is a bit different from the last. The reason why I wish to use this method is because I'm working on my next game. It's about 75% completion at this point, and I want to make this as clean as possible.

I could use the movie clip method if all else fails.</body>
    <body-html>&lt;p&gt;Grrr&amp;#8230;by trying that method, it gives me this following error output.&lt;/p&gt;
&lt;p&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;br /&gt;
	at test2_fla::MainTimeline/blkfall()&lt;/p&gt;
&lt;p&gt;The method where I put the movie clips in the second frames will work fine. The other way gives me another kind of null error. This one is a bit different from the last. The reason why I wish to use this method is because I&amp;#8217;m working on my next game. It&amp;#8217;s about 75% completion at this point, and I want to make this as clean as possible.&lt;/p&gt;
&lt;p&gt;I could use the movie clip method if all else fails.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-29T19:50: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">1251740</id>
    <post-number type="integer">17</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>andrewluong,  adding the movie clips in the second frame will solve the problem and no longer produces the null error. I wanted to ask, how can you un-refer the movie clips when it changes frames?</body>
    <body-html>&lt;p&gt;andrewluong,  adding the movie clips in the second frame will solve the problem and no longer produces the null error. I wanted to ask, how can you un-refer the movie clips when it changes frames?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-29T12:46:00-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">1250182</id>
    <post-number type="integer">14</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, I'm getting somewhere now. The new code that you gave is still not working. The output that comes out is that it doesn't me anymore errors, but now I am unable to move my character.

However, you gave me an idea. I modified my coding a bit and got a new output. My new output is that I am able to move my character, and when it touches the other character, it gives me the correct output. The problem is that I'm still stuck with the null error. It happens when my &quot;reddy&quot; hits &quot;flr&quot;, and proceeds to the second frame. The first frame works fine.

Here's my new code. It has been slightly modified.

&lt;pre&gt;
stop();
var varRight:Boolean = false;var varLeft:Boolean = false;
var varUp:Boolean = false;var varDown:Boolean = false;
var xspeed:Number = 10;var yspeed:Number = 10;
stage.addEventListener(Event.ENTER_FRAME,movement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.addEventListener(KeyboardEvent.KEY_UP,keyUps);
stage.addEventListener(Event.ENTER_FRAME, blkfall);
function checkKeys(event:KeyboardEvent){
if (event.keyCode == 39) {varRight = true;}
if (event.keyCode == 38) {varUp = true;}
if (event.keyCode == 37) {varLeft = true;}
if (event.keyCode == 40) {varDown = true;}}
function keyUps(event:KeyboardEvent) {if (event.keyCode == 39) {
event.keyCode = 0;varRight=false;}
if (event.keyCode == 38) {event.keyCode = 0;
varUp=false;}if (event.keyCode == 37) {
event.keyCode = 0;varLeft=false;}
if (event.keyCode == 40) {event.keyCode = 0;
varDown=false;}}function movement(Event){
if (varRight == true) {reddy.x += xspeed;}
if (varUp == true) {reddy.y -= yspeed;}
if (varLeft == true) {reddy.x -= xspeed;}
if (varDown == true) {reddy.y += yspeed;}}
function blkfall(Event){
	if (reddy.hitTestObject(flr)) {
		MovieClip(root).gotoAndStop(2);
	}
}</body>
    <body-html>&lt;p&gt;Okay, I&amp;#8217;m getting somewhere now. The new code that you gave is still not working. The output that comes out is that it doesn&amp;#8217;t me anymore errors, but now I am unable to move my character.&lt;/p&gt;
&lt;p&gt;However, you gave me an idea. I modified my coding a bit and got a new output. My new output is that I am able to move my character, and when it touches the other character, it gives me the correct output. The problem is that I&amp;#8217;m still stuck with the null error. It happens when my &amp;#8220;reddy&amp;#8221; hits &amp;#8220;flr&amp;#8221;, and proceeds to the second frame. The first frame works fine.&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s my new code. It has been slightly modified.&lt;/p&gt;
&lt;pre&gt;
stop();
var varRight:Boolean = false;var varLeft:Boolean = false;
var varUp:Boolean = false;var varDown:Boolean = false;
var xspeed:Number = 10;var yspeed:Number = 10;
stage.addEventListener(Event.ENTER_FRAME,movement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.addEventListener(KeyboardEvent.KEY_UP,keyUps);
stage.addEventListener(Event.ENTER_FRAME, blkfall);
function checkKeys(event:KeyboardEvent){
if (event.keyCode == 39) {varRight = true;}
if (event.keyCode == 38) {varUp = true;}
if (event.keyCode == 37) {varLeft = true;}
if (event.keyCode == 40) {varDown = true;}}
function keyUps(event:KeyboardEvent) {if (event.keyCode == 39) {
event.keyCode = 0;varRight=false;}
if (event.keyCode == 38) {event.keyCode = 0;
varUp=false;}if (event.keyCode == 37) {
event.keyCode = 0;varLeft=false;}
if (event.keyCode == 40) {event.keyCode = 0;
varDown=false;}}function movement(Event){
if (varRight == true) {reddy.x += xspeed;}
if (varUp == true) {reddy.y -= yspeed;}
if (varLeft == true) {reddy.x -= xspeed;}
if (varDown == true) {reddy.y += yspeed;}}
function blkfall(Event){
	if (reddy.hitTestObject(flr)) {
		MovieClip(root).gotoAndStop(2);
	}
}</body-html>
    <created-at type="datetime">2009-08-29T06:37: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">1249208</id>
    <post-number type="integer">11</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, let me make some things straight that I forgot to tell you.

Code is written in AS3, in CS3.
Code is written in the Actions Panel in a frame, not as a AS file.
There are two movie clips. They are &quot;reddy&quot; and &quot;flr&quot;, and have their instance names respectively.

Hope this clears some things up as I forgot to mention them earlier.</body>
    <body-html>&lt;p&gt;Okay, let me make some things straight that I forgot to tell you.&lt;/p&gt;
&lt;p&gt;Code is written in AS3, in CS3.&lt;br /&gt;
Code is written in the Actions Panel in a frame, not as a AS file.&lt;br /&gt;
There are two movie clips. They are &amp;#8220;reddy&amp;#8221; and &amp;#8220;flr&amp;#8221;, and have their instance names respectively.&lt;/p&gt;
&lt;p&gt;Hope this clears some things up as I forgot to mention them earlier.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-28T20:30: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">1248189</id>
    <post-number type="integer">9</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>andrewluong, putting that piece of code of replacement gives me a null error. No compile errors here, but it gives me a null reference error. In other words, it's still not working.</body>
    <body-html>&lt;p&gt;andrewluong, putting that piece of code of replacement gives me a null error. No compile errors here, but it gives me a null reference error. In other words, it&amp;#8217;s still not working.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-28T20:27: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">1248174</id>
    <post-number type="integer">8</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>I can understand the code that you have adviced to me. The variable name called &quot;screen&quot; is what will help activate the hit test. The stage refers back to the hit test by calling the action with respect to the variable &quot;screen&quot;.
.
The problem is that I don't understand my document class. I don't even remember giving it an class instance. Sorry if this sounds like a dumb question, but what document classes are you talking about? Sorry about this, but I never had these problems in AS2.</body>
    <body-html>&lt;p&gt;I can understand the code that you have adviced to me. The variable name called &amp;#8220;screen&amp;#8221; is what will help activate the hit test. The stage refers back to the hit test by calling the action with respect to the variable &amp;#8220;screen&amp;#8221;.&lt;br /&gt;
.&lt;br /&gt;
The problem is that I don&amp;#8217;t understand my document class. I don&amp;#8217;t even remember giving it an class instance. Sorry if this sounds like a dumb question, but what document classes are you talking about? Sorry about this, but I never had these problems in AS2.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-28T18:04:24-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">1247819</id>
    <post-number type="integer">6</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>What do you mean by using a reference to the stage? Perhaps an example can refresh my mind?</body>
    <body-html>&lt;p&gt;What do you mean by using a reference to the stage? Perhaps an example can refresh my mind?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-28T17:30:33-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">1247729</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, so I finally got the movement of my character going working in AS3. Now I'm doing a hit test, and it's not working! Oh why doesn't something work whenever I implement AS3 programming? =)

Okay, here's the problem.

I got 2 movie clips and gave it the programming. I have one error that reads &quot;Access of undefined property _root.&quot; Anyone know how to fix this problem. Here is my code. Sorry that I have it messed up a bit. I have been working on the code a bit too much. Anyways, it's the last part that gives me the error. I hope that you can still read the code. It's still about the same, but the spacing is way off.

&lt;pre&gt;
var varRight:Boolean = false;var varLeft:Boolean = false;
var varUp:Boolean = false;var varDown:Boolean = false;
var xspeed:Number = 10;var yspeed:Number = 10;
stage.addEventListener(Event.ENTER_FRAME,movement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.addEventListener(KeyboardEvent.KEY_UP,keyUps);
stage.addEventListener(Event.ENTER_FRAME, blkfall);
function checkKeys(event:KeyboardEvent){
if (event.keyCode == 39) {varRight = true;}
if (event.keyCode == 38) {varUp = true;}
if (event.keyCode == 37) {varLeft = true;}
if (event.keyCode == 40) {varDown = true;}}
function keyUps(event:KeyboardEvent) {if (event.keyCode == 39) {
event.keyCode = 0;varRight=false;}
if (event.keyCode == 38) {event.keyCode = 0;
varUp=false;}if (event.keyCode == 37) {
event.keyCode = 0;varLeft=false;}
if (event.keyCode == 40) {event.keyCode = 0;
varDown=false;}}function movement(Event){
if (varRight == true) {reddy.x += xspeed;}
if (varUp == true) {reddy.y -= yspeed;}
if (varLeft == true) {reddy.x -= xspeed;}
if (varDown == true) {reddy.y += yspeed;}}


function blkfall(Event){
	if (reddy.hitTestObject(flr)) {
		_root.gotoAndStop(2);
	}
}</body>
    <body-html>&lt;p&gt;Okay, so I finally got the movement of my character going working in AS3. Now I&amp;#8217;m doing a hit test, and it&amp;#8217;s not working! Oh why doesn&amp;#8217;t something work whenever I implement AS3 programming? =)&lt;/p&gt;
&lt;p&gt;Okay, here&amp;#8217;s the problem.&lt;/p&gt;
&lt;p&gt;I got 2 movie clips and gave it the programming. I have one error that reads &amp;#8220;Access of undefined property _root.&amp;#8221; Anyone know how to fix this problem. Here is my code. Sorry that I have it messed up a bit. I have been working on the code a bit too much. Anyways, it&amp;#8217;s the last part that gives me the error. I hope that you can still read the code. It&amp;#8217;s still about the same, but the spacing is way off.&lt;/p&gt;
&lt;pre&gt;
var varRight:Boolean = false;var varLeft:Boolean = false;
var varUp:Boolean = false;var varDown:Boolean = false;
var xspeed:Number = 10;var yspeed:Number = 10;
stage.addEventListener(Event.ENTER_FRAME,movement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
stage.addEventListener(KeyboardEvent.KEY_UP,keyUps);
stage.addEventListener(Event.ENTER_FRAME, blkfall);
function checkKeys(event:KeyboardEvent){
if (event.keyCode == 39) {varRight = true;}
if (event.keyCode == 38) {varUp = true;}
if (event.keyCode == 37) {varLeft = true;}
if (event.keyCode == 40) {varDown = true;}}
function keyUps(event:KeyboardEvent) {if (event.keyCode == 39) {
event.keyCode = 0;varRight=false;}
if (event.keyCode == 38) {event.keyCode = 0;
varUp=false;}if (event.keyCode == 37) {
event.keyCode = 0;varLeft=false;}
if (event.keyCode == 40) {event.keyCode = 0;
varDown=false;}}function movement(Event){
if (varRight == true) {reddy.x += xspeed;}
if (varUp == true) {reddy.y -= yspeed;}
if (varLeft == true) {reddy.x -= xspeed;}
if (varDown == true) {reddy.y += yspeed;}}


function blkfall(Event){
	if (reddy.hitTestObject(flr)) {
		_root.gotoAndStop(2);
	}
}</body-html>
    <created-at type="datetime">2009-08-28T16:55: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">1247607</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">55028</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:56-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>One word: SOLVED.</body>
    <body-html>&lt;p&gt;One word: &lt;span class=&quot;caps&quot;&gt;SOLVED&lt;/span&gt;.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-28T15: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">1247257</id>
    <post-number type="integer">13</post-number>
    <topic-id type="integer">54934</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:22-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, let me try this a different way. After getting some help with a few of my friends, I've decided to rewrite the code. This time, I'm having the code in the frame and no longer in an AS file. I've used the Key stage and it still fails no matter what. It's not that I ran out of patience, but I found another alternative in programming.

Okay, so I have some new code. I only have 1 error. It says that &quot;Packages cannot be nested&quot;. I've tried fixing this, but I don't know how to work it out. Anyone know how to fix this? Here's my code.

&lt;pre&gt;
package
{
	
	var varRight:Boolean = false;
	var varLeft:Boolean = false;
	var varUp:Boolean = false;
	var varDown:Boolean = false;
	
	var xspeed:Number = 5
	var yspeed:Number = 5
	
	stage.addEventListener(Event.ENTER_FRAME, movement);
	stage.addEventListener(KeyboardEvent.KEY_DOWN , checkKeys);
	stage.addEventListener(KeyboardEvent.KEY_UP, keyUps);
	
	function checkKeys(event:KeyboardEvent){
		if (event.keyCode == 39) {
		trace(&quot;Right key is down&quot;);
		varRight = true;
		}
		if (event.keyCode == 38) {
		trace(&quot;Up key is down&quot;);
		varUp = true;
		}
		if (event.keyCode == 37) {
		trace(&quot;Left key is down&quot;);
		varLeft = true;
		}
		if (event.keyCode == 40) {
		trace(&quot;Down key is down&quot;);
		varDown = true;
		}
	}
	

	function keyUps(event:KeyboardEvent) {
		if (event.keyCode == 39) {
		event.keyCode = 0;
		varRight=false;
		trace(&quot;Right key is NOT down&quot;);
		}
		if (event.keyCode == 38) {
		event.keyCode = 0;
		varUp=false;
		trace(&quot;Up key is NOT down&quot;);
		}
		if (event.keyCode == 37) {
		event.keyCode = 0;
		varLeft=false;
		trace(&quot;Left key is NOT down&quot;);
		}
		if (event.keyCode == 40) {
		event.keyCode = 0;
		varDown=false;
		trace(&quot;Down key is NOT down&quot;);
		}
	}
	
	function movement(Event){
		if (varRight == true) {
		player.x += xspeed;
		}
		if (varUp == true) {
		player.y -= yspeed;
		}
		if (varLeft == true) {
		player.x -= xspeed;
		}
		if (varDown == true) {
		player.y += yspeed;
		}
	}
}</body>
    <body-html>&lt;p&gt;Okay, let me try this a different way. After getting some help with a few of my friends, I&amp;#8217;ve decided to rewrite the code. This time, I&amp;#8217;m having the code in the frame and no longer in an AS file. I&amp;#8217;ve used the Key stage and it still fails no matter what. It&amp;#8217;s not that I ran out of patience, but I found another alternative in programming.&lt;/p&gt;
&lt;p&gt;Okay, so I have some new code. I only have 1 error. It says that &amp;#8220;Packages cannot be nested&amp;#8221;. I&amp;#8217;ve tried fixing this, but I don&amp;#8217;t know how to work it out. Anyone know how to fix this? Here&amp;#8217;s my code.&lt;/p&gt;
&lt;pre&gt;
package
{
	
	var varRight:Boolean = false;
	var varLeft:Boolean = false;
	var varUp:Boolean = false;
	var varDown:Boolean = false;
	
	var xspeed:Number = 5
	var yspeed:Number = 5
	
	stage.addEventListener(Event.ENTER_FRAME, movement);
	stage.addEventListener(KeyboardEvent.KEY_DOWN , checkKeys);
	stage.addEventListener(KeyboardEvent.KEY_UP, keyUps);
	
	function checkKeys(event:KeyboardEvent){
		if (event.keyCode == 39) {
		trace(&quot;Right key is down&quot;);
		varRight = true;
		}
		if (event.keyCode == 38) {
		trace(&quot;Up key is down&quot;);
		varUp = true;
		}
		if (event.keyCode == 37) {
		trace(&quot;Left key is down&quot;);
		varLeft = true;
		}
		if (event.keyCode == 40) {
		trace(&quot;Down key is down&quot;);
		varDown = true;
		}
	}
	

	function keyUps(event:KeyboardEvent) {
		if (event.keyCode == 39) {
		event.keyCode = 0;
		varRight=false;
		trace(&quot;Right key is NOT down&quot;);
		}
		if (event.keyCode == 38) {
		event.keyCode = 0;
		varUp=false;
		trace(&quot;Up key is NOT down&quot;);
		}
		if (event.keyCode == 37) {
		event.keyCode = 0;
		varLeft=false;
		trace(&quot;Left key is NOT down&quot;);
		}
		if (event.keyCode == 40) {
		event.keyCode = 0;
		varDown=false;
		trace(&quot;Down key is NOT down&quot;);
		}
	}
	
	function movement(Event){
		if (varRight == true) {
		player.x += xspeed;
		}
		if (varUp == true) {
		player.y -= yspeed;
		}
		if (varLeft == true) {
		player.x -= xspeed;
		}
		if (varDown == true) {
		player.y += yspeed;
		}
	}
}</body-html>
    <created-at type="datetime">2009-08-28T13:31:10-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">1246945</id>
    <post-number type="integer">11</post-number>
    <topic-id type="integer">54934</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:22-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Grrr....It's still not working. It still gives me the two errors. Is there something I could be missing? Are there alternatives in programming this item that can still give me the same output?</body>
    <body-html>&lt;p&gt;Grrr&amp;#8230;.It&amp;#8217;s still not working. It still gives me the two errors. Is there something I could be missing? Are there alternatives in programming this item that can still give me the same output?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-27T19:05:14-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">1245296</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">54934</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:22-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Where exactly am I supposed to put it? When I put it in the program, it gives me two errors now. Now, it gives me that the Key.initialize(stage); is also unidentified.

Just as an FYI, I am using the static Key class. It is provided by Kongregate.</body>
    <body-html>&lt;p&gt;Where exactly am I supposed to put it? When I put it in the program, it gives me two errors now. Now, it gives me that the Key.initialize(stage); is also unidentified.&lt;/p&gt;
&lt;p&gt;Just as an &lt;span class=&quot;caps&quot;&gt;FYI&lt;/span&gt;, I am using the static Key class. It is provided by Kongregate.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-27T18:56:33-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">1245274</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">54934</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:22-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, so I'm trying my best to learn AS3. I'm making the migration from AS2 to AS3. While AS3 requires more programming than the last, I can understand the basics and concepts of AS3 programming.

I'm working on some basic movement in AS3. However, I can't seem to move my character. When I execute the file, it gives me 1 error that says, &quot;Access of unidentified property&quot;. Right now, I only want the ball to move to the right for now, and I will implement the up, down, and left controls after I can fix this error. Can someone help me out what's wrong with this program.

Here's the code. The error happens in line 19, where it has the Key.Down(RIGHT) section.

&lt;pre&gt;
package{

	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.ui.Keyboard;
	
	public class Ship extends MovieClip{
		
		var velocity:Number;
		
		function Ship(){
			velocity = 10;
			addEventListener(&quot;enterFrame&quot;, move);

		}
		
		function move(e:Event){
			
			if(Key.isDown(Keyboard.RIGHT)){
				this.x = this.x + velocity;
			}
		} 
	}
}</body>
    <body-html>&lt;p&gt;Okay, so I&amp;#8217;m trying my best to learn AS3. I&amp;#8217;m making the migration from AS2 to AS3. While AS3 requires more programming than the last, I can understand the basics and concepts of AS3 programming.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m working on some basic movement in AS3. However, I can&amp;#8217;t seem to move my character. When I execute the file, it gives me 1 error that says, &amp;#8220;Access of unidentified property&amp;#8221;. Right now, I only want the ball to move to the right for now, and I will implement the up, down, and left controls after I can fix this error. Can someone help me out what&amp;#8217;s wrong with this program.&lt;/p&gt;
&lt;p&gt;Here&amp;#8217;s the code. The error happens in line 19, where it has the Key.Down(&lt;span class=&quot;caps&quot;&gt;RIGHT&lt;/span&gt;) section.&lt;/p&gt;
&lt;pre&gt;
package{

	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.ui.Keyboard;
	
	public class Ship extends MovieClip{
		
		var velocity:Number;
		
		function Ship(){
			velocity = 10;
			addEventListener(&quot;enterFrame&quot;, move);

		}
		
		function move(e:Event){
			
			if(Key.isDown(Keyboard.RIGHT)){
				this.x = this.x + velocity;
			}
		} 
	}
}</body-html>
    <created-at type="datetime">2009-08-27T18:48:01-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">1245253</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">54934</topic-id>
    <updated-at type="datetime">2009-09-17T04:10:22-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, after a successful 1st attempt at my newest game in my development, I once again need some additional help. This time it is the Hit Test. I made another movie clip, and gave it the instance name. The name is called &quot;bluey&quot;. Here is the code. The problem is that when I inputted the code and executed the program, nothing happens. When the objects hits the other object, it doesn't work and proceed to the next frame.

Assume this code has no errors. It is written in the Actions Panel, not as an Actionscript file.

&lt;pre&gt;
onClipEvent(enterFrame){
if(_root.Reddy.hitTest(_root.bluey)){
_root.nextFrame();
	}
}</body>
    <body-html>&lt;p&gt;Okay, after a successful 1st attempt at my newest game in my development, I once again need some additional help. This time it is the Hit Test. I made another movie clip, and gave it the instance name. The name is called &amp;#8220;bluey&amp;#8221;. Here is the code. The problem is that when I inputted the code and executed the program, nothing happens. When the objects hits the other object, it doesn&amp;#8217;t work and proceed to the next frame.&lt;/p&gt;
&lt;p&gt;Assume this code has no errors. It is written in the Actions Panel, not as an Actionscript file.&lt;/p&gt;
&lt;pre&gt;
onClipEvent(enterFrame){
if(_root.Reddy.hitTest(_root.bluey)){
_root.nextFrame();
	}
}</body-html>
    <created-at type="datetime">2009-08-22T19:59:54-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">1226639</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">54186</topic-id>
    <updated-at type="datetime">2009-09-17T04:06:13-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Wow it works! Once again thanks zero for your help! I already did the up and down keys. I just wanted to test the left and right keys. Once again, thanks for your help. =)</body>
    <body-html>&lt;p&gt;Wow it works! Once again thanks zero for your help! I already did the up and down keys. I just wanted to test the left and right keys. Once again, thanks for your help. =)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-22T19:00:48-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">1226356</id>
    <post-number type="integer">9</post-number>
    <topic-id type="integer">54157</topic-id>
    <updated-at type="datetime">2009-09-17T04:06:04-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Thanks zero. The error is now gone. However, I still cannot move my guy. I'm doing this with the converted symbol thing, not with .as files.</body>
    <body-html>&lt;p&gt;Thanks zero. The error is now gone. However, I still cannot move my guy. I&amp;#8217;m doing this with the converted symbol thing, not with .as files.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-22T18:41:25-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">1226245</id>
    <post-number type="integer">7</post-number>
    <topic-id type="integer">54157</topic-id>
    <updated-at type="datetime">2009-09-17T04:06:04-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Ah man. I was hoping I could get it fixed. Well, I can still wait. No need of rush here.</body>
    <body-html>&lt;p&gt;Ah man. I was hoping I could get it fixed. Well, I can still wait. No need of rush here.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-22T18:25:26-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">1226172</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">54157</topic-id>
    <updated-at type="datetime">2009-09-17T04:06:04-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
  <post>
    <body>Okay, I forgot to input the class name. Now that I did, I got an error. It says that the class or interface &quot;move&quot; cannot be loaded.</body>
    <body-html>&lt;p&gt;Okay, I forgot to input the class name. Now that I did, I got an error. It says that the class or interface &amp;#8220;move&amp;#8221; cannot be loaded.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-08-22T17:01:01-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">1225935</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">54157</topic-id>
    <updated-at type="datetime">2009-09-17T04:06:04-07:00</updated-at>
    <user-id type="integer">695189</user-id>
  </post>
</posts>
