# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=232

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 233

---

## [DHTML updating attributes](https://forum.kirupa.com/t/dhtml-updating-attributes/324869)

<div class="topic-metadata">

**Author:** [@icekube12jr](https://forum.kirupa.com/u/icekube12jr)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 8:47pm UTC](https://forum.kirupa.com/t/dhtml-updating-attributes/324869 "2011-09-12T20:47:52Z")

</div>

\[COLOR=#222222\]Hi, I am creating a CMS form for creating polls (for voting), and I want to be able to dynamically add or remove additional text fields so the user can input more or less poll options. The output looks…

---

## [Only post score if it's inside the top 100 (PHP/MySQL)](https://forum.kirupa.com/t/only-post-score-if-its-inside-the-top-100-php-mysql/324868)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 7:57pm UTC](https://forum.kirupa.com/t/only-post-score-if-its-inside-the-top-100-php-mysql/324868 "2011-09-12T19:57:09Z")

</div>

Hello, I'm a complete novice when it comes to serverside stuff, so would love some help improving my scoreboard, which would mainly just be only posting the score if it's better than the 100th score for example, or wha…

---

## [Send a handfull of dynamic vars with dynamically named buttons. How?](https://forum.kirupa.com/t/send-a-handfull-of-dynamic-vars-with-dynamically-named-buttons-how/324866)

<div class="topic-metadata">

**Author:** [@FlawlessDog](https://forum.kirupa.com/u/FlawlessDog)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 6:17pm UTC](https://forum.kirupa.com/t/send-a-handfull-of-dynamic-vars-with-dynamically-named-buttons-how/324866 "2011-09-12T18:17:54Z")

</div>

Hi, I have a function that creates a group of dynamically created MC's Within each MC, there is a group of dynamically created buttons. I got that bit to work fine. Now what I need is to send a handful of var strings a…

---

## [Physical Collision](https://forum.kirupa.com/t/physical-collision/324865)

<div class="topic-metadata">

**Author:** [@Piruka](https://forum.kirupa.com/u/Piruka)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 5:52pm UTC](https://forum.kirupa.com/t/physical-collision/324865 "2011-09-12T17:52:36Z")

</div>

Hi I need make a colission in AS3, i'm using hitTest in a movieclip(cube\_mc) and when this movieclip beat in the other movieclip(cube2\_mc), cube2\_mc must to move, like in a collision. Here's my example code: impor…

---

## [Finding Num of Children](https://forum.kirupa.com/t/finding-num-of-children/324864)

<div class="topic-metadata">

**Author:** [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 5:36pm UTC](https://forum.kirupa.com/t/finding-num-of-children/324864 "2011-09-12T17:36:58Z")

</div>

Hello! I am always confused how to find the Num of Children in a particular case, as below. I am trying to figure out how many birds are there at a particular time, so that I may control their growth. var timer: Ti…

---

## [Bug Won't Occur In Debug Mode](https://forum.kirupa.com/t/bug-wont-occur-in-debug-mode/324863)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 5:34pm UTC](https://forum.kirupa.com/t/bug-wont-occur-in-debug-mode/324863 "2011-09-12T17:34:04Z")

</div>

Hey Guys, When I play my swf regularly(ctrl + enter) as soon as I start and hit my thrust button, off my ship goes as if i'm holding the thrust button down and the traces don't start for a second or so,and no other contr…

---

## [\[AS2.0\] Creating making enemies dynamic... but I'm an array noob!](https://forum.kirupa.com/t/as2-0-creating-making-enemies-dynamic-but-im-an-array-noob/324862)

<div class="topic-metadata">

**Author:** [@makinde](https://forum.kirupa.com/u/makinde)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 4:53pm UTC](https://forum.kirupa.com/t/as2-0-creating-making-enemies-dynamic-but-im-an-array-noob/324862 "2011-09-12T16:53:33Z")

</div>

Hi guys, I'm trying to tackle a fairly major undertaking (for me anyway) in the form of a game. Development of the game is going fairly well in some departments but I've hit a block. I'm pretty unfamiliar with arrays in …

---

## [Comparing an Object's type, by only knowing the class name](https://forum.kirupa.com/t/comparing-an-objects-type-by-only-knowing-the-class-name/324859)

<div class="topic-metadata">

**Author:** [@RedGiant](https://forum.kirupa.com/u/RedGiant)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 4:27pm UTC](https://forum.kirupa.com/t/comparing-an-objects-type-by-only-knowing-the-class-name/324859 "2011-09-12T16:27:55Z")

</div>

I am trying to find an object in the display list. All that is known, is the name of the class. I recursively iterate through every child in the display list to find my object's instance, and unfortunately everything …

---

## [(HELP) Actionscript 2.0 to 3.0](https://forum.kirupa.com/t/help-actionscript-2-0-to-3-0/324858)

<div class="topic-metadata">

**Author:** [@pgs](https://forum.kirupa.com/u/pgs)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 3:37pm UTC](https://forum.kirupa.com/t/help-actionscript-2-0-to-3-0/324858 "2011-09-12T15:37:14Z")

</div>

Please, can somebody give me the right code in 3.0 for these 2 codes? Thank you. stop (); var location\_so:SharedObject; if (selectedItem == null) { Selection.setFocus(groups\_btn); } else { Selection.setFocus (select…

---

## [Any ideeas?](https://forum.kirupa.com/t/any-ideeas/324854)

<div class="topic-metadata">

**Author:** [@CasH87](https://forum.kirupa.com/u/CasH87)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 12:16pm UTC](https://forum.kirupa.com/t/any-ideeas/324854 "2011-09-12T12:16:35Z")

</div>

Hi everyone! I've been working on a project and the client needs something similar to this: http://www.adidas.com/com/homepage.asp Does any of you have any ideea on how that could be made? I've tried collision detect…

---

## [\[FLASH CS3 AS2\] Help working with the checkbox component please](https://forum.kirupa.com/t/flash-cs3-as2-help-working-with-the-checkbox-component-please/324852)

<div class="topic-metadata">

**Author:** [@purplekedi](https://forum.kirupa.com/u/purplekedi)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 11:25am UTC](https://forum.kirupa.com/t/flash-cs3-as2-help-working-with-the-checkbox-component-please/324852 "2011-09-12T11:25:32Z")

</div>

Help me please dear fellow members for I'm this close to be admitted into an asylum! (You don't see it but there's very little space between my thumb and index finger when I'm saying "this") I'm very much a beginner w…

---

## [Tutorial: Parallax](https://forum.kirupa.com/t/tutorial-parallax/324849)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 8:10am UTC](https://forum.kirupa.com/t/tutorial-parallax/324849 "2011-09-12T08:10:21Z")

</div>

Hi everyone, This is the place to discuss all things related to the Parallax tutorial. Feel free to jump on in if you have any questions. Cheers, Kirupa :megaman:

---

## [Lights and Silhouettes](https://forum.kirupa.com/t/lights-and-silhouettes/324848)

<div class="topic-metadata">

**Author:** [@jhawks](https://forum.kirupa.com/u/jhawks)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 7:58am UTC](https://forum.kirupa.com/t/lights-and-silhouettes/324848 "2011-09-12T07:58:03Z")

</div>

Hi all, I hope I'm posting this in the right section. First of all, I have Macromedia Flash CS3 and most likely be using ActionScript 2.0. Here's the situation. Imagine a room with an object patrolling left and right…

---

## [How to center movieclip and keep aspect ratio on resize?](https://forum.kirupa.com/t/how-to-center-movieclip-and-keep-aspect-ratio-on-resize/324847)

<div class="topic-metadata">

**Author:** [@runeer](https://forum.kirupa.com/u/runeer)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 5:54am UTC](https://forum.kirupa.com/t/how-to-center-movieclip-and-keep-aspect-ratio-on-resize/324847 "2011-09-12T05:54:18Z")

</div>

Hello everyone, How can I achieve the dynamic effect (centering MC and keeping it's aspect ratio on resizing browser window) like CTN Green Magazine http://ctngreen.com/2009/jun/ in flash with AS2 ?? This could have be…

---

## [Interactive quiz not loading completely in Firefox](https://forum.kirupa.com/t/interactive-quiz-not-loading-completely-in-firefox/324842)

<div class="topic-metadata">

**Author:** [@eabigelow](https://forum.kirupa.com/u/eabigelow)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 12:38am UTC](https://forum.kirupa.com/t/interactive-quiz-not-loading-completely-in-firefox/324842 "2011-09-12T00:38:07Z")

</div>

Hi-- I have an interactive quiz on my site that loads from an online quiz-maker (quizrevolution.com). The problem is that the quiz does not load all the way in Firefox: it loads everything but the "start" button. Th…

---

## [Drawing api glitch? Help?](https://forum.kirupa.com/t/drawing-api-glitch-help/324841)

<div class="topic-metadata">

**Author:** [@Richeh](https://forum.kirupa.com/u/Richeh)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 11:27pm UTC](https://forum.kirupa.com/t/drawing-api-glitch-help/324841 "2011-09-11T23:27:55Z")

</div>

I created some visual effects with the drawing api and SoundMixer.computeSpectrum(), It all looks great when I test locally, but when I upload it to my host, the effects don't show up. I'v tried everything I can think …

---

## [Mouse Movement without Stage?](https://forum.kirupa.com/t/mouse-movement-without-stage/324839)

<div class="topic-metadata">

**Author:** [@TAJArtist](https://forum.kirupa.com/u/TAJArtist)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 10:30pm UTC](https://forum.kirupa.com/t/mouse-movement-without-stage/324839 "2011-09-11T22:30:25Z")

</div>

Hey all, I've posted once before in relation to this topic hoping to find an alternative to the coveted MouseX and MouseY. I was attempting to build my first flash site when I ran into this problem with a SWF becoming th…

---

## [AS3 button firing off multiple times on quick press only](https://forum.kirupa.com/t/as3-button-firing-off-multiple-times-on-quick-press-only/324838)

<div class="topic-metadata">

**Author:** [@somdow](https://forum.kirupa.com/u/somdow)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 10:10pm UTC](https://forum.kirupa.com/t/as3-button-firing-off-multiple-times-on-quick-press-only/324838 "2011-09-11T22:10:34Z")

</div>

ok so, i wrote this code: function btn4Loaded(e:Event):void { //-- START btn4Loaded if (e.target == load1 || e.target == load2) { myLoadedSwf.gotoAndPlay("outro"); removeChild(myLoaded…

---

## [I need a favor](https://forum.kirupa.com/t/i-need-a-favor/324837)

<div class="topic-metadata">

**Author:** [@BLKelsey](https://forum.kirupa.com/u/BLKelsey)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 8:56pm UTC](https://forum.kirupa.com/t/i-need-a-favor/324837 "2011-09-11T20:56:35Z")

</div>

Can anyone please go to http://webspace.westwood.edu/student/briankelsey/week6/Bkjukebox.html and see if you can hear any songs...especially the last one. There are only 3 songs. Let me know how you made out. Thanks…

---

## [Play animation (movie clip) randomly](https://forum.kirupa.com/t/play-animation-movie-clip-randomly/324834)

<div class="topic-metadata">

**Author:** [@alastickman](https://forum.kirupa.com/u/alastickman)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 4:40pm UTC](https://forum.kirupa.com/t/play-animation-movie-clip-randomly/324834 "2011-09-11T16:40:29Z")

</div>

hello, I am creating a game and I want that when the enemies started to attack me, I want it to plays random animation thank you

---

## [Actionscript 2.0 to 3.0](https://forum.kirupa.com/t/actionscript-2-0-to-3-0/324832)

<div class="topic-metadata">

**Author:** [@pgs](https://forum.kirupa.com/u/pgs)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 1:56pm UTC](https://forum.kirupa.com/t/actionscript-2-0-to-3-0/324832 "2011-09-11T13:56:12Z")

</div>

Please, can somebody give me the right code in 3.0 for these 2 codes? Thank you. stop (); var location\_so:SharedObject; if (selectedItem == null) { Selection.setFocus(groups\_btn); } else { Selection.setFocus (select…

---

## [Seems to be warning, but not error](https://forum.kirupa.com/t/seems-to-be-warning-but-not-error/324830)

<div class="topic-metadata">

**Author:** [@felastine](https://forum.kirupa.com/u/felastine)\
**Replies:** 0\
**Last updated:** [September 11, 2011, 2:36am UTC](https://forum.kirupa.com/t/seems-to-be-warning-but-not-error/324830 "2011-09-11T02:36:36Z")

</div>

Hi I'm trying to draw rectangles with code. public var panel:Shape; public function MenuPanel(iS:Boolean,xPos:Number,yPos:Number,w:Number, h:Number, cArray:Array) { panel = new Shape(); …

---

## [Volume slides but no volume change?](https://forum.kirupa.com/t/volume-slides-but-no-volume-change/324828)

<div class="topic-metadata">

**Author:** [@BLKelsey](https://forum.kirupa.com/u/BLKelsey)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 9:57pm UTC](https://forum.kirupa.com/t/volume-slides-but-no-volume-change/324828 "2011-09-10T21:57:17Z")

</div>

Howdy doo! Having a slight problem with my volume slider. Can't figure out what it is. I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip. Here is the code I pla…

---

## [Is there a way to move a clip when it is hit by another clip](https://forum.kirupa.com/t/is-there-a-way-to-move-a-clip-when-it-is-hit-by-another-clip/324825)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 8:10pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-move-a-clip-when-it-is-hit-by-another-clip/324825 "2011-09-10T20:10:09Z")

</div>

Hi, I have 2 movie clips (Clip1\_mc & Clip2\_mc). When Clip1\_mc hits the Clip2\_mc then Clip2\_mc should move to (x:-200, y:-200). What is the code? Please. I am using AS3. Thanks in advance.

---

## [SWF to Fill Scaling Div Tag](https://forum.kirupa.com/t/swf-to-fill-scaling-div-tag/324822)

<div class="topic-metadata">

**Author:** [@e\_owen](https://forum.kirupa.com/u/e_owen)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 11:39am UTC](https://forum.kirupa.com/t/swf-to-fill-scaling-div-tag/324822 "2011-09-10T11:39:45Z")

</div>

Hello. I have a two column web page, the left column (nav) being a fixed width (200px) navigation column and the right column (content) scales to fill to the remaning width of the browser window. I want to embed a SWF at…

---

## [URLLoader, response with swedish letters (åäö)](https://forum.kirupa.com/t/urlloader-response-with-swedish-letters-aao/324820)

<div class="topic-metadata">

**Author:** [@VoSSer](https://forum.kirupa.com/u/VoSSer)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 10:24am UTC](https://forum.kirupa.com/t/urlloader-response-with-swedish-letters-aao/324820 "2011-09-10T10:24:21Z")

</div>

Hey! I'm trying to read data from a webservice that returns an XML response. I am using the following code for that: private function NewWordRequest(Letters:String, Contains:String, BeginsWith:String, EndsWith:Strin…

---

## [Button: Will this ever work in AS3.0](https://forum.kirupa.com/t/button-will-this-ever-work-in-as3-0/324819)

<div class="topic-metadata">

**Author:** [@felastine](https://forum.kirupa.com/u/felastine)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 10:12am UTC](https://forum.kirupa.com/t/button-will-this-ever-work-in-as3-0/324819 "2011-09-10T10:12:44Z")

</div>

Hi there I'm new to AS3.0. I know Java and some C++ so I think I can handle OOP good enough. But Flash is just something different. Some years ago, in AS2.0, I created a simple button (think of that as a SimpleButton…

---

## [Tracking words in an input txt box](https://forum.kirupa.com/t/tracking-words-in-an-input-txt-box/324818)

<div class="topic-metadata">

**Author:** [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 8:56am UTC](https://forum.kirupa.com/t/tracking-words-in-an-input-txt-box/324818 "2011-09-10T08:56:46Z")

</div>

Ok so basically my problem is I have an input box and I want it to track if anywhere in the text box a certain word is typed then something happens. Here is what I got so far. wordTracker = new Object(); wordTracker =…

---

## [Help me please! (hitTestObject)](https://forum.kirupa.com/t/help-me-please-hittestobject/324817)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 8:19am UTC](https://forum.kirupa.com/t/help-me-please-hittestobject/324817 "2011-09-10T08:19:49Z")

</div>

Hi! I dont think that will work. I need to have it as individual blocks. I did a quick demo file to show what I need. You will se in the file that the map is randomized and I need it to be like that to! \[smile\] READ…

---

## [AS2 Code conversion to AS3](https://forum.kirupa.com/t/as2-code-conversion-to-as3/324816)

<div class="topic-metadata">

**Author:** [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Replies:** 0\
**Last updated:** [September 10, 2011, 6:11am UTC](https://forum.kirupa.com/t/as2-code-conversion-to-as3/324816 "2011-09-10T06:11:52Z")

</div>

Hi geeks I request for help in conversion of just a few lines of AS2 code into AS3 code. Please help. \_root.menu1.hit.onRollOver = function() { \_root.menu1.gotoAndPlay(2); \_root.menu2.gotoAndStop(1); \_root.menu3…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=231)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=233)
