# programming

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

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

**Page:** 504

---

## [Flash CS4 using AS3 to addChild then removeChild gives error 1120](https://forum.kirupa.com/t/flash-cs4-using-as3-to-addchild-then-removechild-gives-error-1120/308609)

<div class="topic-metadata">

**Author:** [@zebedee76](https://forum.kirupa.com/u/zebedee76)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 11:11pm UTC](https://forum.kirupa.com/t/flash-cs4-using-as3-to-addchild-then-removechild-gives-error-1120/308609 "2010-04-26T23:11:33Z")

</div>

Hi, Hope I'm in the right place for this plea from yet another novice trying to learn AS3 in Flash with a couple of very good books but no one to talk to about it - and in danger of losing hair in the process. My pro…

---

## [Writing the date in English (with javaScript )](https://forum.kirupa.com/t/writing-the-date-in-english-with-javascript/308608)

<div class="topic-metadata">

**Author:** [@boebarl1](https://forum.kirupa.com/u/boebarl1)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 11:02pm UTC](https://forum.kirupa.com/t/writing-the-date-in-english-with-javascript/308608 "2010-04-26T23:02:39Z")

</div>

I am writing this java script code to simply write the date. My code will display the month, day and year, but it does it with numbers? I tried to create an array for the getDay function so that it would convert the nu…

---

## [Very weird error reading multi-line .txt file](https://forum.kirupa.com/t/very-weird-error-reading-multi-line-txt-file/308607)

<div class="topic-metadata">

**Author:** [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 10:31pm UTC](https://forum.kirupa.com/t/very-weird-error-reading-multi-line-txt-file/308607 "2010-04-26T22:31:15Z")

</div>

Hello, sorry to be asking so many questions on the same day, but they are all different and have all got me stunned. This time I'm reading a 2d array from a .txt file, this is what I do: \[Embed(source = '../lib/lvl1…

---

## [Bouncing a ball off a wall object](https://forum.kirupa.com/t/bouncing-a-ball-off-a-wall-object/308606)

<div class="topic-metadata">

**Author:** [@clodagh2000](https://forum.kirupa.com/u/clodagh2000)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 9:26pm UTC](https://forum.kirupa.com/t/bouncing-a-ball-off-a-wall-object/308606 "2010-04-26T21:26:23Z")

</div>

Hi, I have created a flash AS3 file with two movieclips. One is a ball (ball\_mc) and a wall (wall\_mc). The ball bounces around off the outer walls of the stage, in horizontal lines. The ball also changes directio…

---

## [Preloader wont disappear after MovieClipLoader determined load complete](https://forum.kirupa.com/t/preloader-wont-disappear-after-moviecliploader-determined-load-complete/308605)

<div class="topic-metadata">

**Author:** [@ccbass85](https://forum.kirupa.com/u/ccbass85)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 9:13pm UTC](https://forum.kirupa.com/t/preloader-wont-disappear-after-moviecliploader-determined-load-complete/308605 "2010-04-26T21:13:51Z")

</div>

I cant seem to make my preloader disappear after the MovieClipLoader class has determined the load is complete. I have a movieclip I attach onto the stage called thumbnailModule\_mc inside of it I have the preloader movie…

---

## [Counting the number of variables in a .as file](https://forum.kirupa.com/t/counting-the-number-of-variables-in-a-as-file/308604)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 8:45pm UTC](https://forum.kirupa.com/t/counting-the-number-of-variables-in-a-as-file/308604 "2010-04-26T20:45:45Z")

</div>

Hello, I made a .fla file that uses an "include" to pull in a bunch of variables from a .as file. I would like to be able to count the number of variables in this file so that I can make the thing more "automatic" so t…

---

## [Loader class problem loading swf](https://forum.kirupa.com/t/loader-class-problem-loading-swf/308602)

<div class="topic-metadata">

**Author:** [@kskhanartist](https://forum.kirupa.com/u/kskhanartist)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 8:00pm UTC](https://forum.kirupa.com/t/loader-class-problem-loading-swf/308602 "2010-04-26T20:00:54Z")

</div>

I am trying to write a simple action to get a button to load an eternal swf onto the stage, or preferably into a target movie clip. My current understanding of what is needed to accomplish this is as follow: 1. create a …

---

## [Unselect text](https://forum.kirupa.com/t/unselect-text/308601)

<div class="topic-metadata">

**Author:** [@fasterthanlight](https://forum.kirupa.com/u/fasterthanlight)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 7:58pm UTC](https://forum.kirupa.com/t/unselect-text/308601 "2010-04-26T19:58:55Z")

</div>

Yo. Check this thing I've mashed together, www.akaibo.com/k-test.html This is actually styled really nicely, I just removed all that stuff for obvious reasons. The problem is, when you click a thing, and it slid…

---

## [\[Linker error\] undefined reference to \`CLSID\_SpVoice'](https://forum.kirupa.com/t/linker-error-undefined-reference-to-clsid-spvoice/308596)

<div class="topic-metadata">

**Author:** [@NathanZachary](https://forum.kirupa.com/u/NathanZachary)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 5:55pm UTC](https://forum.kirupa.com/t/linker-error-undefined-reference-to-clsid-spvoice/308596 "2010-04-26T17:55:52Z")

</div>

After having spent the last few hours in deep frustration over Microsoft’s SAPI, I have finally made the decision to seek professional help. Google has failed me epically on this one, and so Kirupa C++ seems the way to g…

---

## [Rounding causes inaccuracy, help needed](https://forum.kirupa.com/t/rounding-causes-inaccuracy-help-needed/308595)

<div class="topic-metadata">

**Author:** [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 5:51pm UTC](https://forum.kirupa.com/t/rounding-causes-inaccuracy-help-needed/308595 "2010-04-26T17:51:41Z")

</div>

Hello, if you don't care about the story below, skip to the last paragraph for the tldr. For my game, I've made an easy-to-use instruction list to program enemies. It works pretty well, except it's inaccurate, and th…

---

## [How do I enable buttons randomly](https://forum.kirupa.com/t/how-do-i-enable-buttons-randomly/308594)

<div class="topic-metadata">

**Author:** [@Kirupa11](https://forum.kirupa.com/u/Kirupa11)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 5:12pm UTC](https://forum.kirupa.com/t/how-do-i-enable-buttons-randomly/308594 "2010-04-26T17:12:09Z")

</div>

I have 4 buttons that I have made invisible. After a random time, one of 4 buttons should randomly become visible. That button then will lead to another frame. How do I enable one of them \*\*randomly \*\*(and make it …

---

## [Policy File Does't Work in Flash Player 10](https://forum.kirupa.com/t/policy-file-doest-work-in-flash-player-10/308592)

<div class="topic-metadata">

**Author:** [@endemoniada](https://forum.kirupa.com/u/endemoniada)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:39pm UTC](https://forum.kirupa.com/t/policy-file-doest-work-in-flash-player-10/308592 "2010-04-26T16:39:25Z")

</div>

Hi guys, Is there a change in the policy file required for Flash Player 10 ? I have it setup so that when my (home-brewed) server receives "\<policy-file-request/\>" I send back the xml data, which worked perfectly with …

---

## [How to install GTween on Flash CS3?](https://forum.kirupa.com/t/how-to-install-gtween-on-flash-cs3/308591)

<div class="topic-metadata">

**Author:** [@cybersa](https://forum.kirupa.com/u/cybersa)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:32pm UTC](https://forum.kirupa.com/t/how-to-install-gtween-on-flash-cs3/308591 "2010-04-26T16:32:49Z")

</div>

I don't know How to install GTween on Flash CS3? First i put the swc file ProgramFiles/Adobe/Adobe FlashCS3/en/Configuration/Components/ then open the flash cs3 and checked component panel. In that GTween component …

---

## [AS3 movieClip Path](https://forum.kirupa.com/t/as3-movieclip-path/308590)

<div class="topic-metadata">

**Author:** [@satiss](https://forum.kirupa.com/u/satiss)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:29pm UTC](https://forum.kirupa.com/t/as3-movieclip-path/308590 "2010-04-26T16:29:13Z")

</div>

I am wondering why the AS3 movieClip target path are soo complicated? I'm loading a simple external swf that contain a movieClip that I want to play with. But I can't find the proper syntaxe to call this movieClip... Ca…

---

## [How to encode a quotation mark?](https://forum.kirupa.com/t/how-to-encode-a-quotation-mark/308589)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:19pm UTC](https://forum.kirupa.com/t/how-to-encode-a-quotation-mark/308589 "2010-04-26T16:19:04Z")

</div>

How can I make a quotation mark show up inside a string? var string10:String = "C:\\\>dsget group \[COLOR=red\]"\[/COLOR\]CN=Domain Admins,CN=Users,DC=mydomain,DC=org\[COLOR=red\]"\[/COLOR\] -members"; Thanks for the help.

---

## [Server Side Chat Application](https://forum.kirupa.com/t/server-side-chat-application/308588)

<div class="topic-metadata">

**Author:** [@psych0mantis00](https://forum.kirupa.com/u/psych0mantis00)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:01pm UTC](https://forum.kirupa.com/t/server-side-chat-application/308588 "2010-04-26T16:01:05Z")

</div>

Hey everyone, my name is Matt Lea. I am a developer and I am thinking about writing a php/jQuery chat application that will allow an individual to chat with people as they browse there site. Its nothing special, but it w…

---

## [AS2 flash uploader?](https://forum.kirupa.com/t/as2-flash-uploader/308583)

<div class="topic-metadata">

**Author:** [@Kappa](https://forum.kirupa.com/u/Kappa)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 2:05pm UTC](https://forum.kirupa.com/t/as2-flash-uploader/308583 "2010-04-26T14:05:14Z")

</div>

im working on a website for a friend, and he wants me to create a file uploader for him so registered users can upload image files. they dont have to go into a gallery or anything, just into a directory for him to be abl…

---

## [Group of object, automatic detection](https://forum.kirupa.com/t/group-of-object-automatic-detection/308580)

<div class="topic-metadata">

**Author:** [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 1:19pm UTC](https://forum.kirupa.com/t/group-of-object-automatic-detection/308580 "2010-04-26T13:19:09Z")

</div>

Hello all, this is a little hard to describe, so please bear with me. I'm writing a levelcreating class for an engine. It has to be flexible, but I want it to do alot of work. It's a tile-based editor, and it takes 2 2…

---

## [Please help! Load movie automatically, unload with button](https://forum.kirupa.com/t/please-help-load-movie-automatically-unload-with-button/308576)

<div class="topic-metadata">

**Author:** [@botoxBonobo](https://forum.kirupa.com/u/botoxBonobo)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 11:10am UTC](https://forum.kirupa.com/t/please-help-load-movie-automatically-unload-with-button/308576 "2010-04-26T11:10:26Z")

</div>

Hi I can't find the answer to this anywhere, but it must be a pretty standard thing to do. I have a swf loading automatically as part of an animation, but I want the user to be able to close this whenever they want …

---

## [Text in a Circle](https://forum.kirupa.com/t/text-in-a-circle/308575)

<div class="topic-metadata">

**Author:** [@Zarniwoop](https://forum.kirupa.com/u/Zarniwoop)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 10:55am UTC](https://forum.kirupa.com/t/text-in-a-circle/308575 "2010-04-26T10:55:13Z")

</div>

Is it possible to put a paragraph of text inside a circlular (or half circle) shape using xml loaded text via Actionscript 3? Ideas I have so far: - format a textfield as center justified and put all the line breaks in…

---

## [How to Load variables from asp page to flash, actionscript 2.0](https://forum.kirupa.com/t/how-to-load-variables-from-asp-page-to-flash-actionscript-2-0/308573)

<div class="topic-metadata">

**Author:** [@georgesmith](https://forum.kirupa.com/u/georgesmith)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 10:11am UTC](https://forum.kirupa.com/t/how-to-load-variables-from-asp-page-to-flash-actionscript-2-0/308573 "2010-04-26T10:11:46Z")

</div>

Dear Forum Member, I am thankful to you all that you helped me whenever I have trouble with AS 2.0. Now can I anyone tell me how to load variables from asp.net page to Flash. I will be waiting for your reply. Tha…

---

## [\[AS1 to AS2\] Need urgent help PLEASE!](https://forum.kirupa.com/t/as1-to-as2-need-urgent-help-please/308572)

<div class="topic-metadata">

**Author:** [@cikcantek](https://forum.kirupa.com/u/cikcantek)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 9:46am UTC](https://forum.kirupa.com/t/as1-to-as2-need-urgent-help-please/308572 "2010-04-26T09:46:43Z")

</div>

Here it goes, I'm trying to make a game. sort of like a coloring object. I found these script but it was for Flash 5. now I want to add this script to my Flash 8 games. I found its not working if the player set to Flash …

---

## [Linking from Child to Parent](https://forum.kirupa.com/t/linking-from-child-to-parent/308570)

<div class="topic-metadata">

**Author:** [@SteveBruch](https://forum.kirupa.com/u/SteveBruch)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 7:51am UTC](https://forum.kirupa.com/t/linking-from-child-to-parent/308570 "2010-04-26T07:51:22Z")

</div>

Hey Guys, I have an index.swf file that loads external .swf files into the page through its UILoader with the instance name "sectionLoader" Once I load a new swf into the index.swf --\> "business.swf" I'm having trouble…

---

## [Sound Object FMX AS 2.0](https://forum.kirupa.com/t/sound-object-fmx-as-2-0/308568)

<div class="topic-metadata">

**Author:** [@macneil](https://forum.kirupa.com/u/macneil)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:23am UTC](https://forum.kirupa.com/t/sound-object-fmx-as-2-0/308568 "2010-04-26T04:23:11Z")

</div>

Hi, can someone tell me if there is something wrong with this? playbtn\_mc is a button with that instance name.... The button is on the main timeline not in another mc, I tried root.mysound.start(); also. The mp3 name is…

---

## [Combo box interaction](https://forum.kirupa.com/t/combo-box-interaction/308567)

<div class="topic-metadata">

**Author:** [@Voidy](https://forum.kirupa.com/u/Voidy)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 3:29am UTC](https://forum.kirupa.com/t/combo-box-interaction/308567 "2010-04-26T03:29:05Z")

</div>

I have 4 combobox var solvent:Array = \["Select one", {data:"etanol", label:"Etanol"}, {data:"heksana", label:"Heksana"}, {data:"etilasetat", label:"Etilasetat"}\]; var ratio:Array = \["Select one", {data:"2", label:"1:2…

---

## [Bytes to Text?](https://forum.kirupa.com/t/bytes-to-text/308566)

<div class="topic-metadata">

**Author:** [@Someguynamedpie](https://forum.kirupa.com/u/Someguynamedpie)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 2:58am UTC](https://forum.kirupa.com/t/bytes-to-text/308566 "2010-04-26T02:58:32Z")

</div>

I'm asking alot of questions lately eh? I can't seem to make it work D: public function ByteToText(Bytes:Number):String { var Kilobytes:Number = 0; var Megabytes:Number = 0; var Gig…

---

## [Timer fires but this.gotoAndStop(1) never happens](https://forum.kirupa.com/t/timer-fires-but-this-gotoandstop-1-never-happens/308564)

<div class="topic-metadata">

**Author:** [@fmood123](https://forum.kirupa.com/u/fmood123)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 1:27am UTC](https://forum.kirupa.com/t/timer-fires-but-this-gotoandstop-1-never-happens/308564 "2010-04-26T01:27:55Z")

</div>

I have an issue where I have a list component with Icon. Basically using the code below. The time in the ListPlay Class fires, i tested it with a trace and when the if statement evaluates it removes the listener, stops…

---

## [Loading sound from specific location](https://forum.kirupa.com/t/loading-sound-from-specific-location/308563)

<div class="topic-metadata">

**Author:** [@andriusain](https://forum.kirupa.com/u/andriusain)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 1:22am UTC](https://forum.kirupa.com/t/loading-sound-from-specific-location/308563 "2010-04-26T01:22:17Z")

</div>

Hello Kirupians, long time no see, hope you all good! I wonder if its possible to start loading a song from a specific location. When a sound is streaming, in most players you have bar with an indication of what is loa…

---

## [List and ComboBox Text/Font Hover Color](https://forum.kirupa.com/t/list-and-combobox-text-font-hover-color/308562)

<div class="topic-metadata">

**Author:** [@fmood123](https://forum.kirupa.com/u/fmood123)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 1:19am UTC](https://forum.kirupa.com/t/list-and-combobox-text-font-hover-color/308562 "2010-04-26T01:19:33Z")

</div>

I need help. I want to change the text/font color on hover/mouse over, but I can't seem to figure it out. Do I have to extend the cellRenderer Class? Can you provide a code sample! Thanks in advance have been googli…

---

## [Recursive array searching optimisation](https://forum.kirupa.com/t/recursive-array-searching-optimisation/308560)

<div class="topic-metadata">

**Author:** [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 12:57am UTC](https://forum.kirupa.com/t/recursive-array-searching-optimisation/308560 "2010-04-26T00:57:18Z")

</div>

I'm working on a grid based game where a user selects a tile and all the tiles with the same colour that are beside it disappear. Up until now I've been using this very rudimentary method to find the neighbouring tiles w…

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

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