<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/1/topics/64143?page=1#posts-1445517'&gt;killertrainer2&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;If you ban me for this your violating my first ammendmant right to free speach!&lt;/p&gt;&lt;/blockquote&gt;

you have no rights on this website. this is priviate property owned by emily and jim greer, they do not have to allow you ANY rights on their servers.</body>
    <body-html>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/1/topics/64143?page=1#posts-1445517&quot;&gt;killertrainer2&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br&gt;&lt;p&gt;If you ban me for this your violating my first ammendmant right to free speach!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;you have no rights on this website. this is priviate property owned by emily and jim greer, they do not have to allow you &lt;span class=&quot;caps&quot;&gt;ANY&lt;/span&gt; rights on their servers.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-09T13:45: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">1</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1445576</id>
    <post-number type="integer">17</post-number>
    <topic-id type="integer">64143</topic-id>
    <updated-at type="datetime">2009-11-09T13:45:42-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>you should probably just move it instead of making a new movieclip - it's easier on memory since it's not deleted until the computer almost runs out of memory (there's a thread on this somewhere in here)</body>
    <body-html>&lt;p&gt;you should probably just move it instead of making a new movieclip &amp;#8211; it&amp;#8217;s easier on memory since it&amp;#8217;s not deleted until the computer almost runs out of memory (there&amp;#8217;s a thread on this somewhere in here)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T23:54:06-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1441209</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">63927</topic-id>
    <updated-at type="datetime">2009-11-07T23:54:06-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>if you're referring to my post - i haven't tested anything, i'm just saying that an error _should_ be thrown since splice returns an array and not anything related to a sprite</body>
    <body-html>&lt;p&gt;if you&amp;#8217;re referring to my post &amp;#8211; i haven&amp;#8217;t tested anything, i&amp;#8217;m just saying that an error &lt;em&gt;should&lt;/em&gt; be thrown since splice returns an array and not anything related to a sprite&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T22:05:35-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">1441004</id>
    <post-number type="integer">29</post-number>
    <topic-id type="integer">63750</topic-id>
    <updated-at type="datetime">2009-11-07T22:05:35-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>unknown, some things you can't &quot;hack,&quot; not in the sense you mean anyway. there is no outside way to get to the badges.json; it's all internal. other thing (your muted users, /accounts/#{user}/muted_users.json, however, is locked, but not blocked)</body>
    <body-html>&lt;p&gt;unknown, some things you can&amp;#8217;t &amp;#8220;hack,&amp;#8221; not in the sense you mean anyway. there is no outside way to get to the badges.json; it&amp;#8217;s all internal. other thing (your muted users, /accounts/#{user}/muted_users.json, however, is locked, but not blocked)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T21:54: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">1440960</id>
    <post-number type="integer">13</post-number>
    <topic-id type="integer">58167</topic-id>
    <updated-at type="datetime">2009-11-07T21:54:37-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>odd. cool, but odd. and understandable since [] is defined and not a null-type value (0 on it's own, however, would be and switched for false)

try typing it as a Sprite, it should throw an error instead</body>
    <body-html>&lt;p&gt;odd. cool, but odd. and understandable since [] is defined and not a null-type value (0 on it&amp;#8217;s own, however, would be and switched for false)&lt;/p&gt;
&lt;p&gt;try typing it as a Sprite, it should throw an error instead&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T21:40:07-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440918</id>
    <post-number type="integer">27</post-number>
    <topic-id type="integer">63750</topic-id>
    <updated-at type="datetime">2009-11-07T21:41:00-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>that's because it's addChild not attachChild - i had the wrong name, and as i said, it had been a while since i dealt with AS at all:

&lt;pre&gt;public function constructor(type:int) {
	var Image:Class = getDefinitionByName(&quot;image&quot;+type)
	var image:Image = new Image();
	addChild(image);
	/* the rest of your code */
} &lt;/pre&gt;

your images need to have a class though</body>
    <body-html>&lt;p&gt;that&amp;#8217;s because it&amp;#8217;s addChild not attachChild &amp;#8211; i had the wrong name, and as i said, it had been a while since i dealt with AS at all:&lt;/p&gt;
&lt;pre&gt;public function constructor(type:int) {
	var Image:Class = getDefinitionByName(&quot;image&quot;+type)
	var image:Image = new Image();
	addChild(image);
	/* the rest of your code */
} &lt;/pre&gt;
&lt;p&gt;your images need to have a class though&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T21:31:36-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440898</id>
    <post-number type="integer">10</post-number>
    <topic-id type="integer">63876</topic-id>
    <updated-at type="datetime">2009-11-07T21:32:14-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>well, you can have the images in the library, then in the constructor pass a &quot;type&quot; parameter then attach the related image:

&lt;pre&gt;public function constructor(type:int) {
	var image:Sprite = attachChild(&quot;image&quot;+type);
	/* the rest of your code */
} &lt;/pre&gt;

however, it's been some time since i've messed with AS in general so i'm not sure if that will work properly (if not, there is another function that will work, or combination of)</body>
    <body-html>&lt;p&gt;well, you can have the images in the library, then in the constructor pass a &amp;#8220;type&amp;#8221; parameter then attach the related image:&lt;/p&gt;
&lt;pre&gt;public function constructor(type:int) {
	var image:Sprite = attachChild(&quot;image&quot;+type);
	/* the rest of your code */
} &lt;/pre&gt;
&lt;p&gt;however, it&amp;#8217;s been some time since i&amp;#8217;ve messed with AS in general so i&amp;#8217;m not sure if that will work properly (if not, there is another function that will work, or combination of)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T19:34: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">1440355</id>
    <post-number type="integer">8</post-number>
    <topic-id type="integer">63876</topic-id>
    <updated-at type="datetime">2009-11-07T19:34:01-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>i would like to point out that on those pages the screen shot is of the old flash chat, which can no longer receive messages (everything else works, including sending, and logging in did a few months back... i still have a copy of it that's included into the chat exe i had made)</body>
    <body-html>&lt;p&gt;i would like to point out that on those pages the screen shot is of the old flash chat, which can no longer receive messages (everything else works, including sending, and logging in did a few months back&amp;#8230; i still have a copy of it that&amp;#8217;s included into the chat exe i had made)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:08:22-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">1440114</id>
    <post-number type="integer">4</post-number>
    <topic-id type="integer">63537</topic-id>
    <updated-at type="datetime">2009-11-07T18:08:22-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>would be interesting if you were to duplicate this for the games page (http://www.kongregate.com/games) which i expect the json file already exists, since http://www.kongregate.com/games.js and http://www.kongregate.com/games are the same exact page but http://www.kongregate.com/games.json returns a supposed 404 (you do this on other pages that do in fact exist (obvious from your calls to the pages from the holodeck and returning a value, to the ajax script), but the client doesn't have proper permissions)</body>
    <body-html>&lt;p&gt;would be interesting if you were to duplicate this for the games page (&lt;a href=&quot;http://www.kongregate.com/games&quot;&gt;http://www.kongregate.com/games&lt;/a&gt;) which i expect the json file already exists, since &lt;a href=&quot;http://www.kongregate.com/games.js&quot;&gt;http://www.kongregate.com/games.js&lt;/a&gt; and &lt;a href=&quot;http://www.kongregate.com/games&quot;&gt;http://www.kongregate.com/games&lt;/a&gt; are the same exact page but &lt;a href=&quot;http://www.kongregate.com/games.json&quot;&gt;http://www.kongregate.com/games.json&lt;/a&gt; returns a supposed 404 (you do this on other pages that do in fact exist (obvious from your calls to the pages from the holodeck and returning a value, to the ajax script), but the client doesn&amp;#8217;t have proper permissions)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T18:04:08-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440098</id>
    <post-number type="integer">11</post-number>
    <topic-id type="integer">58167</topic-id>
    <updated-at type="datetime">2009-11-07T18:04:08-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>i would assume it is a document class, you just need to export everything to frame 2 and move there after the game is loaded (which would be significantly better than AS2's 3 frame preloader, though a little harder to create if you're not used to it)</body>
    <body-html>&lt;p&gt;i would assume it is a document class, you just need to export everything to frame 2 and move there after the game is loaded (which would be significantly better than AS2&amp;#8217;s 3 frame preloader, though a little harder to create if you&amp;#8217;re not used to it)&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T17:51: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">1440057</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">63867</topic-id>
    <updated-at type="datetime">2009-11-07T17:51:29-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>yes, it has been a theme in the past, contest 3 or 4 i think</body>
    <body-html>&lt;p&gt;yes, it has been a theme in the past, contest 3 or 4 i think&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T17:48: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">1440045</id>
    <post-number type="integer">5</post-number>
    <topic-id type="integer">63769</topic-id>
    <updated-at type="datetime">2009-11-07T17:48:42-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>why do you need multiple &lt;code&gt;MovieClip&lt;/code&gt;s to be associated with a single class?
can you not create other classes that extend your main class, or use a single &lt;code&gt;MovieClip&lt;/code&gt;?</body>
    <body-html>&lt;p&gt;why do you need multiple &lt;code&gt;MovieClip&lt;/code&gt;s to be associated with a single class?&lt;br /&gt;
can you not create other classes that extend your main class, or use a single &lt;code&gt;MovieClip&lt;/code&gt;?&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T17:47:23-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">1440041</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">63876</topic-id>
    <updated-at type="datetime">2009-11-07T17:47:23-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>for mouse movement - just check it's x/y positions every frame/&lt;code&gt;TimerEvent&lt;/code&gt;
for the left click, in AS2 you can use a default event function, &lt;code&gt;onMouseDown&lt;/code&gt; i think, or use &lt;code&gt;if (Key.isDown(1)) { /* your code here */ }&lt;/code&gt; or set up a listener for it on the &lt;code&gt;Mouse&lt;/code&gt; object; in AS3 you need to set up a listener for it

&lt;a href=&quot;http://www.kongregate.com/forums/4/topics/39889&quot;&gt;Proper Code Formatting Guide&lt;/a&gt;.
&lt;a href=&quot;http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html&quot;&gt;Adobe AS2 LiveDocs&lt;/a&gt;.
&lt;a href=&quot;http://help.adobe.com/en_US/AS3LCR/Flash_10.0/&quot;&gt;Adobe AS3 LiveDocs&lt;/a&gt;.</body>
    <body-html>&lt;p&gt;for mouse movement &amp;#8211; just check it&amp;#8217;s x/y positions every frame/&lt;code&gt;TimerEvent&lt;/code&gt;&lt;br /&gt;
for the left click, in AS2 you can use a default event function, &lt;code&gt;onMouseDown&lt;/code&gt; i think, or use &lt;code&gt;if (Key.isDown(1)) { /* your code here */ }&lt;/code&gt; or set up a listener for it on the &lt;code&gt;Mouse&lt;/code&gt; object; in AS3 you need to set up a listener for it&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kongregate.com/forums/4/topics/39889&quot;&gt;Proper Code Formatting Guide&lt;/a&gt;.&lt;br /&gt;
&lt;a href=&quot;http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html&quot;&gt;Adobe AS2 LiveDocs&lt;/a&gt;.&lt;br /&gt;
&lt;a href=&quot;http://help.adobe.com/en_US/AS3LCR/Flash_10.0/&quot;&gt;Adobe AS3 LiveDocs&lt;/a&gt;.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-11-07T17:42:07-08:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1440019</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">63875</topic-id>
    <updated-at type="datetime">2009-11-07T17:42:07-08:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>it is possible to have run-time shared libraries. i, however, don't know how to do this; but there is sure to be some tutorials on google, or someoen else here will know how</body>
    <body-html>&lt;p&gt;it is possible to have run-time shared libraries. i, however, don&amp;#8217;t know how to do this; but there is sure to be some tutorials on google, or someoen else here will know how&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-13T12:43:15-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1367493</id>
    <post-number type="integer">2</post-number>
    <topic-id type="integer">60624</topic-id>
    <updated-at type="datetime">2009-10-13T12:43:15-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/4/topics/59824?page=2#posts-1366393'&gt;Jabor&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;
&lt;p&gt;It&amp;#8217;s as dynamic as it needs to be. It&amp;#8217;s not like you&amp;#8217;re going to be changing what beep you want to hear on a whim &amp;#8211; the end user can just make up a .wav file that they want to play, and it &lt;em&gt;just works&lt;/em&gt;. No fluffing with the sound generator to try and produce the exact output you want.&lt;/p&gt;&lt;/blockquote&gt;
my goal is 100% transparency, but modifiable, they copy and paste the script and it just works, without them needing to have a sound file in a particular location.

&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href='/forums/4/topics/59824?page=2#posts-1366393'&gt;Jabor&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;
&lt;p&gt;I don&amp;#8217;t see the need to try and bundle a sound generator with this when you can just as easily decouple the sound generation from the actual playback-when-something-happens.&lt;/p&gt;&lt;/blockquote&gt;
sorry, i don't really understand what you mean

&lt;span class=&quot;post author edit&quot;&gt;&lt;a class=&quot;utility&quot;&gt;EDIT:&lt;/a&gt;&lt;/span&gt;
(in response to the below post) probably, jabor, but this will be a learning experience for AS3 as well, and i need that</body>
    <body-html>&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/4/topics/59824?page=2#posts-1366393&quot;&gt;Jabor&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br /&gt;
&lt;p&gt;It&amp;#8217;s as dynamic as it needs to be. It&amp;#8217;s not like you&amp;#8217;re going to be changing what beep you want to hear on a whim &amp;#8211; the end user can just make up a .wav file that they want to play, and it &lt;em&gt;just works&lt;/em&gt;. No fluffing with the sound generator to try and produce the exact output you want.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;my goal is 100% transparency, but modifiable, they copy and paste the script and it just works, without them needing to have a sound file in a particular location.&lt;/p&gt;
&lt;blockquote&gt;&lt;cite&gt;Originally posted by &lt;b&gt;&lt;a href=&quot;/forums/4/topics/59824?page=2#posts-1366393&quot;&gt;Jabor&lt;/a&gt;:&lt;/b&gt;&lt;/cite&gt;&lt;br /&gt;
&lt;p&gt;I don&amp;#8217;t see the need to try and bundle a sound generator with this when you can just as easily decouple the sound generation from the actual playback-when-something-happens.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;sorry, i don&amp;#8217;t really understand what you mean&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;post author edit&quot;&gt;&lt;a class=&quot;utility&quot;&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
(in response to the below post) probably, jabor, but this will be a learning experience for AS3 as well, and i need that&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-12T19:35:42-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1366438</id>
    <post-number type="integer">39</post-number>
    <topic-id type="integer">59824</topic-id>
    <updated-at type="datetime">2009-10-13T12:32:26-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>that's not remotely dynamic, this is the start (not remotely near finished) of what will be the AS3 swf to play sounds (every bit of it will be editable, as far as sound creation goes; and i will probably wind up coming here for help a couple times since AS3 isn't my thing due to lack of CSx and funding for it)

&lt;pre&gt;package {
	import flash.display.*;
	import flash.events.*;
	import flash.media.*;

	public class DynamicSound extends Sprite {
		private var sound:Sound;
		private var soundChannel:SoundChannel;
		private var harmonics:Array = [0.5, 0.25, 0.125, 0.0625, 0.03125, 0.03125];
		private var _playing:Boolean = false;
		
		public function DynamicSound():void {
			sound = new Sound();
			sound.addEventListener(SampleDataEvent.SAMPLE_DATA, onCallback);
		}
		
		public function play():void {
		if (_playing) {
			soundChannel.stop();
		}
			soundChannel = sound.play();
			_playing = true;
		}
		
		public function get position():Number {
			return _playing ? soundChannel.position : 0;
		}
		
		public function get playing():Boolean {
			return _playing;
		}
		
		public function set playing(a:Boolean):void {
		}
		
		public function stop():void {
			soundChannel.stop();
			_playing = false;
		}
		
		private function onCallback(e:SampleDataEvent):void {
			var amplitude:Number = 0;
			for (var i:int = 0; i &lt; 8192; i++) {
				for(var i:int = 0; i &lt; harmonics.length; i++) {
					amplitude += harmonics[i] * Math.sin(i * sampleNumber * f / 44100);
				}
				e.writeFloat(volume * amplitude);
				e.writeFloat(volume * amplitude);
			}

		}
	}
}&lt;/pre&gt;</body>
    <body-html>&lt;p&gt;that&amp;#8217;s not remotely dynamic, this is the start (not remotely near finished) of what will be the AS3 swf to play sounds (every bit of it will be editable, as far as sound creation goes; and i will probably wind up coming here for help a couple times since AS3 isn&amp;#8217;t my thing due to lack of CSx and funding for it)&lt;/p&gt;
&lt;pre&gt;package {
	import flash.display.*;
	import flash.events.*;
	import flash.media.*;

	public class DynamicSound extends Sprite {
		private var sound:Sound;
		private var soundChannel:SoundChannel;
		private var harmonics:Array = [0.5, 0.25, 0.125, 0.0625, 0.03125, 0.03125];
		private var _playing:Boolean = false;
		
		public function DynamicSound():void {
			sound = new Sound();
			sound.addEventListener(SampleDataEvent.SAMPLE_DATA, onCallback);
		}
		
		public function play():void {
		if (_playing) {
			soundChannel.stop();
		}
			soundChannel = sound.play();
			_playing = true;
		}
		
		public function get position():Number {
			return _playing ? soundChannel.position : 0;
		}
		
		public function get playing():Boolean {
			return _playing;
		}
		
		public function set playing(a:Boolean):void {
		}
		
		public function stop():void {
			soundChannel.stop();
			_playing = false;
		}
		
		private function onCallback(e:SampleDataEvent):void {
			var amplitude:Number = 0;
			for (var i:int = 0; i &amp;lt; 8192; i++) {
				for(var i:int = 0; i &amp;lt; harmonics.length; i++) {
					amplitude += harmonics[i] * Math.sin(i * sampleNumber * f / 44100);
				}
				e.writeFloat(volume * amplitude);
				e.writeFloat(volume * amplitude);
			}

		}
	}
}&lt;/pre&gt;</body-html>
    <created-at type="datetime">2009-10-12T18:56:38-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1366376</id>
    <post-number type="integer">37</post-number>
    <topic-id type="integer">59824</topic-id>
    <updated-at type="datetime">2009-10-12T18:56:38-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>because javascript doesn't have anything near(or remotely related) the sound class that AS3 does, so it's useless for what i'm going to do with it - and this is for a 'mod' of a kongregate page with chat on it.  though i seem to be having some sort of crossdomain policy issue loading it from swfcabin in an object element, chrome is telling me there's an ActionScript error, i'm going to check that it's allowed script access in a moment though - the only issue would be if chrome is blocking it access anyway, which it, of all the browsers, would</body>
    <body-html>&lt;p&gt;because javascript doesn&amp;#8217;t have anything near(or remotely related) the sound class that AS3 does, so it&amp;#8217;s useless for what i&amp;#8217;m going to do with it &amp;#8211; and this is for a &amp;#8216;mod&amp;#8217; of a kongregate page with chat on it.  though i seem to be having some sort of crossdomain policy issue loading it from swfcabin in an object element, chrome is telling me there&amp;#8217;s an ActionScript error, i&amp;#8217;m going to check that it&amp;#8217;s allowed script access in a moment though &amp;#8211; the only issue would be if chrome is blocking it access anyway, which it, of all the browsers, would&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-12T18:42:36-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1366342</id>
    <post-number type="integer">34</post-number>
    <topic-id type="integer">59824</topic-id>
    <updated-at type="datetime">2009-10-12T18:42:36-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>edited my previous post</body>
    <body-html>&lt;p&gt;edited my previous post&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-12T18:24:52-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1366242</id>
    <post-number type="integer">32</post-number>
    <topic-id type="integer">59824</topic-id>
    <updated-at type="datetime">2009-10-12T18:24:52-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>not to completely offend you, but i really don't think you should start trying to program yet, a good grasp on the language you speak natively (english) would be the first step; next step would be to learn how computers work so that you don't complain when incorrect code _you think_ (there are exceptions, such as with PHP and trying to use functions/classes/anything considered intermediate level programming in other languages) should work doesn't, then step into BASIC so you can get familiar with programming terms and operations; afterward you should be able to do this with little help from things other than tutorials and language references.

on the note of flashdevelop, i just spent 4 hours (should only have taken me 10 minuets at the most, and would have only taken that long had i used the flash IDE in the first place) trying to use it only to find out that perfectly valid AS2 won't work. if you want to see what i tried using, just say so and i'll post it

&lt;span class=&quot;post author edit&quot;&gt;&lt;a class=&quot;utility&quot;&gt;EDIT:&lt;/a&gt;&lt;/span&gt;

&lt;pre&gt;import flash.external.ExternalInterface; // throws no errors, assumed to work
class Main { // .AS name, unmodified from creating a new project
	static function Main() { // originally &quot;static function main() {&quot;, just from creating a new project; gave the same error
		System.security.allowDomain(&quot;*.kongregate.com&quot;);
		System.security.allowInsecureDomain(&quot;*.kongregate.com&quot;);
		ExternalInterface.addCallback(&quot;play&quot;, null, function() {
			var theSound:Object = new Sound(_root);
			theSound.attachSound(&quot;library.sound1.mp3&quot;);
			theSound.start();
		}); // no errors either, compiles fine in the IDE and works as expected (converted to timeline code)
	}
}&lt;/pre&gt;

it's a temporary swf that will serve to make a beep when someone says your name while you're afk in a script i'm making, i'm going to replace it with an AS3 swf that uses dynamic sounds due to the original request; but basic functionality is what i'm looking at for now; the suite of scripts i have thus far, they're going to become an add-on for firefox, later a widget for opera/IE, and chrome once they allow it in the 'normal' build: http://gist.github.com/201545</body>
    <body-html>&lt;p&gt;not to completely offend you, but i really don&amp;#8217;t think you should start trying to program yet, a good grasp on the language you speak natively (english) would be the first step; next step would be to learn how computers work so that you don&amp;#8217;t complain when incorrect code &lt;em&gt;you think&lt;/em&gt; (there are exceptions, such as with &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; and trying to use functions/classes/anything considered intermediate level programming in other languages) should work doesn&amp;#8217;t, then step into &lt;span class=&quot;caps&quot;&gt;BASIC&lt;/span&gt; so you can get familiar with programming terms and operations; afterward you should be able to do this with little help from things other than tutorials and language references.&lt;/p&gt;
&lt;p&gt;on the note of flashdevelop, i just spent 4 hours (should only have taken me 10 minuets at the most, and would have only taken that long had i used the flash &lt;span class=&quot;caps&quot;&gt;IDE&lt;/span&gt; in the first place) trying to use it only to find out that perfectly valid AS2 won&amp;#8217;t work. if you want to see what i tried using, just say so and i&amp;#8217;ll post it&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;post author edit&quot;&gt;&lt;a class=&quot;utility&quot;&gt;&lt;span class=&quot;caps&quot;&gt;EDIT&lt;/span&gt;:&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;import flash.external.ExternalInterface; // throws no errors, assumed to work
class Main { // .AS name, unmodified from creating a new project
	static function Main() { // originally &quot;static function main() {&quot;, just from creating a new project; gave the same error
		System.security.allowDomain(&quot;*.kongregate.com&quot;);
		System.security.allowInsecureDomain(&quot;*.kongregate.com&quot;);
		ExternalInterface.addCallback(&quot;play&quot;, null, function() {
			var theSound:Object = new Sound(_root);
			theSound.attachSound(&quot;library.sound1.mp3&quot;);
			theSound.start();
		}); // no errors either, compiles fine in the IDE and works as expected (converted to timeline code)
	}
}&lt;/pre&gt;
&lt;p&gt;it&amp;#8217;s a temporary swf that will serve to make a beep when someone says your name while you&amp;#8217;re afk in a script i&amp;#8217;m making, i&amp;#8217;m going to replace it with an AS3 swf that uses dynamic sounds due to the original request; but basic functionality is what i&amp;#8217;m looking at for now; the suite of scripts i have thus far, they&amp;#8217;re going to become an add-on for firefox, later a widget for opera/IE, and chrome once they allow it in the &amp;#8216;normal&amp;#8217; build: &lt;a href=&quot;http://gist.github.com/201545&quot;&gt;http://gist.github.com/201545&lt;/a&gt;&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-12T18:08:55-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1366155</id>
    <post-number type="integer">29</post-number>
    <topic-id type="integer">59824</topic-id>
    <updated-at type="datetime">2009-10-12T18:32:04-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>you should make a new topic, but the issue probably is that you're trying to use AS2 code in an AS3 document

also:
&lt;a href=&quot;http://www.kongregate.com/forums/4/topics/39889&quot;&gt;Proper Code Formatting Guide&lt;/a&gt;.

&lt;a href=&quot;http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html&quot;&gt;Adobe AS2 LiveDocs&lt;/a&gt;.

&lt;a href=&quot;http://help.adobe.com/en_US/AS3LCR/Flash_10.0/overview.html&quot;&gt;Adobe AS3 LiveDocs&lt;/a&gt;.</body>
    <body-html>&lt;p&gt;you should make a new topic, but the issue probably is that you&amp;#8217;re trying to use AS2 code in an AS3 document&lt;/p&gt;
&lt;p&gt;also:&lt;br /&gt;
&lt;a href=&quot;http://www.kongregate.com/forums/4/topics/39889&quot;&gt;Proper Code Formatting Guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html&quot;&gt;Adobe AS2 LiveDocs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://help.adobe.com/en_US/AS3LCR/Flash_10.0/overview.html&quot;&gt;Adobe AS3 LiveDocs&lt;/a&gt;.&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-08T13:32:32-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1353859</id>
    <post-number type="integer">9</post-number>
    <topic-id type="integer">59428</topic-id>
    <updated-at type="datetime">2009-10-08T13:32:32-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>that's probably AS2 because he's using &lt;code&gt;_root&lt;/code&gt; and &lt;code&gt;Void&lt;/code&gt;; however, i don't even know where to begin with what's wrong; and if it is in fact failed AS3, gah.. i'll wait to see which he is actually using</body>
    <body-html>&lt;p&gt;that&amp;#8217;s probably AS2 because he&amp;#8217;s using &lt;code&gt;_root&lt;/code&gt; and &lt;code&gt;Void&lt;/code&gt;; however, i don&amp;#8217;t even know where to begin with what&amp;#8217;s wrong; and if it is in fact failed AS3, gah.. i&amp;#8217;ll wait to see which he is actually using&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-07T13:03:33-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1351852</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">59721</topic-id>
    <updated-at type="datetime">2009-10-07T13:03:33-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>i just reported what i knew, but that info is nearly a year old now &lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAIAAAAWvsgoAAAABGdBTUEAALGPC/xhBQAAAJdJREFUKFON0aEShSAUBFD92VfJVDKVTCWTqWT+gUom4zrrAKM+RopwPVwW3Vtr28cBypFSMsb8pmGtzTl3sHGG6oz6XAgRY6Q5KRavjkXoQZVSC4pXyHZ11VqvKROfAZxzCyqlHAFqrQj0T/P0qysepZRnjPn6g3If74c93vsQAk7rH/VOER+d4GZx/wV9DY0wn+grYvEADP5qQoTtyrUAAAAASUVORK5CYII=&quot;&gt;</body>
    <body-html>&lt;p&gt;i just reported what i knew, but that info is nearly a year old now &lt;img&gt;&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-06T16:11:19-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1350077</id>
    <post-number type="integer">25</post-number>
    <topic-id type="integer">59273</topic-id>
    <updated-at type="datetime">2009-10-06T16:12:04-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>omazing, i suggest you avoid helping people until you have a better understanding of both programming and the english language; this problem was solved before you even thought about posting, unless it took you 6 hours to type that vague reply</body>
    <body-html>&lt;p&gt;omazing, i suggest you avoid helping people until you have a better understanding of both programming and the english language; this problem was solved before you even thought about posting, unless it took you 6 hours to type that vague reply&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-06T12:38:58-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1349499</id>
    <post-number type="integer">7</post-number>
    <topic-id type="integer">59506</topic-id>
    <updated-at type="datetime">2009-10-06T12:38:58-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>click the &quot;Edit Post&quot; link that's above &quot;Quote Post&quot;; and it won't take a lot of time, from the old api, what i could see was that it (the save system) was ready to be implemented for AS2 just simply by adding one more line (copying the info into _global and into the game like was done for the other services); though i don't know what they had set up on the server, but i surmise that it was at least in the private testing phase, meaning it was running, just buggy and incomplete</body>
    <body-html>&lt;p&gt;click the &amp;#8220;Edit Post&amp;#8221; link that&amp;#8217;s above &amp;#8220;Quote Post&amp;#8221;; and it won&amp;#8217;t take a lot of time, from the old api, what i could see was that it (the save system) was ready to be implemented for AS2 just simply by adding one more line (copying the info into _global and into the game like was done for the other services); though i don&amp;#8217;t know what they had set up on the server, but i surmise that it was at least in the private testing phase, meaning it was running, just buggy and incomplete&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-06T12:34:11-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1349486</id>
    <post-number type="integer">23</post-number>
    <topic-id type="integer">59273</topic-id>
    <updated-at type="datetime">2009-10-06T16:11:43-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
  <post>
    <body>you misunderstood the problem - though i'm not sure how the zoom (100% and show all) can make his game stop functioning</body>
    <body-html>&lt;p&gt;you misunderstood the problem &amp;#8211; though i&amp;#8217;m not sure how the zoom (100% and show all) can make his game stop functioning&lt;/p&gt;</body-html>
    <created-at type="datetime">2009-10-06T03:28:35-07:00</created-at>
    <flaggings-count type="integer">0</flaggings-count>
    <forced-visibility-state type="boolean">true</forced-visibility-state>
    <forum-id type="integer">4</forum-id>
    <hidden-by-id type="integer" nil="true"></hidden-by-id>
    <id type="integer">1348778</id>
    <post-number type="integer">3</post-number>
    <topic-id type="integer">59534</topic-id>
    <updated-at type="datetime">2009-10-06T03:28:35-07:00</updated-at>
    <user-id type="integer">43456</user-id>
  </post>
</posts>
