# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=515

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

**Page:** 516

---

## [AddChild, Remove Child, then adding again issue!](https://forum.kirupa.com/t/addchild-remove-child-then-adding-again-issue/296222)

<div class="topic-metadata">

**Author:** [@aesthetics7](https://forum.kirupa.com/u/aesthetics7)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 5:32am UTC](https://forum.kirupa.com/t/addchild-remove-child-then-adding-again-issue/296222 "2009-09-11T05:32:39Z")

</div>

.I am using addChild and removeChild. I have two main movieclips that this is based around. workss\_mc and work\_mc. workss\_mc is the slideshow, work\_mc is the selection grid. When you click on an object in work\_mc I am ad…

---

## [Trying to use restrict property to limit 1st char to 0-5, etc](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218)

<div class="topic-metadata">

**Author:** [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Replies:** 0\
**Last updated:** [September 11, 2009, 3:34am UTC](https://forum.kirupa.com/t/trying-to-use-restrict-property-to-limit-1st-char-to-0-5-etc/296218 "2009-09-11T03:34:07Z")

</div>

Hello all you RegEx fiends, I'm trying to use the restrict property of a TextInput field to limit the entry of minutes, so restricting the number of characters to 2, while restricting the first character to the range \[…

---

## [Key.removeListener Not Working](https://forum.kirupa.com/t/key-removelistener-not-working/296212)

<div class="topic-metadata">

**Author:** [@ventolinmono](https://forum.kirupa.com/u/ventolinmono)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 11:37pm UTC](https://forum.kirupa.com/t/key-removelistener-not-working/296212 "2009-09-10T23:37:35Z")

</div>

Hi Having trouble removing listeners. I have a navigation between 2 scenes. Each scene has its own listener for different functions on same keys. The first play of each scene goes without problems. When i go back to th…

---

## [Error from removeChildAt](https://forum.kirupa.com/t/error-from-removechildat/296211)

<div class="topic-metadata">

**Author:** [@KillinSprE](https://forum.kirupa.com/u/KillinSprE)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:19pm UTC](https://forum.kirupa.com/t/error-from-removechildat/296211 "2009-09-10T22:19:37Z")

</div>

I keep getting an "Error #1009: Cannot access a property or method of a null object reference" off the following function. Any ideas why? public function sendComplete\_logout( e:Event ):void { trace(parent.n…

---

## [Movie clip as button problem with currentTarget](https://forum.kirupa.com/t/movie-clip-as-button-problem-with-currenttarget/296207)

<div class="topic-metadata">

**Author:** [@theptsman](https://forum.kirupa.com/u/theptsman)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 8:49pm UTC](https://forum.kirupa.com/t/movie-clip-as-button-problem-with-currenttarget/296207 "2009-09-10T20:49:35Z")

</div>

Hi, Thanks to IqAndreas I have cleaned up and tried this code. Sadly he has no more input for me I hope someone can take a look at this simplified version and see why its not playing the MC's on click like it looks l…

---

## [Document Class Path Issues](https://forum.kirupa.com/t/document-class-path-issues/296202)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 7:05pm UTC](https://forum.kirupa.com/t/document-class-path-issues/296202 "2009-09-10T19:05:59Z")

</div>

Hi Up until very recently I've always coded my AS3 in the time line. I've just working on a project now though that uses the Document Class with Flash CS4. Currently I have my FLA and therefore my SWF file in the sam…

---

## [Masking multiple movie clips makes only one clickable](https://forum.kirupa.com/t/masking-multiple-movie-clips-makes-only-one-clickable/296201)

<div class="topic-metadata">

**Author:** [@niallos](https://forum.kirupa.com/u/niallos)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 6:59pm UTC](https://forum.kirupa.com/t/masking-multiple-movie-clips-makes-only-one-clickable/296201 "2009-09-10T18:59:23Z")

</div>

I'm having a really strange problem with movieclips that use a mask for reflection. On my main timeline i'm creating two instances of a movieclip named 'item'. In item.as i'm calling cacheAsBitmap and setting a gradie…

---

## [Stop Browser Scrolling On Arrow Keys](https://forum.kirupa.com/t/stop-browser-scrolling-on-arrow-keys/296199)

<div class="topic-metadata">

**Author:** [@PsuFan](https://forum.kirupa.com/u/PsuFan)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 6:12pm UTC](https://forum.kirupa.com/t/stop-browser-scrolling-on-arrow-keys/296199 "2009-09-10T18:12:30Z")

</div>

Hello, I am trying to stop the browser from scrolling when using the arrow keys within flash. It makes it impossible to play the game if the browser is always scrolling up and down when your using the arrow keys to pla…

---

## [Adding Preloader to XML Gallery](https://forum.kirupa.com/t/adding-preloader-to-xml-gallery/296198)

<div class="topic-metadata">

**Author:** [@Agold](https://forum.kirupa.com/u/Agold)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 5:54pm UTC](https://forum.kirupa.com/t/adding-preloader-to-xml-gallery/296198 "2009-09-10T17:54:01Z")

</div>

Ok so I have this XML gallery working perfectly, but I want to add a preloader to it. I have the loader and child all in one package, and that package is called via back and forward buttons according to if/else statement…

---

## [AS3 Version of this Vertical Scroller](https://forum.kirupa.com/t/as3-version-of-this-vertical-scroller/296196)

<div class="topic-metadata">

**Author:** [@zik80](https://forum.kirupa.com/u/zik80)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 5:40pm UTC](https://forum.kirupa.com/t/as3-version-of-this-vertical-scroller/296196 "2009-09-10T17:40:29Z")

</div>

I think I posted this question in the wrong section. Sorry about that. Can anyone share the AS3 code for the vertical scroller posted here by stringy (#2) http://www.kirupa.com/forum/showthread.php?t=199861? Other AS3 Ve…

---

## [Flash XML Photo issue Help!](https://forum.kirupa.com/t/flash-xml-photo-issue-help/296192)

<div class="topic-metadata">

**Author:** [@cato22](https://forum.kirupa.com/u/cato22)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 4:51pm UTC](https://forum.kirupa.com/t/flash-xml-photo-issue-help/296192 "2009-09-10T16:51:20Z")

</div>

I know I'm missing something simple but I've followed the tutorial at http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm and I created the images.xml and have all of the links set correctly but I'm getting…

---

## [Loading and Unloading .SWF files](https://forum.kirupa.com/t/loading-and-unloading-swf-files/296191)

<div class="topic-metadata">

**Author:** [@jackOD](https://forum.kirupa.com/u/jackOD)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 4:30pm UTC](https://forum.kirupa.com/t/loading-and-unloading-swf-files/296191 "2009-09-10T16:30:28Z")

</div>

I have created a site using the most basic amount of AS possible because i am new to it and am just finding my feet, i thought i might be able to get away with using just button links and slideshows but now my site is ge…

---

## [PRINT function](https://forum.kirupa.com/t/print-function/296189)

<div class="topic-metadata">

**Author:** [@sunGLASS](https://forum.kirupa.com/u/sunGLASS)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 4:09pm UTC](https://forum.kirupa.com/t/print-function/296189 "2009-09-10T16:09:48Z")

</div>

I'm using: function PrintFunc(WhatToPrint:Array) { var PrintQueue = new PrintJob(); var PrintStart:Boolean = PrintQueue.start(); if (PrintStart) { for (i=0; i\<=WhatToPrint.length; i++) { PrintQueue.addPage(WhatToPr…

---

## [Interesting way of defining drawRect:](https://forum.kirupa.com/t/interesting-way-of-defining-drawrect/296188)

<div class="topic-metadata">

**Author:** [@monotypic](https://forum.kirupa.com/u/monotypic)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 3:41pm UTC](https://forum.kirupa.com/t/interesting-way-of-defining-drawrect/296188 "2009-09-10T15:41:31Z")

</div>

Hey guys, I'm currently working my way through Joey Lott and Danny Patterson's Actionscript 3 with Design Patterns book and ran into this code: // var center is a boolean: // var shapeWidth and shapeHeight are just Nu…

---

## [Class for PHP-Flash communication](https://forum.kirupa.com/t/class-for-php-flash-communication/296187)

<div class="topic-metadata">

**Author:** [@ChickenChaser](https://forum.kirupa.com/u/ChickenChaser)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 3:40pm UTC](https://forum.kirupa.com/t/class-for-php-flash-communication/296187 "2009-09-10T15:40:42Z")

</div>

Please delete this Post.

---

## [\[AS2\_cs4\] Question](https://forum.kirupa.com/t/as2-cs4-question/296186)

<div class="topic-metadata">

**Author:** [@neonreel](https://forum.kirupa.com/u/neonreel)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 3:27pm UTC](https://forum.kirupa.com/t/as2-cs4-question/296186 "2009-09-10T15:27:40Z")

</div>

Hello All, I have been looking for a good tutorial to achieve a 3d window flip similar to this one: http://www.flashloaded.com/flashcomponents/flipnavigation/clock.html Any assistance would be appreciated. Thanks…

---

## [Login Page in Flash CS3/CS4](https://forum.kirupa.com/t/login-page-in-flash-cs3-cs4/296184)

<div class="topic-metadata">

**Author:** [@jdat74](https://forum.kirupa.com/u/jdat74)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 2:52pm UTC](https://forum.kirupa.com/t/login-page-in-flash-cs3-cs4/296184 "2009-09-10T14:52:37Z")

</div>

Hi, I am a bit of a newbie when it comes to flash, but I have managed to muddle my way through so far. However I have come across a bit of a problem. I am trying to create a simple login page, once the user has logged in…

---

## [Blend Modes (Soft Light)](https://forum.kirupa.com/t/blend-modes-soft-light/296183)

<div class="topic-metadata">

**Author:** [@enridp](https://forum.kirupa.com/u/enridp)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 2:51pm UTC](https://forum.kirupa.com/t/blend-modes-soft-light/296183 "2009-09-10T14:51:39Z")

</div>

Hi !! I need to apply the "Soft light" blending to my mc, but It seems Flash only supports "hardlight", can we solve this in some way? I found this: http://www.lostinactionscript.com/blog/index.php/2009/05/26/custom-blen…

---

## [Web Services - Policy](https://forum.kirupa.com/t/web-services-policy/296180)

<div class="topic-metadata">

**Author:** [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 1:53pm UTC](https://forum.kirupa.com/t/web-services-policy/296180 "2009-09-10T13:53:19Z")

</div>

I've never used the web service feature in Flex until yesterday, and it's pretty awesome. The confusing thing about it is how you actually run the project. I'm in the middle of reading an article about but was wonderi…

---

## [Cylinder shape](https://forum.kirupa.com/t/cylinder-shape/296175)

<div class="topic-metadata">

**Author:** [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 1:12pm UTC](https://forum.kirupa.com/t/cylinder-shape/296175 "2009-09-10T13:12:33Z")

</div>

Hi Guys, One interesting problem I have designed a cylinder shape in flash. The edges of cylinders are coming out and also they are looking blur. But the interesting thing is when I see the cylinder on 300% it is cle…

---

## ['Guide' the layers](https://forum.kirupa.com/t/guide-the-layers/296172)

<div class="topic-metadata">

**Author:** [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 12:47pm UTC](https://forum.kirupa.com/t/guide-the-layers/296172 "2009-09-10T12:47:51Z")

</div>

I am working on a file and it contains lots of layers many times I have to 'Guide' the layers. some times I have to 'Guide' around 40-50 layers to hide the animation/graphics. \*\* Process I am following\*\* 1. Select the la…

---

## [Nothing works properly in a Loader](https://forum.kirupa.com/t/nothing-works-properly-in-a-loader/296171)

<div class="topic-metadata">

**Author:** [@energy](https://forum.kirupa.com/u/energy)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 12:40pm UTC](https://forum.kirupa.com/t/nothing-works-properly-in-a-loader/296171 "2009-09-10T12:40:35Z")

</div>

echo "I am Facing a Strange problem"; I'm using a Loader to load few swf files one after the other. \*var m = new Loader(); m.load(someURLRequest);\* Fine, i can load them without a problem but i want to remove tha …

---

## [Managing display list](https://forum.kirupa.com/t/managing-display-list/296170)

<div class="topic-metadata">

**Author:** [@luwin](https://forum.kirupa.com/u/luwin)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 12:38pm UTC](https://forum.kirupa.com/t/managing-display-list/296170 "2009-09-10T12:38:50Z")

</div>

Hi, I have some trouble with the displaylist in AS3. In my project I have 3 types of elements that spawn at different times. When I hold the mousebutton down object 1 appears. When I release the mousebutton, obje…

---

## [Sound Class can't show bytesLoaded in browser](https://forum.kirupa.com/t/sound-class-cant-show-bytesloaded-in-browser/296169)

<div class="topic-metadata">

**Author:** [@radd](https://forum.kirupa.com/u/radd)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 11:43am UTC](https://forum.kirupa.com/t/sound-class-cant-show-bytesloaded-in-browser/296169 "2009-09-10T11:43:27Z")

</div>

Hi, I have this MP3 player ; http://tiny.cc/rocks128 I embed it with swfObject and the way I'm getting the MP3 is by mySound.load("http://www.../rs/play\_song/"); My problem is that I can't access the mySound.bytesLoa…

---

## [Close swf using actionscript](https://forum.kirupa.com/t/close-swf-using-actionscript/296167)

<div class="topic-metadata">

**Author:** [@skeerthana](https://forum.kirupa.com/u/skeerthana)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 11:15am UTC](https://forum.kirupa.com/t/close-swf-using-actionscript/296167 "2009-09-10T11:15:14Z")

</div>

Hello people Im wondering why the following script isnt working fine for me o close a swf(flash file). on(release) { fscommand("quit", true); } Kindly help me asap. Im having high time struggling. Tnkz n advanc…

---

## [Action Script and Php \[AS 2.0\]](https://forum.kirupa.com/t/action-script-and-php-as-2-0/296166)

<div class="topic-metadata">

**Author:** [@Signy](https://forum.kirupa.com/u/Signy)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:46am UTC](https://forum.kirupa.com/t/action-script-and-php-as-2-0/296166 "2009-09-10T10:46:36Z")

</div>

Hello all, Recently I've been experimenting with taking values from a simple php file and displaying it in a dynamic text box whilst returning a value back into the database. So far I have this. dynamic class scri…

---

## [Cursor movement in AS3](https://forum.kirupa.com/t/cursor-movement-in-as3/296165)

<div class="topic-metadata">

**Author:** [@noobie123](https://forum.kirupa.com/u/noobie123)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:29am UTC](https://forum.kirupa.com/t/cursor-movement-in-as3/296165 "2009-09-10T10:29:08Z")

</div>

I have an array of input TextFields. I want to dynamically move the cursor to the next TextField in the array whenever a key is pressed. How can I achieve this?

---

## [mouseX in a class](https://forum.kirupa.com/t/mousex-in-a-class/296164)

<div class="topic-metadata">

**Author:** [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 10:10am UTC](https://forum.kirupa.com/t/mousex-in-a-class/296164 "2009-09-10T10:10:22Z")

</div>

\_xPercent = mouseX / \_stage.stageWidth; \_yPercent = mouseY / \_stage.stageHeight; if I want to use mouseX and mouseY in my class whats the most effective way to do this? I know if I extend a class to Sprite for …

---

## [addChild(problem);](https://forum.kirupa.com/t/addchild-problem/296163)

<div class="topic-metadata">

**Author:** [@burger](https://forum.kirupa.com/u/burger)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 9:27am UTC](https://forum.kirupa.com/t/addchild-problem/296163 "2009-09-10T09:27:59Z")

</div>

sorry, new to the AS3 thing, what am I doing wrong? the text field wont follow the movie? package com.equ.Interface{ import flash.display.Sprite; import flash.display.MovieClip; import flash.text.TextField; impor…

---

## [\[URGENT HELP\] Rotating Menu (AS 2.0)](https://forum.kirupa.com/t/urgent-help-rotating-menu-as-2-0/296159)

<div class="topic-metadata">

**Author:** [@anxiousz](https://forum.kirupa.com/u/anxiousz)\
**Replies:** 0\
**Last updated:** [September 10, 2009, 8:59am UTC](https://forum.kirupa.com/t/urgent-help-rotating-menu-as-2-0/296159 "2009-09-10T08:59:43Z")

</div>

Hi all, I'm just wondering if someone would be kind enough to help me solve this problem. I've created a rotating navigation menu with 4 parts/submenus. I'm having trouble of figuring the following: \[LIST=1\] \[\*\]To ma…

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=514)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=516)
