<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>ActionScript.org Forums</title>
		<link>http://www.actionscript.org/forums/</link>
		<description>ActionScript.org is a large online community for Macromedia Flash developers at all skill levels. We offer tutorials, open source, scripting assistance, book reviews, scene news and a means of contact between developers.</description>
		<language>en</language>
		<lastBuildDate>Wed, 16 May 2012 21:41:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.actionscript.org/forums/images/misc/rss.jpg</url>
			<title>ActionScript.org Forums</title>
			<link>http://www.actionscript.org/forums/</link>
		</image>
		<item>
			<title>How to remove all child(children?/objects) in array</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273362&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 21:33:38 GMT</pubDate>
			<description><![CDATA[I would say its a simple question but I've researched everywhere and the only thing I found that might work is this 
 
while (container.numChildren >...]]></description>
			<content:encoded><![CDATA[<div>I would say its a simple question but I've researched everywhere and the only thing I found that might work is this<br />
<br />
while (container.numChildren &gt; 0){<br />
  container.removeChildAt(0);<br />
}<br />
<br />
But when I attempt to use this it won't work.<br />
The name of the array is army<br />
So my current attempt is to instead of removing all children, to remove a certain child like so<br />
<br />
If (enemy.hitTestObject(avatar)){enemy.parent.removeC  hild(enemy)}<br />
<br />
This actually Did remove the specific child but, it caused glitching(objects above the removed child stopped moving until mouse was moved, objects below continued moving) and this error: <br />
TypeError: Error #1009:Cannot access a property or method of a null object reference. at AvoiderGame/onTick() <br />
at flash. utils: :Timer/_timerDispatch() <br />
at flash.utils: :Timer/tick()<br />
<br />
So for my final attempt to remove child correctly I placed the code inside the enemy class file(too complicated to explain ATM)</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>Brandondspicer</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273362</guid>
		</item>
		<item>
			<title>variable takes a value other</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273361&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 20:38:35 GMT</pubDate>
			<description>Hi. 
 
 
Sudoku I am writing in air. On a mobile phone. 
 virtual numeric keypad 
 
 
 If two dynamic text fields and two buttons. The task of the...</description>
			<content:encoded><![CDATA[<div>Hi.<br />
<br />
<br />
Sudoku I am writing in air. On a mobile phone.<br />
 virtual numeric keypad<br />
<br />
<br />
 If two dynamic text fields and two buttons. The task of the program would be that if I press the buttons, they both print the correct value in the text box.<br />
  Text Field Instance names are:<br />
 text1<br />
  text2<br />
  Button Instance Names:<br />
  gomb1<br />
  gomb2<br />
 <br />
 Code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">s1.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler);<br />
function fl_MouseOverHandler(event:MouseEvent):void<br />
{<br />
suko_gmb1.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);<br />
function fl_ClickToPosition(event:MouseEvent):void<br />
{<br />
s1.text = &quot;1&quot;;<br />
}<br />
&nbsp; <br />
suko_gmb2.addEventListener(MouseEvent.CLICK, fl_ClickToPosition1);<br />
function fl_ClickToPosition1(event:MouseEvent):void<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; s1.text = &quot;2&quot;;<br />
}<br />
<br />
}<br />
<br />
<br />
s2.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler1);<br />
function fl_MouseOverHandler1(event:MouseEvent):void<br />
{<br />
suko_gmb1.addEventListener(MouseEvent.CLICK, fl_ClickToPosition11);<br />
function fl_ClickToPosition11(event:MouseEvent):void<br />
{<br />
s2.text = &quot;1&quot;;<br />
}<br />
&nbsp; <br />
suko_gmb2.addEventListener(MouseEvent.CLICK, fl_ClickToPosition12);<br />
function fl_ClickToPosition12(event:MouseEvent):void<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; s2.text = &quot;2&quot;;<br />
}<br />
<br />
}</code><hr />
</div> The problem would be when I click for example. The first text box and press the button for each, or two, it will print properly, but if you continue to squeeze tried out, or you can not write anything anywhere, or both text boxes in the same type.<br />
 <br />
<br />
 I think the problem may be that the button press event to get extra keys within the same event and therefore may not be able feldogozni, but unfortunately I do not know the solution.<br />
<br />
 sorry bad english</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>gadna</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273361</guid>
		</item>
		<item>
			<title><![CDATA[[AS2] My character falls through the ground]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273359&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 19:49:22 GMT</pubDate>
			<description>My character just falls through the ground in my game, the floor is the base, and block 13 is about four platforms (all one symbol). Below is my...</description>
			<content:encoded><![CDATA[<div>My character just falls through the ground in my game, the floor is the base, and block 13 is about four platforms (all one symbol). Below is my code, it's directly in the movie clip. I'm using AS2. Any help appreciated, thanks.<br />
<br />
Below is my code/script:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #F000F0; font-style: italic;">// Stephen Gamage</span>
<span style="color: #993300;">onClipEvent</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">load</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; speed = <span style="color: #000000;">7</span>;
&nbsp; &nbsp; jumpspeed =&nbsp; <span style="color: #000000;">7</span>;
&nbsp; &nbsp; gravity = <span style="color: #000000;">0</span>;
&nbsp; &nbsp; gravityfaster = <span style="color: #000000;">0</span>.<span style="color: #000000;">3</span>;
&nbsp; &nbsp; jumping&nbsp; = <span style="color: #993300;">false</span>;
<span style="color: #000000;">&#125;</span>
<span style="color: #993300;">onClipEvent</span><span style="color: #000000;">&#40;</span>enterFrame<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">isDown</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">LEFT</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">this</span>.<span style="color: #993300;">_x</span> -= speed;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">isDown</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">RIGHT</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">this</span>.<span style="color: #993300;">_x</span> += speed;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">isDown</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">SPACE</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; jumping = <span style="color: #993300;">true</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span>jumping<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">this</span>.<span style="color: #993300;">_y</span> -= jumpspeed;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; gravity += gravityfaster;
&nbsp; &nbsp; <span style="color: #993300;">this</span>.<span style="color: #993300;">_y</span> += gravity; 
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">this</span>.<span style="color: #993300;">hitTest</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">_root</span>.<span style="color: #000000;">floor1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">this</span>.<span style="color: #993300;">_y</span> -= gravity;
&nbsp; &nbsp; &nbsp; &nbsp; gravity = <span style="color: #000000;">0</span>;
&nbsp; &nbsp; &nbsp; &nbsp; jumping = <span style="color: #993300;">false</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; 
&nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">/*The code below flips the character either 
&nbsp; &nbsp; left or right depending on which key is down. 
&nbsp; &nbsp; */</span>
&nbsp; &nbsp; 
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">isDown</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">LEFT</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">gotoAndStop</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"right"</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">isDown</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">Key</span>.<span style="color: #993300;">RIGHT</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">gotoAndStop</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"left"</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
Thanks :)</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=91">Gaming and Game Development</category>
			<dc:creator>stephengamage</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273359</guid>
		</item>
		<item>
			<title>is this making sense? I created two dispatchEvent s</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273358&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:57:34 GMT</pubDate>
			<description><![CDATA[I created two dispatchEvent. I'm trying to have a double safety on data retrieval. i have a dispatchEvent in contentLoaded and the last dispatchEvent...]]></description>
			<content:encoded><![CDATA[<div>I created two dispatchEvent. I'm trying to have a double safety on data retrieval. i have a dispatchEvent in contentLoaded and the last dispatchEvent in loadedContent. If i had loadedContent by itself it will still work. It this unnecessary? does it make sense to listen for a complete event and then launch another? THanks.................<br />
<br />
package com.class.php<br />
{<br />
	import flash.events.*;<br />
	import flash.net.*;<br />
	<br />
	public class Grabber extends EventDispatcher<br />
	{<br />
		public var phpFile:String;<br />
		public var remoteFile:String;<br />
		public var req:URLRequest;<br />
		private var vars:URLVariables = new URLVariables();<br />
		private var loader:URLLoader = new URLLoader();<br />
		public var data:String;<br />
		<br />
		public function Grabber()<br />
		{<br />
			<br />
		}<br />
		<br />
		public function load(php:String, remote:String):void<br />
		{<br />
			phpFile = php;<br />
			remoteFile = remote;<br />
			req = new URLRequest(phpFile);<br />
			vars.fileName = remoteFile;<br />
			req.data = vars;<br />
			req.method = URLRequestMethod.POST;<br />
			loader.load(req);<br />
loader.addEventListener(Event.COMPLETE, contentLoaded, false, 0, true);<br />
addEventListener(&quot;checkEvent&quot;, loadedContent, false, 0, true);<br />
}<br />
		<br />
//I guess i want to have a double safety to make sure I'm getting data<br />
		private function contentLoaded(event:Event):void<br />
		{<br />
			<br />
			dispatchEvent(new Event(&quot;checkEvent&quot;));<br />
		}<br />
<br />
//data is passes to the fla file. it works fine<br />
		private function loadedContent(event:Event):void<br />
		{<br />
			data = loader.data;<br />
			dispatchEvent(new Event(Event.COMPLETE));<br />
		}<br />
		<br />
	}//END CLASS GRABBER<br />
}//END PACKAGE</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>infinitaspi@yahoo.com</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273358</guid>
		</item>
		<item>
			<title><![CDATA[[AS3] Simple score counter]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273357&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:53:28 GMT</pubDate>
			<description><![CDATA[Hi, I'm completely new to Flash and AS3 and I've got a small issue... 
 
On my stage I have a simple button and a dynamic text field for score. 
...]]></description>
			<content:encoded><![CDATA[<div>Hi, I'm completely new to Flash and AS3 and I've got a small issue...<br />
<br />
On my stage I have a simple button and a dynamic text field for score.<br />
<br />
Each time you click the button the counter should add 1 point to the score number<br />
<br />
this is my code:<br />
<br />
___________________________________<br />
<br />
var score:uint;<br />
<br />
scoreinstance.text = &quot; &quot; + score;<br />
<br />
this.addpointbtn.addEventListener(MouseEvent.CLICK  ,clickListener1);<br />
function clickListener1(event:MouseEvent):void<br />
{<br />
	score ++;<br />
}<br />
<br />
___________________________________<br />
<br />
the buttons instance name is addpointbtn. I've clicked on the dynamic text field and chosen Embed and simply added a Font 1 to it.. No idea why I had to do this but I got an error message if I didn't.<br />
<br />
Would someone please help me make this work?</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=91">Gaming and Game Development</category>
			<dc:creator>in_bloom</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273357</guid>
		</item>
		<item>
			<title><![CDATA[[AS2] Duplicate movie based on array data]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273356&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 18:01:50 GMT</pubDate>
			<description><![CDATA[Hello flash enthusiasts, 
 
I am currently building a (mock up) to view subscriber information by duplicating a movie clip based on an array. I'm...]]></description>
			<content:encoded><![CDATA[<div>Hello flash enthusiasts,<br />
<br />
I am currently building a (mock up) to view subscriber information by duplicating a movie clip based on an array. I'm grabbing the data from an xml and trying to pass the array to duplicated clips. The problem I'm running into is that I can only get data to the first duplicated movie and the original remains blank. <br />
<br />
Here is the xml:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;<br />
&lt;content&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;article&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;last4id&gt;1111&lt;/last4id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fnameid&gt;fname1&lt;/fnameid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lnameid&gt;lname1&lt;/lnameid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;expdate&gt;11/11&lt;/expdate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;addressid&gt;1111 First St&lt;/addressid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cityid&gt;Los Angeles&lt;/cityid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;stateid&gt;CA1&lt;/stateid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;zipid&gt;11111&lt;/zipid&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/article&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;article&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;last4id&gt;2222&lt;/last4id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fnameid&gt;fname2&lt;/fnameid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;lnameid&gt;lname2&lt;/lnameid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;expdate&gt;22/22&lt;/expdate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;addressid&gt;2222 Second St&lt;/addressid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cityid&gt;San Francisco&lt;/cityid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;stateid&gt;CA2&lt;/stateid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;zipid&gt;22222&lt;/zipid&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/article&gt;<br />
&lt;/content&gt;</code><hr />
</div>Here is how I'm loading the xml:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">function loadXML(loaded) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (loaded) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlNode = this.firstChild;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; last4id = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnameid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lnameid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expdate = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addressid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cityid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stateid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zipid = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total = xmlNode.childNodes.length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (i=0; i&lt;total; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; last4id[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fnameid[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lnameid[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expdate[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addressid[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cityid[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stateid[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zipid[i] = xmlNode.childNodes[i].childNodes[7].firstChild.nodeValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextFrame();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(&quot;Can not load edit card xml&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
xmlData = new XML();<br />
xmlData.ignoreWhite = true;<br />
xmlData.onLoad = loadXML;<br />
xmlData.load(&quot;edittest.xml&quot;);</code><hr />
</div>And on the next frame I'm running a for loop:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">for (i=1; i&lt;total; ++i) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc.info_mc.duplicateMovieClip(&quot;info_mc&quot;+i, i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i]._y = item_mc[&quot;info_mc&quot;+i]._height+15;<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].fname.text = fnameid[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].lname.text = lnameid[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].cdigits.text = last4id[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].cdate.text = expdate[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].caddress.text = addressid[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].ccity.text = cityid[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].cstate.text = stateid[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; item_mc[&quot;info_mc&quot;+i].czip.text = zipid[i];<br />
}</code><hr />
</div>I'm wondering if I'm missing an initial load step or that I'm not splitting the array correctly.<br />
<br />
Any and all help is greatly appreciated and thank you for taking a moment to look at this post.<br />
<br />
Thanks,<br />
Kumba</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=35">ActionScript 2.0</category>
			<dc:creator>kumba</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273356</guid>
		</item>
		<item>
			<title>Sending php variables to a swf</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273355&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 17:50:04 GMT</pubDate>
			<description><![CDATA[Hi I want to pull a variable sent from an html form to a PHP file and then print it in a swf. 
I'm kind of a newbie in AS3 any help will be really...]]></description>
			<content:encoded><![CDATA[<div>Hi I want to pull a variable sent from an html form to a PHP file and then print it in a swf.<br />
I'm kind of a newbie in AS3 any help will be really appreciated.<br />
Please help!!!!</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>tzoveck</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273355</guid>
		</item>
		<item>
			<title>Variable differentiation</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273354&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 17:47:07 GMT</pubDate>
			<description><![CDATA[Can anyone tell me the difference between an 'event variable and a 'this variable?  They exist as two separate branches in the debugger variable...]]></description>
			<content:encoded><![CDATA[<div>Can anyone tell me the difference between an 'event variable and a 'this variable?  They exist as two separate branches in the debugger variable tree.  Do they have essential differences?</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>fortrium</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273354</guid>
		</item>
		<item>
			<title><![CDATA[[AS2] How can I get hit detection to work on all of the boundaries in my game?]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273353&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 16:59:43 GMT</pubDate>
			<description>I am currently in the process of creating a variation of Pong. This version of Pong has a total of 8 walls acting as boundaries in the corners (e.g....</description>
			<content:encoded><![CDATA[<div>I am currently in the process of creating a variation of Pong. This version of Pong has a total of 8 walls acting as boundaries in the corners (e.g. each corner has a vertical and horizontal wall). I'd like for my game to work so that if any of the pong balls hit these walls, then it bounces off in the opposite direction. I have the coding working fine for one corner (the top left) of the game, but when I use the code on the other corners (where I believe that it should work as it did in the corner that the coding worked for), nothing happens and the ball passes through these corners. The coding for the horizontal wall in the top left corner is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:244px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">onClipEvent</span><span style="color: #000000;">&#40;</span>enterFrame<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">this</span>.<span style="color: #993300;">hitTest</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span>.<span style="color: #000000;">yspeed</span>*=<span style="color: #000000;">&#40;</span>-<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span>.<span style="color: #993300;">_y</span>=<span style="color: #993300;">this</span>.<span style="color: #993300;">_y</span>+<span style="color: #993300;">this</span>.<span style="color: #993300;">_height</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">this</span>.<span style="color: #993300;">hitTest</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span>.<span style="color: #000000;">yspeed</span>*=<span style="color: #000000;">&#40;</span>-<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span>.<span style="color: #993300;">_y</span>=<span style="color: #993300;">this</span>.<span style="color: #993300;">_y</span>+<span style="color: #993300;">this</span>.<span style="color: #993300;">_height</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
And the coding for the vertical wall in the top left corner is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:244px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">onClipEvent</span><span style="color: #000000;">&#40;</span>enterFrame<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">this</span>.<span style="color: #993300;">hitTest</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span>.<span style="color: #000000;">xspeed</span>*=<span style="color: #000000;">&#40;</span>-<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock</span>.<span style="color: #993300;">_x</span>=<span style="color: #993300;">this</span>.<span style="color: #993300;">_x</span>+<span style="color: #993300;">this</span>.<span style="color: #993300;">_width</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">this</span>.<span style="color: #993300;">hitTest</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span>.<span style="color: #000000;">xspeed</span>*=<span style="color: #000000;">&#40;</span>-<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">_root</span>.<span style="color: #000000;">pongblock2</span>.<span style="color: #993300;">_x</span>=<span style="color: #993300;">this</span>.<span style="color: #993300;">_x</span>+<span style="color: #993300;">this</span>.<span style="color: #993300;">_width</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
However, when I use this code on the other walls, the pong balls just pass through them. Any suggestions/ideas why this is happening?<br />
<br />
Any help is appreciated! :D</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=91">Gaming and Game Development</category>
			<dc:creator>APD1993</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273353</guid>
		</item>
		<item>
			<title>Conditional based on the value of the input textField?</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273350&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 14:21:36 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
First of all I must tell you that I'm just starting to learn AS3. I've never worked with Flash other than to do animations using tweens....]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
First of all I must tell you that I'm just starting to learn AS3. I've never worked with Flash other than to do animations using tweens. I'm working on a small  project and I'm stuck because I don't know how to code in AS3. <br />
<br />
This is what I'm trying to put together: A text field where people can input their weight and it there will be 4 outcomes depending on the number they input...e.g. &quot;You are thin&quot;, &quot;You are average&quot;, &quot;You are a little overweight&quot;, &quot;You are obese&quot;. I'm hoping that somebody has any example they can provide that I can modify to do this...<br />
<br />
Thanks in advance...</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>rmedtx</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273350</guid>
		</item>
		<item>
			<title>An ActionScript file can not have more than one externally visible definition?</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273349&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 13:48:57 GMT</pubDate>
			<description><![CDATA[Hey all, 
 
I am still trying to wrap my head around Adobe Flash CS5.5. I have this small error, & it is not changing, no matter how many times I...]]></description>
			<content:encoded><![CDATA[<div>Hey all,<br />
<br />
I am still trying to wrap my head around Adobe Flash CS5.5. I have this small error, &amp; it is not changing, no matter how many times I edit it. The error in CS5.5 says this:<br />
<br />
<b>5006: An ActionScript file can not have more than one externally visible definition: charscore, healthscore</b><br />
<br />
This is the code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package src <br />
{&nbsp;  <br />
&nbsp; &nbsp; import flash.display.*;<br />
&nbsp; &nbsp; &nbsp; &nbsp; import flash.events.*;<br />
&nbsp; &nbsp; &nbsp; &nbsp; import flash.text.*;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //public class Document extends MovieClip<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var charscore:int = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var healthscore:int = 50;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function Document() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; init();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stage.addEventListener(MouseEvent.CLICK, startgame);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function init()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen.addEventListener(MouseEvent.CLICK, onMouseClick);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // set object limits to be same as stage limits for all objects<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; score.text = myScore.toString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen.x = 273.50;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen.y = 201.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onMouseClick(e:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen.x = - 400;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen.y = 195.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen-x = - 400;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start_screen-y = 247.95;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(&quot;start game&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onMouseClick(e:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.x = -13.35;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.y= 11.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onMouseClick(e:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.x = 608.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.y = -261.15;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2-x = - 400;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2-y = 247.95;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(&quot;complete game&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onMouseClick(e:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2.x = 45.20;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2.y = -43.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onMouseClick(e:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2.x = 662.30;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2.y = 188.50;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2-x = -534.05;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loose_screen2-y = 399.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(&quot;loose game&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //function startgame (m:MouseEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //start_screen.x = -300.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //start_screen.y = 197.45;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //trace(&quot;start game&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function onEnterFrame(e:Event):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; scorebox.text = charscore.toString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; health.text = healthscore.toString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (charscore +&quot;and&quot;+ healthscore);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(ladder1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char.touch1 = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;touching ladder&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char.touch1 = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(ladder2))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char.touch2 = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;touching ladder&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char.touch2 = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;NOT touching ladder&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(diamond1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; diamond1.y = -10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got diamond&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(diamond2))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; diamond2.y = -10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got diamond&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(diamond3))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; diamond3.y = -10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got diamond&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(diamond4))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; diamond4.y = -10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got diamond&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Health1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; healthscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Health1.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got health&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Health2))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; healthscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Health2.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got health&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Health3))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; healthscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Health3.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got health&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Health4))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Health4.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;got health&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Monster1))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; charscore += 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace (&quot;hit&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (char.hitTestObject(Door))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.x = -13.35;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; win_screen2.y = 11.00;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //public function CheckHitPC():void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if the char hits this Monster1 reduce health in Document&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if (MovieClip(parent).pc.hitTestObject(this)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //char.health--;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //MovieClip(root).checkBulletHit(this);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // root is the stage of the movieclip which GameMan is related to<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // parent is the level loaded onto the stage in which these NPCs are placed<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>:confused:<br />
<br />
Where am I going wrong? Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>LightningStash</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273349</guid>
		</item>
		<item>
			<title>Can anyone explain the Component Definition feature?</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273348&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 13:24:57 GMT</pubDate>
			<description><![CDATA[Hi everyone. i';m using flash professional CS5. someone mentioned that i could use Component definition feature to achieve what i'm trying to do. 
...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone. i';m using flash professional CS5. someone mentioned that i could use Component definition feature to achieve what i'm trying to do.<br />
<br />
Explained simply, what i'm trying to do right now, is to set a particular property (partType) to a particular value (0) on all instances of a specific library symbol. It uses a class i made (classes.armor.Bodypart  in the class field of properties window) which has that property defined. I eventually plan to have several more symbols using the same class, but each with a unique partType value.<br />
<br />
i rightclicked the symbol in my library and opened the Component definition dialog. I've added a new parameter in the parameters box at the top, with the following values:<br />
<br />
name: partType<br />
variable: partType<br />
value: 0<br />
type: Number (it should be int, but that option isn't available in the dropdown)<br />
<br />
in the class field below the parameters table, i've entered: classes.armor.Bodypart  (the same class that the symbol is linked to)<br />
<br />
<br />
All of the above seems to have no effect at all. Creating an instance of my symbol causes the partType property to still be at the default, nonzero value. so clearly i'm doing something wrong here. am i completely barking up the wrong tree? any advice about this feature is appreciated.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>WarKirby</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273348</guid>
		</item>
		<item>
			<title>Drag horizontally and vertically at specific point</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273347&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 13:12:44 GMT</pubDate>
			<description>Hi, I am trying to create a drag and drop gear-lever effect and need some help please! 
I would like the user to be able to drag the lever to 6...</description>
			<content:encoded><![CDATA[<div>Hi, I am trying to create a drag and drop gear-lever effect and need some help please!<br />
I would like the user to be able to drag the lever to 6 different gears, so initially user drags only horizontally and when the lever hitTests a point along the path s/he can drag both horizontally and vertically. It sounds really easy but I just cant get it working :(<br />
<br />
Any help would be greatly appreciated!</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=35">ActionScript 2.0</category>
			<dc:creator>cathbland</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273347</guid>
		</item>
		<item>
			<title>Statement must appear within on handler error</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273346&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 11:54:49 GMT</pubDate>
			<description><![CDATA[hi guys, 
 
when i am using this code. 
 
*submit.onPress = function(){ 
      if(Title.text!="" && Comments.text !="" && Image.text!=""){ 
       ...]]></description>
			<content:encoded><![CDATA[<div>hi guys,<br />
<br />
when i am using this code.<br />
<br />
<b>submit.onPress = function(){<br />
      if(Title.text!=&quot;&quot; &amp;&amp; Comments.text !=&quot;&quot; &amp;&amp; Image.text!=&quot;&quot;){<br />
        myData.Title = Title.text<br />
        myData.Comments = Comments.text<br />
        myData.Image = Image.text<br />
        myData.sendAndLoad(&quot;save.php&quot;, myData, &quot;POST&quot;)<br />
      }<br />
    }<br />
    stop() </b><br />
its is generating an error mgs...i.e<br />
<br />
<b>**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler<br />
     button.onPress = function(){<br />
<br />
Total ActionScript Errors: 1 	 Reported Errors: 1</b><br />
 <br />
why so please help me...<br />
i am using Macromedia flash 8 which support as2...</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=35">ActionScript 2.0</category>
			<dc:creator>raghunath</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273346</guid>
		</item>
		<item>
			<title>Problem clearing phones memory for Flashlite</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=273345&amp;goto=newpost</link>
			<pubDate>Wed, 16 May 2012 11:49:15 GMT</pubDate>
			<description><![CDATA[Hi everyone, 
 
I've been trying to make a program that randomly plays interactive SWFs for my mobile phone (Flashlite). 
 
You can click on one of...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
I've been trying to make a program that randomly plays interactive SWFs for my mobile phone (Flashlite).<br />
<br />
You can click on one of the random SWFs and it plays then goes back to another SWF that loads a second one. This works fine for about 4 or 5 times, afterwhich it stops working.<br />
<br />
I am guessing that the memory is getting clogged up. Could someone explain how to clear the phones memory after the SWF has finished?<br />
<br />
Here is the script I'm using for the main file that randomly loads SWF files:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:308px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">stop</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #993300;">var</span> movieArray:<span style="color: #993300;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #0000FF;">'template'</span>,<span style="color: #0000FF;">'words ~002'</span>,<span style="color: #0000FF;">'words ~003'</span><span style="color: #000000;">&#93;</span>;
<span style="color: #993300;">var</span> loader:Loader = <span style="color: #993300;">new</span> Loader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; 
<span style="color: #993300;">var</span> <span style="color: #993300;">index</span>:<span style="color: #993300;">int</span> = movieArray.<span style="color: #993300;">length</span> * <span style="color: #993300;">Math</span>.<span style="color: #993300;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #993300;">var</span> <span style="color: #993300;">url</span>:<span style="color: #993300;">String</span> = movieArray<span style="color: #000000;">&#91;</span><span style="color: #993300;">index</span><span style="color: #000000;">&#93;</span> + <span style="color: #0000FF;">'.swf'</span>;
movieArray.<span style="color: #993300;">splice</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">index</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>; <span style="color: #F000F0; font-style: italic;">// this will remove that item from the array</span>
<span style="color: #993300;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"Attempting to load"</span>, <span style="color: #993300;">url</span><span style="color: #000000;">&#41;</span>;&nbsp; loader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">new</span> URLRequest<span style="color: #000000;">&#40;</span><span style="color: #993300;">url</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;&nbsp; 
loader.<span style="color: #000000;">contentLoaderInfo</span>.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>, loaderComplete<span style="color: #000000;">&#41;</span>;
loader.<span style="color: #000000;">contentLoaderInfo</span>.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>IOErrorEvent.<span style="color: #000000;">IO_ERROR</span>, loaderIOError<span style="color: #000000;">&#41;</span>;
addChild<span style="color: #000000;">&#40;</span>loader<span style="color: #000000;">&#41;</span>;
<span style="color: #993300;">function</span> loaderComplete<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span> <span style="color: #000000;">&#123;</span>&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"Successfully loaded"</span>, <span style="color: #993300;">url</span><span style="color: #000000;">&#41;</span>;

<span style="color: #000000;">&#125;</span>
<span style="color: #993300;">function</span> loaderIOError<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:IOErrorEvent<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span> <span style="color: #000000;">&#123;</span>&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993300;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"Failed to load"</span>, <span style="color: #993300;">url</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
<br />
Here is the script I'm using at the end of the random SWF files (to send it back to the main SWF):<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:340px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">var</span> fl_ToLoad_<span style="color: #000000;">3</span>:<span style="color: #993300;">Boolean</span> = <span style="color: #993300;">true</span>;

<span style="color: #993300;">function</span> fl_ClickToLoadUnloadSWF_<span style="color: #000000;">3</span><span style="color: #000000;">&#40;</span>event:MouseEvent<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
<span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span>fl_ToLoad_<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; fl_Loader_<span style="color: #000000;">3</span> = <span style="color: #993300;">new</span> Loader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; fl_Loader_<span style="color: #000000;">3</span>.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">new</span> URLRequest<span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"greetings.swf"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>fl_Loader_<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #993300;">else</span>
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; fl_Loader_<span style="color: #000000;">3</span>.<span style="color: #000000;">unload</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; removeChild<span style="color: #000000;">&#40;</span>fl_Loader_<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; fl_Loader_<span style="color: #000000;">3</span> = <span style="color: #993300;">null</span>;
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">// Toggle whether you want to load or unload the SWF</span>
&nbsp; &nbsp; fl_ToLoad_<span style="color: #000000;">3</span> = !fl_ToLoad_<span style="color: #000000;">3</span>;
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
<br />
<br />
Any help would be really appreciated!!!</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=90">FlashLite / Portable Devices Development</category>
			<dc:creator>nova929</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=273345</guid>
		</item>
	</channel>
</rss>

