<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>Ok... sorry to cause problems, for a start! Thanks for both of your help.

What I've ended up doing is finding out what the numbers in the score are, and then trying to attach them. I'm not going to lie - rarapompom's script utterly baffled me, so I went for something closer to my knowledge level. Unless you feel like explaining your script, that is - I've tried to work it out but it keeps slipping over my head!

say the score on my game is 54 - I firstly divide by 10, then do Math.floor. This gives me the first digit.
I then multiply the first digit by 10 (to get 50) and subtract it from the original score (leaving 4) - this gives me the second digit.

So I have 5 as my value for digit1, and 4 as my value for digit2. How do I then attach these pictures? I want to be able to do something along the lines of root.attachmovieclip(&quot;(digit1).png&quot;). Can anyone help me out with the syntax of how to do this?

Many thanks!</body>
    <body-html>&lt;p&gt;Ok&amp;#8230; sorry to cause problems, for a start! Thanks for both of your help.&lt;/p&gt;
&lt;p&gt;What I&amp;#8217;ve ended up doing is finding out what the numbers in the score are, and then trying to attach them. I&amp;#8217;m not going to lie &amp;#8211; rarapompom&amp;#8217;s script utterly baffled me, so I went for something closer to my knowledge level. Unless you feel like explaining your script, that is &amp;#8211; I&amp;#8217;ve tried to work it out but it keeps slipping over my head!&lt;/p&gt;
&lt;p&gt;say the score on my game is 54 &amp;#8211; I firstly divide by 10, then do Math.floor. This gives me the first digit.&lt;br /&gt;
I then multiply the first digit by 10 (to get 50) and subtract it from the original score (leaving 4) &amp;#8211; this gives me the second digit.&lt;/p&gt;
&lt;p&gt;So I have 5 as my value for digit1, and 4 as my value for digit2. How do I then attach these pictures? I want to be able to do something along the lines of root.attachmovieclip(&amp;#8220;(digit1).png&amp;#8221;). Can anyone help me out with the syntax of how to do this?&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-23T02:50:44-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1487658</id>
    <post-number type="integer">7</post-number>
    <topic-id type="integer">65596</topic-id>
    <updated-at type="datetime">2009-11-23T02:51:23-08:00</updated-at>
    <user-id type="integer">1317847</user-id>
  </post>
  <post>
    <body>You will not get solutions for game designs. The web will provide solutions for low level coding problems though so you should be able to patch various tutorials together to create a game fairly easily. How good that game will be though is a different matter.</body>
    <body-html>&lt;p&gt;You will not get solutions for game designs. The web will provide solutions for low level coding problems though so you should be able to patch various tutorials together to create a game fairly easily. How good that game will be though is a different matter.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-23T00:58:53-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1487609</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">65867</topic-id>
    <updated-at type="datetime">2009-11-23T00:58:53-08:00</updated-at>
    <user-id type="integer">928302</user-id>
  </post>
  <post>
    <body>Man, thanks so much! as always, these forums continue to be probably my most helpful resource when I can't find the answer anywhere else!</body>
    <body-html>&lt;p&gt;Man, thanks so much! as always, these forums continue to be probably my most helpful resource when I can&amp;#8217;t find the answer anywhere else!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T22:30:59-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1487457</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">65852</topic-id>
    <updated-at type="datetime">2009-11-22T22:30:59-08:00</updated-at>
    <user-id type="integer">247708</user-id>
  </post>
  <post>
    <body>bq. so I need to attach code to the second instance of the button on the stage while still having access to the various particle system scripts I have set up (a document class and a class instantiated inside the document class).

What's stopping you giving your animated button an instance name and accessing it through that?

Or using the singleton pattern (or simply making everything static) to provide global access to your particle system?</body>
    <body-html>&lt;blockquote&gt;
&lt;p&gt;so I need to attach code to the second instance of the button on the stage while still having access to the various particle system scripts I have set up (a document class and a class instantiated inside the document class).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What&amp;#8217;s stopping you giving your animated button an instance name and accessing it through that?&lt;/p&gt;
&lt;p&gt;Or using the singleton pattern (or simply making everything static) to provide global access to your particle system?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T22:30:42-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1487456</id>
    <post-number type="integer">30</post-number>
    <topic-id type="integer">65463</topic-id>
    <updated-at type="datetime">2009-11-22T22:30:42-08:00</updated-at>
    <user-id type="integer">46968</user-id>
  </post>
  <post>
    <body>The Sound constructor takes a MovieClip as a parameter. If you don't specify one, the Sound will control all sounds in the Movie. You should probably create an empty MovieClip for each sound if you want to control them independently.</body>
    <body-html>&lt;p&gt;The Sound constructor takes a MovieClip as a parameter. If you don&amp;#8217;t specify one, the Sound will control all sounds in the Movie. You should probably create an empty MovieClip for each sound if you want to control them independently.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T22:22:12-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1487440</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">65938</topic-id>
    <updated-at type="datetime">2009-11-22T22:22:12-08:00</updated-at>
    <user-id type="integer">57306</user-id>
  </post>
  <post>
    <body>Thanks.  Sorry if that's a common problem.</body>
    <body-html>&lt;p&gt;Thanks.  Sorry if that&amp;#8217;s a common problem.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T17:25:27-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1486490</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">65938</topic-id>
    <updated-at type="datetime">2009-11-22T17:25:27-08:00</updated-at>
    <user-id type="integer">296566</user-id>
  </post>
  <post>
    <body>To fix your underscore problem:

LEAVE A BLANK LINE BETWEEN YOUR TEXT AND YOUR OPENING &lt;code&gt;&lt;PRE&gt;&lt;/code&gt; TAG.</body>
    <body-html>&lt;p&gt;To fix your underscore problem:&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;LEAVE&lt;/span&gt; A &lt;span class=&quot;caps&quot;&gt;BLANK&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;LINE&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;BETWEEN&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;YOUR&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;TEXT&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;AND&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;YOUR&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;OPENING&lt;/span&gt; &lt;code&gt;&amp;lt;PRE&amp;gt;&lt;/code&gt; &lt;span class=&quot;caps&quot;&gt;TAG&lt;/span&gt;.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T17:00:32-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1486415</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65938</topic-id>
    <updated-at type="datetime">2009-11-22T17:00:43-08:00</updated-at>
    <user-id type="integer">15656</user-id>
  </post>
  <post>
    <body>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/4/topics/65463?page=2#posts-1484680'&gt;rarapompoms&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;Why not? Maybe you should just tell us exactly what you were doing instead of drip feeding us information.&lt;/p&gt;&lt;/blockquote&gt;

I have a button that animates (moves onto the screen after an intro animation) so I need to attach code to the _second_ instance of the button on the stage while still having access to the various particle system scripts I have set up (a document class and a class instantiated inside the document class).</body>
    <body-html>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/4/topics/65463?page=2#posts-1484680&quot;&gt;rarapompoms&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;Why not? Maybe you should just tell us exactly what you were doing instead of drip feeding us information.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I have a button that animates (moves onto the screen after an intro animation) so I need to attach code to the &lt;em&gt;second&lt;/em&gt; instance of the button on the stage while still having access to the various particle system scripts I have set up (a document class and a class instantiated inside the document class).&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T16:58:09-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1486410</id>
    <post-number type="integer">29</post-number>
    <topic-id type="integer">65463</topic-id>
    <updated-at type="datetime">2009-11-22T16:58:09-08:00</updated-at>
    <user-id type="integer">15656</user-id>
  </post>
  <post>
    <body>Help me sort this out, and I'll credit you as a collaborator (if you want, I can understand if you wouldn't want to be associated with the game in question :P).  The problem I'm having is now one-fold:
1) Turning music off also turns off all sounds, despite the movie clips having nothing in common.  Whereas the music button directly deactivates the background music, the sound button toggles a Boolean that controls whether sounds get attached in the first place.  Thus, the reason they are interfering is a total mystery to me.

Here is the code (I'm up to AS2 now, as soon as possible I shall join all you proper developers in the brave new world that is AS3, polluting its name):

*Music Controlling MovieClip*

&lt;pre&gt;

class MusicOn extends MovieClip
{
	function onLoad()
	{
		_root.backGroundMusic = new Sound();
		_root.backGroundMusic.attachSound(&quot;backgroundloop&quot;);
		if(_global.numTracksPlaying == undefined)
		{
		_global.numTracksPlaying = 0;
		}
		if(_global.musicOff == undefined)
		{
			_global.musicOff = false;
		}
	}
	function onEnterFrame()
	{
		this.onRelease = function()
		{
			if(_global.musicOff == false)
			{
				_global.musicOff = true;
			}else{
				_global.musicOff = false;
			}
		}
		if(_global.musicOff == false)
		{
			this.gotoAndStop(1);
		}else{
			this.gotoAndStop(2);
		}
		if(_global.musicOff == true)
		{
			_root.backGroundMusic.stop();
			_global.numTracksPlaying = 0;
		}else{
			if(_global.numTracksPlaying == 0) //stops tracks overlapping.
			{
			_root.backGroundMusic.start(0, 1000);
			_global.numTracksPlaying +=1;
			}
		}
	}
}
&lt;/pre&gt;
*Sound Controlling MovieClip*

&lt;pre&gt;
class SoundOn extends MovieClip
{
	var soundOff:Boolean;
	function onLoad()
	{
		_root.heroSoundFX = new Sound();
		_root.yellowBeanSoundFX = new Sound();
		_root.greenBeanSoundFX = new Sound();
		_root.mudBeanSoundFX = new Sound();
		_root.iceBeanSoundFX = new Sound();
		_root.whiteBeanSoundFX = new Sound();
		_root.blackBeanSoundFX = new Sound();
		_root.spikeBeanSoundFX = new Sound();
		_root.redBeanSoundFX = new Sound();
		_root.blueBeanSoundFX = new Sound();
		_root.laserBeanSoundFX = new Sound();
	}
	function onEnterFrame()
	{
		this.onRelease = function()
		{
			if(soundOff != true)
			{
				soundOff = true;
				this.gotoAndStop(2);
			}else{
				soundOff = false;
				this.gotoAndStop(1);
			}
		}
	}
}
&lt;/pre&gt;
*Example of how the Sound code works inside the MovieClip*

&lt;pre&gt;
if(_root.soundOn.soundOff != true)//MovieClip instance name is soundOn
		{
		_root.yellowBeanSoundFX.attachSound(&quot;GetYellowbean&quot;);
		_root.yellowBeanSoundFX.start();
		}
&lt;/pre&gt;

Thanks for any help you can give, the last time I posted here you guys got me out of a real dead end.
*EDIT:*Some of the underscores have mysteriously vanished.  Trust me, they were there.</body>
    <body-html>&lt;p&gt;Help me sort this out, and I&amp;#8217;ll credit you as a collaborator (if you want, I can understand if you wouldn&amp;#8217;t want to be associated with the game in question :P).  The problem I&amp;#8217;m having is now one-fold:&lt;br /&gt;
1) Turning music off also turns off all sounds, despite the movie clips having nothing in common.  Whereas the music button directly deactivates the background music, the sound button toggles a Boolean that controls whether sounds get attached in the first place.  Thus, the reason they are interfering is a total mystery to me.&lt;/p&gt;
&lt;p&gt;Here is the code (I&amp;#8217;m up to AS2 now, as soon as possible I shall join all you proper developers in the brave new world that is AS3, polluting its name):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Music Controlling MovieClip&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;

class MusicOn extends MovieClip
{
	function onLoad()
	{
		_root.backGroundMusic = new Sound();
		_root.backGroundMusic.attachSound(&quot;backgroundloop&quot;);
		if(_global.numTracksPlaying == undefined)
		{
		_global.numTracksPlaying = 0;
		}
		if(_global.musicOff == undefined)
		{
			_global.musicOff = false;
		}
	}
	function onEnterFrame()
	{
		this.onRelease = function()
		{
			if(_global.musicOff == false)
			{
				_global.musicOff = true;
			}else{
				_global.musicOff = false;
			}
		}
		if(_global.musicOff == false)
		{
			this.gotoAndStop(1);
		}else{
			this.gotoAndStop(2);
		}
		if(_global.musicOff == true)
		{
			_root.backGroundMusic.stop();
			_global.numTracksPlaying = 0;
		}else{
			if(_global.numTracksPlaying == 0) //stops tracks overlapping.
			{
			_root.backGroundMusic.start(0, 1000);
			_global.numTracksPlaying +=1;
			}
		}
	}
}
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Sound Controlling MovieClip&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
class SoundOn extends MovieClip
{
	var soundOff:Boolean;
	function onLoad()
	{
		_root.heroSoundFX = new Sound();
		_root.yellowBeanSoundFX = new Sound();
		_root.greenBeanSoundFX = new Sound();
		_root.mudBeanSoundFX = new Sound();
		_root.iceBeanSoundFX = new Sound();
		_root.whiteBeanSoundFX = new Sound();
		_root.blackBeanSoundFX = new Sound();
		_root.spikeBeanSoundFX = new Sound();
		_root.redBeanSoundFX = new Sound();
		_root.blueBeanSoundFX = new Sound();
		_root.laserBeanSoundFX = new Sound();
	}
	function onEnterFrame()
	{
		this.onRelease = function()
		{
			if(soundOff != true)
			{
				soundOff = true;
				this.gotoAndStop(2);
			}else{
				soundOff = false;
				this.gotoAndStop(1);
			}
		}
	}
}
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Example of how the Sound code works inside the MovieClip&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
if(_root.soundOn.soundOff != true)//MovieClip instance name is soundOn
		{
		_root.yellowBeanSoundFX.attachSound(&quot;GetYellowbean&quot;);
		_root.yellowBeanSoundFX.start();
		}
&lt;/pre&gt;
&lt;p&gt;Thanks for any help you can give, the last time I posted here you guys got me out of a real dead end.&lt;br /&gt;
&lt;strong&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;/strong&gt;Some of the underscores have mysteriously vanished.  Trust me, they were there.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T16:14:37-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1486286</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65938</topic-id>
    <updated-at type="datetime">2009-11-22T17:26:43-08:00</updated-at>
    <user-id type="integer">296566</user-id>
  </post>
  <post>
    <body>Sweet, thanks! I'll be sure to look into that :)

I've used hosting websites in the past for website development, but I'm not sure that one of those are suitable to be used as an actual server for game content and such. I think I'd rather prefer that form of hosting for the whole project, to prevent sucking up my personal bandwidth, increasing security risks, and the need to really learn a whole new OS. 

I kinda looked through all of the forums I could find here on Kong before choosing this one to post the question in. I figured that this would be the best place to connect with experienced game devs who're likely to have already run into this issue. If there's another forum that would be better suited to that, then for the love of all that is holy, please point the way! :D

Thanks!
Aaron.</body>
    <body-html>&lt;p&gt;Sweet, thanks! I&amp;#8217;ll be sure to look into that :)&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve used hosting websites in the past for website development, but I&amp;#8217;m not sure that one of those are suitable to be used as an actual server for game content and such. I think I&amp;#8217;d rather prefer that form of hosting for the whole project, to prevent sucking up my personal bandwidth, increasing security risks, and the need to really learn a whole new OS.&lt;/p&gt;
&lt;p&gt;I kinda looked through all of the forums I could find here on Kong before choosing this one to post the question in. I figured that this would be the best place to connect with experienced game devs who&amp;#8217;re likely to have already run into this issue. If there&amp;#8217;s another forum that would be better suited to that, then for the love of all that is holy, please point the way! :D&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;
Aaron.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T14:07:58-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485999</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">65617</topic-id>
    <updated-at type="datetime">2009-11-22T14:07:58-08:00</updated-at>
    <user-id type="integer">868112</user-id>
  </post>
  <post>
    <body>Oh it worked now =D Ty =D</body>
    <body-html>&lt;p&gt;Oh it worked now =D Ty =D&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:16:45-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485424</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">65900</topic-id>
    <updated-at type="datetime">2009-11-22T11:16:45-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>...

Classes are automatically compiled in the swf, there is no need to upload the classes too.</body>
    <body-html>&lt;p&gt;&amp;#8230;&lt;/p&gt;
&lt;p&gt;Classes are automatically compiled in the swf, there is no need to upload the classes too.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:12:51-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485405</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65900</topic-id>
    <updated-at type="datetime">2009-11-22T11:12:51-08:00</updated-at>
    <user-id type="integer">255165</user-id>
  </post>
  <post>
    <body>Hi!
I am making a game with 2 .as files. I want to upload a test version on www.megaswf.com, but how? I put all the files in a .zip file and try to upload them, but it stands that only .swf's is allowed... How to upload a .swf that use classes?!
Thanks!</body>
    <body-html>&lt;p&gt;Hi!&lt;br /&gt;
I am making a game with 2 .as files. I want to upload a test version on &lt;a href=&quot;http://www.megaswf.com&quot;&gt;www.megaswf.com&lt;/a&gt;, but how? I put all the files in a .zip file and try to upload them, but it stands that only .swf&amp;#8217;s is allowed&amp;#8230; How to upload a .swf that use classes?!&lt;br /&gt;
Thanks!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T11:01:42-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485377</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65900</topic-id>
    <updated-at type="datetime">2009-11-22T11:01:42-08:00</updated-at>
    <user-id type="integer">681046</user-id>
  </post>
  <post>
    <body>I'm not sure what your problem was either. You had a function in your document class and a method of an object in the document class, where is your button such that it can't access them? Could you not have added an event listener in the document class that called these functions? Why does the button being animated stop it being accessed?</body>
    <body-html>&lt;p&gt;I&amp;#8217;m not sure what your problem was either. You had a function in your document class and a method of an object in the document class, where is your button such that it can&amp;#8217;t access them? Could you not have added an event listener in the document class that called these functions? Why does the button being animated stop it being accessed?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T10:33:14-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485315</id>
    <post-number type="integer">28</post-number>
    <topic-id type="integer">65463</topic-id>
    <updated-at type="datetime">2009-11-22T10:35:08-08:00</updated-at>
    <user-id type="integer">2340566</user-id>
  </post>
  <post>
    <body>Clear the onEnterFrame function on frame 150 using a timeline script.  onEnterFrame=null maybe, or onEnterFrame=function{}.  

Or poll for the _currentFrame property
&lt;pre&gt;
function onEnterFrame=function {
  if(!_currentFrame&gt;=150)
 {
    //do somecode.
}
//else it does nothing
}
&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;Clear the onEnterFrame function on frame 150 using a timeline script.  onEnterFrame=null maybe, or onEnterFrame=function{}.&lt;/p&gt;
&lt;p&gt;Or poll for the &lt;em&gt;currentFrame property&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
function onEnterFrame=function {&lt;br /&gt;
  if(!&lt;/em&gt;currentFrame&amp;gt;=150)&lt;br /&gt;
 {&lt;br /&gt;
    //do somecode.&lt;br /&gt;
}&lt;br /&gt;
//else it does nothing&lt;br /&gt;
}&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T10:31:26-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485310</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65882</topic-id>
    <updated-at type="datetime">2009-11-22T10:31:26-08:00</updated-at>
    <user-id type="integer">1641706</user-id>
  </post>
  <post>
    <body>I've used &quot;Project Darkstar&quot;:http://www.projectdarkstar.org before at it seems to work quite well. It's a free open source java server that has several &quot;AS3&quot;:http://code.google.com/p/darkstar-as3/ &quot;APIs&quot;:http://yadaa.riaforge.org/ . For websites/hosts etc I have no idea, I think you might be better off asking in a webhosting or networking forum if you want a serious answer. It's pretty much all the same regardless of what the client is written in.</body>
    <body-html>&lt;p&gt;I&amp;#8217;ve used &lt;a href=&quot;http://www.projectdarkstar.org&quot;&gt;Project Darkstar&lt;/a&gt; before at it seems to work quite well. It&amp;#8217;s a free open source java server that has several &lt;a href=&quot;http://code.google.com/p/darkstar-as3/&quot;&gt;AS3&lt;/a&gt; &lt;a href=&quot;http://yadaa.riaforge.org/&quot;&gt;APIs&lt;/a&gt; . For websites/hosts etc I have no idea, I think you might be better off asking in a webhosting or networking forum if you want a serious answer. It&amp;#8217;s pretty much all the same regardless of what the client is written in.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T10:07:11-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485247</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">65617</topic-id>
    <updated-at type="datetime">2009-11-22T10:07:11-08:00</updated-at>
    <user-id type="integer">717468</user-id>
  </post>
  <post>
    <body>Really? Nobody has any thoughts or suggestions? &gt;&lt;

I actually have a decent level of programming experience and have exposed myself to as much of the software that I figured might be helpful as I could... but I'm just not sure what the next step is. Really just looking for host links, tutorials, or any other info that might be helpful in learning what I need to know.

Please help if you can!

Thanks again,
Aaron.</body>
    <body-html>&lt;p&gt;Really? Nobody has any thoughts or suggestions? &amp;gt;&amp;lt;&lt;/p&gt;
&lt;p&gt;I actually have a decent level of programming experience and have exposed myself to as much of the software that I figured might be helpful as I could&amp;#8230; but I&amp;#8217;m just not sure what the next step is. Really just looking for host links, tutorials, or any other info that might be helpful in learning what I need to know.&lt;/p&gt;
&lt;p&gt;Please help if you can!&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;br /&gt;
Aaron.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T09:49:13-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485174</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65617</topic-id>
    <updated-at type="datetime">2009-11-22T09:49:13-08:00</updated-at>
    <user-id type="integer">868112</user-id>
  </post>
  <post>
    <body>will saving to a local object mess up the score submit or something?!</body>
    <body-html>&lt;p&gt;will saving to a local object mess up the score submit or something?!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T09:33:50-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485117</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">65890</topic-id>
    <updated-at type="datetime">2009-11-22T09:33:50-08:00</updated-at>
    <user-id type="integer">1985460</user-id>
  </post>
  <post>
    <body>So I can connect to kongservices and send in a score once, but it seems at the end of the game and same code, I cant send in the updated highscore?! what gives? Anyone had a problem like this?!</body>
    <body-html>&lt;p&gt;So I can connect to kongservices and send in a score once, but it seems at the end of the game and same code, I cant send in the updated highscore?! what gives? Anyone had a problem like this?!&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T09:27:10-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1485089</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65890</topic-id>
    <updated-at type="datetime">2009-11-22T09:27:10-08:00</updated-at>
    <user-id type="integer">1985460</user-id>
  </post>
  <post>
    <body>&lt;h6&gt;flashdevelop...</body>
    <body-html>&lt;h6&gt;flashdevelop&amp;#8230;</body-html>
    <created-at type="datetime">2009-11-22T08:04:42-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484878</id>
    <post-number type="integer">34</post-number>
    <topic-id type="integer">65382</topic-id>
    <updated-at type="datetime">2009-11-22T08:04:42-08:00</updated-at>
    <user-id type="integer">2455569</user-id>
  </post>
  <post>
    <body>My basic game is a series of click your way through questions. So the timer should start at frame 72, and end at frame 150. 

&lt;br&gt; 
start_time = getTimer();
countdown = 7200000;
onEnterFrame = function () {
	elapsed_time = getTimer()-start_time;
	_root.count.text = time_to_string(elapsed_time);
	_root.count_down.text = time_to_string(_root.countdown-elapsed_time);
};
function time_to_string(time_to_convert) {
	elapsed_hours = Math.floor(time_to_convert/3600000);
	remaining = time_to_convert-(elapsed_hours*3600000);
	elapsed_minutes = Math.floor(remaining/60000);
	remaining = remaining-(elapsed_minutes*60000);
	elapsed_seconds = Math.floor(remaining/1000);
	remaining = remaining-(elapsed_seconds*1000);
	elapsed_fs = Math.floor(remaining/10);
	if (elapsed_hours&lt;10) {
		hours = &quot;0&quot;+elapsed_hours.toString();
	} else {
		hours = elapsed_hours.toString();
	}
	if (elapsed_minutes&lt;10) {
		minutes = &quot;0&quot;+elapsed_minutes.toString();
	} else {
		minutes = elapsed_minutes.toString();
	}
	if (elapsed_seconds&lt;10) {
		seconds = &quot;0&quot;+elapsed_seconds.toString();
	} else {
		seconds = elapsed_seconds.toString();
	}
	if (elapsed_fs&lt;10) {
		hundredths = &quot;0&quot;+elapsed_fs.toString();
	} else {
		hundredths = elapsed_fs.toString();
	}
	return hours+&quot;:&quot;+minutes+&quot;:&quot;+seconds+&quot;:&quot;+hundredths;
}
&lt;br/&gt;

It starts, but i dont know how i can get it to stop on a certain frame?</body>
    <body-html>&lt;p&gt;My basic game is a series of click your way through questions. So the timer should start at frame 72, and end at frame 150.&lt;/p&gt;
&lt;p&gt;&lt;br&gt; &lt;br /&gt;
start_time = getTimer();&lt;br /&gt;
countdown = 7200000;&lt;br /&gt;
onEnterFrame = function () {&lt;br /&gt;
	elapsed_time = getTimer()-start_time;&lt;br /&gt;
	&lt;em&gt;root.count.text = time&lt;/em&gt;to_string(elapsed_time);&lt;br /&gt;
	&lt;em&gt;root.count&lt;/em&gt;down.text = time_to_string(&lt;em&gt;root.countdown-elapsed&lt;/em&gt;time);&lt;br /&gt;
};&lt;br /&gt;
function time_to_string(time_to_convert) {&lt;br /&gt;
	elapsed_hours = Math.floor(time_to_convert/3600000);&lt;br /&gt;
	remaining = time_to_convert-(elapsed_hours*3600000);&lt;br /&gt;
	elapsed_minutes = Math.floor(remaining/60000);&lt;br /&gt;
	remaining = remaining-(elapsed_minutes*60000);&lt;br /&gt;
	elapsed_seconds = Math.floor(remaining/1000);&lt;br /&gt;
	remaining = remaining-(elapsed_seconds*1000);&lt;br /&gt;
	elapsed_fs = Math.floor(remaining/10);&lt;br /&gt;
	if (elapsed_hours&amp;lt;10) {&lt;br /&gt;
		hours = &amp;quot;0&amp;quot;+elapsed_hours.toString();&lt;br /&gt;
	} else {&lt;br /&gt;
		hours = elapsed_hours.toString();&lt;br /&gt;
	}&lt;br /&gt;
	if (elapsed_minutes&amp;lt;10) {&lt;br /&gt;
		minutes = &amp;quot;0&amp;quot;+elapsed_minutes.toString();&lt;br /&gt;
	} else {&lt;br /&gt;
		minutes = elapsed_minutes.toString();&lt;br /&gt;
	}&lt;br /&gt;
	if (elapsed_seconds&amp;lt;10) {&lt;br /&gt;
		seconds = &amp;quot;0&amp;quot;+elapsed_seconds.toString();&lt;br /&gt;
	} else {&lt;br /&gt;
		seconds = elapsed_seconds.toString();&lt;br /&gt;
	}&lt;br /&gt;
	if (elapsed_fs&amp;lt;10) {&lt;br /&gt;
		hundredths = &amp;quot;0&amp;quot;+elapsed_fs.toString();&lt;br /&gt;
	} else {&lt;br /&gt;
		hundredths = elapsed_fs.toString();&lt;br /&gt;
	}&lt;br /&gt;
	return hours+&amp;quot;:&amp;#8220;&lt;ins&gt;minutes&lt;/ins&gt;&amp;#8221;:&amp;#8220;&lt;ins&gt;seconds&lt;/ins&gt;&amp;#8221;:&amp;quot;+hundredths;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;It starts, but i dont know how i can get it to stop on a certain frame?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T08:04:01-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484876</id>
    <post-number type="integer">1</post-number>
    <topic-id type="integer">65882</topic-id>
    <updated-at type="datetime">2009-11-22T08:04:01-08:00</updated-at>
    <user-id type="integer">852667</user-id>
  </post>
  <post>
    <body>thanks Moonkey, this seems to work for most moviclips,
but it still gives problems fo movieclips with other movieclips in it.
I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.
when I reference a movieclip instance (by it's instance name) that's not created dynamically (but placed in an other movieclip in flash).

When I make this parent movieclip then &quot;export in first frame&quot; (just to test), 
the game runs, but the only thing visible is this movieclip, nothing else. (it seems the rest is still there, just not visible).</body>
    <body-html>&lt;p&gt;thanks Moonkey, this seems to work for most moviclips,&lt;br /&gt;
but it still gives problems fo movieclips with other movieclips in it.&lt;br /&gt;
I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;br /&gt;
when I reference a movieclip instance (by it&amp;#8217;s instance name) that&amp;#8217;s not created dynamically (but placed in an other movieclip in flash).&lt;/p&gt;
&lt;p&gt;When I make this parent movieclip then &amp;#8220;export in first frame&amp;#8221; (just to test), &lt;br /&gt;
the game runs, but the only thing visible is this movieclip, nothing else. (it seems the rest is still there, just not visible).&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T07:57:29-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484863</id>
    <post-number type="integer">33</post-number>
    <topic-id type="integer">65382</topic-id>
    <updated-at type="datetime">2009-11-22T07:57:29-08:00</updated-at>
    <user-id type="integer">951239</user-id>
  </post>
  <post>
    <body>Crap got another problem

I have a frame that checks to see if retry is true. It will only check on the first frame that the retry checking code is in. What is mean is I have a 5 frame long thing code checking if retry is true code and the only time it checks is on the first frame. How can I make it so the retry checking code runs each time not just on the first frame. If you dont understand I will clarafy.</body>
    <body-html>&lt;p&gt;Crap got another problem&lt;/p&gt;
&lt;p&gt;I have a frame that checks to see if retry is true. It will only check on the first frame that the retry checking code is in. What is mean is I have a 5 frame long thing code checking if retry is true code and the only time it checks is on the first frame. How can I make it so the retry checking code runs each time not just on the first frame. If you dont understand I will clarafy.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T07:08:26-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484740</id>
    <post-number type="integer">33</post-number>
    <topic-id type="integer">65269</topic-id>
    <updated-at type="datetime">2009-11-22T07:08:26-08:00</updated-at>
    <user-id type="integer">500316</user-id>
  </post>
  <post>
    <body>Why not? Maybe you should just tell us exactly what you were doing instead of drip feeding us information.</body>
    <body-html>&lt;p&gt;Why not? Maybe you should just tell us exactly what you were doing instead of drip feeding us information.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T06:09:45-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484680</id>
    <post-number type="integer">27</post-number>
    <topic-id type="integer">65463</topic-id>
    <updated-at type="datetime">2009-11-22T06:09:45-08:00</updated-at>
    <user-id type="integer">2431595</user-id>
  </post>
  <post>
    <body>shame. if anyone does have a solution though, feel free to post it.</body>
    <body-html>&lt;p&gt;shame. if anyone does have a solution though, feel free to post it.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-22T06:01:00-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1484664</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">65867</topic-id>
    <updated-at type="datetime">2009-11-22T06:01:00-08:00</updated-at>
    <user-id type="integer">34145</user-id>
  </post>
</posts>
