# programming

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

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

**Page:** 549

---

## [Format a variable to display leading zeroes](https://forum.kirupa.com/t/format-a-variable-to-display-leading-zeroes/305657)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 2:58pm UTC](https://forum.kirupa.com/t/format-a-variable-to-display-leading-zeroes/305657 "2010-03-01T14:58:24Z")

</div>

var qnumber:uint = 000; trace(qnumber); //0 How do I make this three zeroes, not just one zeroe?

---

## [Looking for unlimited bandwidth web hosting](https://forum.kirupa.com/t/looking-for-unlimited-bandwidth-web-hosting/305656)

<div class="topic-metadata">

**Author:** [@jnerd](https://forum.kirupa.com/u/jnerd)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 2:22pm UTC](https://forum.kirupa.com/t/looking-for-unlimited-bandwidth-web-hosting/305656 "2010-03-01T14:22:19Z")

</div>

Mainly, I am searching for a web hosting that charges monthly. I don't want to pay in advance and get stuck with a company. Found chime host - http://www.chimehost.com but I can't seem to find many sites reviewing t…

---

## [Hittest Deep Zoom please help me!](https://forum.kirupa.com/t/hittest-deep-zoom-please-help-me/305654)

<div class="topic-metadata">

**Author:** [@gast23](https://forum.kirupa.com/u/gast23)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 1:10pm UTC](https://forum.kirupa.com/t/hittest-deep-zoom-please-help-me/305654 "2010-03-01T13:10:20Z")

</div>

Hey, i created a "Deep Zoom classic + Source" template. The only thing i still need for my project is to know when a image got clicked/is in the users focus!!! (a single subimage)! I would be very thankful for help…

---

## [How to create a background image preloader](https://forum.kirupa.com/t/how-to-create-a-background-image-preloader/305652)

<div class="topic-metadata">

**Author:** [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 12:59pm UTC](https://forum.kirupa.com/t/how-to-create-a-background-image-preloader/305652 "2010-03-01T12:59:40Z")

</div>

Hi everyone, Sorry if this has already been discussed, I couldn't find it anywhere. I have a preloader for the index.swf file and it works perfectly, however, my background image will be very big so I don't want to i…

---

## [How to create a utils class that I don't have to instantiate?](https://forum.kirupa.com/t/how-to-create-a-utils-class-that-i-dont-have-to-instantiate/305651)

<div class="topic-metadata">

**Author:** [@eb\_dev](https://forum.kirupa.com/u/eb_dev)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 12:22pm UTC](https://forum.kirupa.com/t/how-to-create-a-utils-class-that-i-dont-have-to-instantiate/305651 "2010-03-01T12:22:42Z")

</div>

I'm trying to create a simple utils class that I can use the methods of but not instantiate: package com.ukfast.utils { import flash.display.DisplayObject; public dynamic class Arrange { /\* ////////////////…

---

## [Beginner Input Text Undefined](https://forum.kirupa.com/t/beginner-input-text-undefined/305650)

<div class="topic-metadata">

**Author:** [@dke01](https://forum.kirupa.com/u/dke01)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 11:24am UTC](https://forum.kirupa.com/t/beginner-input-text-undefined/305650 "2010-03-01T11:24:52Z")

</div>

Hi I have a contact us form (I got with a pre built template) However when posting form data to PHP all the fields in the form show as undefined When I run the file with trace mode on trace(ss.text); tr…

---

## [How to pass an object of parameters to textfield instance?](https://forum.kirupa.com/t/how-to-pass-an-object-of-parameters-to-textfield-instance/305649)

<div class="topic-metadata">

**Author:** [@eb\_dev](https://forum.kirupa.com/u/eb_dev)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 11:22am UTC](https://forum.kirupa.com/t/how-to-pass-an-object-of-parameters-to-textfield-instance/305649 "2010-03-01T11:22:10Z")

</div>

What I'm trying to do is create a simple message class that I can pass a set of textfield parameters of my choosing rather than specifying each textfield parameter in the constructor. Is it possible to pass a textfield…

---

## [QuickSort Algorithm](https://forum.kirupa.com/t/quicksort-algorithm/305648)

<div class="topic-metadata">

**Author:** [@habes](https://forum.kirupa.com/u/habes)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 10:57am UTC](https://forum.kirupa.com/t/quicksort-algorithm/305648 "2010-03-01T10:57:53Z")

</div>

Hi All, I'm working on a quick sort algorithm, and I'm not sure where I am going wrong. Any ideas as to what is causing my problem? The algorithm won't sort an array completely. public class QuickSort { int\[\] data…

---

## [Adjusting an AS2 code, to change scene](https://forum.kirupa.com/t/adjusting-an-as2-code-to-change-scene/305647)

<div class="topic-metadata">

**Author:** [@mayurrenr](https://forum.kirupa.com/u/mayurrenr)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 10:43am UTC](https://forum.kirupa.com/t/adjusting-an-as2-code-to-change-scene/305647 "2010-03-01T10:43:39Z")

</div>

Hi everyone, please see the following AS2 code taken from this tutorial, http://www.swinburne.edu.au/design/tutorials/P-flash/T-How-to-drag-and-drop-in-Flash/ID-37/, and adjusted to my flash animation: drug.onPress = …

---

## [Alpha not Easing](https://forum.kirupa.com/t/alpha-not-easing/305645)

<div class="topic-metadata">

**Author:** [@nednarb](https://forum.kirupa.com/u/nednarb)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 10:13am UTC](https://forum.kirupa.com/t/alpha-not-easing/305645 "2010-03-01T10:13:48Z")

</div>

Hello All, I'm new to Flash and I am having trouble getting this alpha tween to work correctly. It fades and then sometimes returns to full opacity. If I keep clicking the button it will eventually ease out and stay t…

---

## [How is payless.com done?](https://forum.kirupa.com/t/how-is-payless-com-done/305644)

<div class="topic-metadata">

**Author:** [@iamhere](https://forum.kirupa.com/u/iamhere)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 9:34am UTC](https://forum.kirupa.com/t/how-is-payless-com-done/305644 "2010-03-01T09:34:16Z")

</div>

Check out the menu that they have on their front page (just beneath the picture) - you can click on "Womens" "Mens" etc. and the picture changes to go with it (it sort of fades in) - how is the menu done? And how is the …

---

## [Dull colored images in CS3](https://forum.kirupa.com/t/dull-colored-images-in-cs3/305642)

<div class="topic-metadata">

**Author:** [@pixelpixie7](https://forum.kirupa.com/u/pixelpixie7)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 8:41am UTC](https://forum.kirupa.com/t/dull-colored-images-in-cs3/305642 "2010-03-01T08:41:01Z")

</div>

Hi everyone, I'm working on my online portfolio and then realized once it got time for me to add the pictures that the images were dull, light, and just overall horrible looking. I've looked at a bunch of forum posts, …

---

## [Where is the AS3 located?](https://forum.kirupa.com/t/where-is-the-as3-located/305639)

<div class="topic-metadata">

**Author:** [@Mcchan](https://forum.kirupa.com/u/Mcchan)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 7:36am UTC](https://forum.kirupa.com/t/where-is-the-as3-located/305639 "2010-03-01T07:36:43Z")

</div>

Hi, sometimes, when in a project folder, all there is is an fla file, it still runs but with the actionscript files hidden somewhere. Where do I find them? If you don't know what i'm talking about here's an example h…

---

## [n00b question(s)](https://forum.kirupa.com/t/n00b-question-s/305636)

<div class="topic-metadata">

**Author:** [@Threeleggedyoyo](https://forum.kirupa.com/u/Threeleggedyoyo)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 5:33am UTC](https://forum.kirupa.com/t/n00b-question-s/305636 "2010-03-01T05:33:18Z")

</div>

Hi everyone. I've done a bit of animating with Flash before, but right now I'm learning more about programming, and am a total n00b. I've done what I can looking at tutorials so far but can no longer find what I'm look…

---

## [Lagging Sounds](https://forum.kirupa.com/t/lagging-sounds/305635)

<div class="topic-metadata">

**Author:** [@Danny0123](https://forum.kirupa.com/u/Danny0123)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 4:40am UTC](https://forum.kirupa.com/t/lagging-sounds/305635 "2010-03-01T04:40:49Z")

</div>

I have some sounds I attached and played w/ actionscript. Then I added BG music w/ actionscript, and everything went all laggy. Any help? :cry3:

---

## [How to make embedded font look sharp](https://forum.kirupa.com/t/how-to-make-embedded-font-look-sharp/305631)

<div class="topic-metadata">

**Author:** [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 3:33am UTC](https://forum.kirupa.com/t/how-to-make-embedded-font-look-sharp/305631 "2010-03-01T03:33:49Z")

</div>

I have a text field with embedded font. The text appears blurry. Is there any way to make it look sharp as simple dynamic textfield (without embedding font). This is really driving me nuts.

---

## [TypeError: Error #1009, Simple code, SO FRUSTRATING!](https://forum.kirupa.com/t/typeerror-error-1009-simple-code-so-frustrating/305630)

<div class="topic-metadata">

**Author:** [@facehouse](https://forum.kirupa.com/u/facehouse)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 2:44am UTC](https://forum.kirupa.com/t/typeerror-error-1009-simple-code-so-frustrating/305630 "2010-03-01T02:44:31Z")

</div>

I keep getting this error in my output window. TypeError: Error #1009: Cannot access a property or method of a null object reference. at fractionFishCS4\_fla::MainTimeline/frame4() I started working on this project i…

---

## [\[CS4-AS2\] Remove undefined text](https://forum.kirupa.com/t/cs4-as2-remove-undefined-text/305629)

<div class="topic-metadata">

**Author:** [@embussy](https://forum.kirupa.com/u/embussy)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 2:34am UTC](https://forum.kirupa.com/t/cs4-as2-remove-undefined-text/305629 "2010-03-01T02:34:26Z")

</div>

Hello, All was working well until the xml changed. Sometimes the c\_Result node in the xml doesn't exist and my c\_points text box returns 'undefined'. I don't know how to leave the c\_points text box blank if the c\_Result …

---

## [Detecting change in global variable](https://forum.kirupa.com/t/detecting-change-in-global-variable/305628)

<div class="topic-metadata">

**Author:** [@newtome](https://forum.kirupa.com/u/newtome)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 1:59am UTC](https://forum.kirupa.com/t/detecting-change-in-global-variable/305628 "2010-03-01T01:59:04Z")

</div>

I define a global variable in a swf and then launch a child window which will alter the value of the global variable and I want the parent to detect that event and take specific action. How should I go about this? Can g…

---

## [Accessing document class property from another class](https://forum.kirupa.com/t/accessing-document-class-property-from-another-class/305626)

<div class="topic-metadata">

**Author:** [@eightballmark](https://forum.kirupa.com/u/eightballmark)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 12:30am UTC](https://forum.kirupa.com/t/accessing-document-class-property-from-another-class/305626 "2010-03-01T00:30:27Z")

</div>

I'm making a murder mystery game. The Main.as file will have all of the game logic, such as the mysteryNumber. The other actionScript files represent rooms that the user may click and depending on the 'mysteryNumber'…

---

## [Any suggestions for High Bandwidth web hosting](https://forum.kirupa.com/t/any-suggestions-for-high-bandwidth-web-hosting/305624)

<div class="topic-metadata">

**Author:** [@ctwitj](https://forum.kirupa.com/u/ctwitj)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 11:40pm UTC](https://forum.kirupa.com/t/any-suggestions-for-high-bandwidth-web-hosting/305624 "2010-02-28T23:40:37Z")

</div>

Mainly, I am looking for a host that charges monthly. I don't want to pay yearly and get stuck with a host. I came across chime host - http://www.chimehost.com but I can't seem to find many sites advertising them. I s…

---

## [Dynamic Text In MovieClips](https://forum.kirupa.com/t/dynamic-text-in-movieclips/305623)

<div class="topic-metadata">

**Author:** [@Danny0123](https://forum.kirupa.com/u/Danny0123)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 10:56pm UTC](https://forum.kirupa.com/t/dynamic-text-in-movieclips/305623 "2010-02-28T22:56:14Z")

</div>

I have a dynamic text box in a movieclip called ScoreText. On the root timeline I have a variable called "Scorevar". I used "ScoreMC.ScoreText.text = Scorevar;" to display the score, however it won't change. It just stay…

---

## [Launch Multibox or similar from Flash](https://forum.kirupa.com/t/launch-multibox-or-similar-from-flash/305621)

<div class="topic-metadata">

**Author:** [@Cheeky\_Beef](https://forum.kirupa.com/u/Cheeky_Beef)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 10:10pm UTC](https://forum.kirupa.com/t/launch-multibox-or-similar-from-flash/305621 "2010-02-28T22:10:04Z")

</div>

Hi there, I am trying to launch a Multibox (or similar) overlay from Flash, however as I cannot pass the class within getURL this will not work. I have heard that this can be done with ExternalInterface in as2 / 3 but …

---

## [Adobe AIR 2.0 and EXE](https://forum.kirupa.com/t/adobe-air-2-0-and-exe/305620)

<div class="topic-metadata">

**Author:** [@Catharsis](https://forum.kirupa.com/u/Catharsis)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 8:30pm UTC](https://forum.kirupa.com/t/adobe-air-2-0-and-exe/305620 "2010-02-28T20:30:09Z")

</div>

Hey everyone, quick question Does Adobe AIR 2.0 introduce the ability to launch executable files? \_Catharsis

---

## [Preload sounds](https://forum.kirupa.com/t/preload-sounds/305619)

<div class="topic-metadata">

**Author:** [@shazzmoe](https://forum.kirupa.com/u/shazzmoe)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 8:00pm UTC](https://forum.kirupa.com/t/preload-sounds/305619 "2010-02-28T20:00:20Z")

</div>

I'm having an issue where I make a new instance of a sound file in my code. However when doing so it then has to load this sound file even before the preloader can display. One work around I've used before is to make a…

---

## [Add a new page to the movieclip symbol](https://forum.kirupa.com/t/add-a-new-page-to-the-movieclip-symbol/305616)

<div class="topic-metadata">

**Author:** [@Unregistered00](https://forum.kirupa.com/u/Unregistered00)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 6:49pm UTC](https://forum.kirupa.com/t/add-a-new-page-to-the-movieclip-symbol/305616 "2010-02-28T18:49:06Z")

</div>

I have a movieclip symbol called container\_mc. It is a container for 3 pages of the flash site. Is there a way to add another page to the container\_mc movieclip?

---

## [JavaScript Object Variable Frustration](https://forum.kirupa.com/t/javascript-object-variable-frustration/305612)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 5:17pm UTC](https://forum.kirupa.com/t/javascript-object-variable-frustration/305612 "2010-02-28T17:17:32Z")

</div>

I have code that is analogous to the following: function ObjectDefinition(passInValue) { this.var1 = {}; //empty object this.var2 = passInValue; this.var3 = { "key" : "value" }; this.myFunction1()…

---

## [How to unload swf](https://forum.kirupa.com/t/how-to-unload-swf/305610)

<div class="topic-metadata">

**Author:** [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 4:26pm UTC](https://forum.kirupa.com/t/how-to-unload-swf/305610 "2010-02-28T16:26:56Z")

</div>

i'm using the code bellow to load a swf function carrega():void { var mcExt:MovieClip; var ldr:Loader = new Loader(); ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded); ldr.contentLoaderInfo.…

---

## [Script executes in Flash but not as Projector](https://forum.kirupa.com/t/script-executes-in-flash-but-not-as-projector/305608)

<div class="topic-metadata">

**Author:** [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 3:50pm UTC](https://forum.kirupa.com/t/script-executes-in-flash-but-not-as-projector/305608 "2010-02-28T15:50:49Z")

</div>

Hey guys, I'm using the syntax below for a Flash (CS3 and AS2) presentation so the client can play/stop and rewind/forward the movie with the keyboard. It works perfectly when I go "Control \>\>\> Test Movie" but when I…

---

## [addChild twice on an external preloaded swf](https://forum.kirupa.com/t/addchild-twice-on-an-external-preloaded-swf/305606)

<div class="topic-metadata">

**Author:** [@Zen08](https://forum.kirupa.com/u/Zen08)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 2:21pm UTC](https://forum.kirupa.com/t/addchild-twice-on-an-external-preloaded-swf/305606 "2010-02-28T14:21:12Z")

</div>

Hi! I hope I'm making sense on this. But is there a way to addChild twice on a preloaded swf? Here's my code: stop(); import flash.net.URLRequest; import flash.display.Loader; import flash.events.Event; hideEmpt…

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

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