# programming

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

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

**Page:** 231

---

## [Unable to Reference function from non-parent class](https://forum.kirupa.com/t/unable-to-reference-function-from-non-parent-class/324983)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [September 20, 2011, 1:30am UTC](https://forum.kirupa.com/t/unable-to-reference-function-from-non-parent-class/324983 "2011-09-20T01:30:15Z")

</div>

So I am trying to access a variable that is defined within my parent code from a class which has been called from my parent code. I am using this: TileCode(parent).game\_quests.add\_quest(0); to try to access the gam…

---

## [ScaleZ causing issues when used to fix image display problems](https://forum.kirupa.com/t/scalez-causing-issues-when-used-to-fix-image-display-problems/324981)

<div class="topic-metadata">

**Author:** [@whornak](https://forum.kirupa.com/u/whornak)\
**Replies:** 0\
**Last updated:** [September 19, 2011, 11:16pm UTC](https://forum.kirupa.com/t/scalez-causing-issues-when-used-to-fix-image-display-problems/324981 "2011-09-19T23:16:49Z")

</div>

In an attempt to fix an image display problem, where the image is displayed with much of it being jagged, I happened across the 'scaleZ' setting. Not knowing of any other option to correct this issue I just changed t…

---

## [All Movie Clips to be placed on Stage with equal gap between each Movie Clip](https://forum.kirupa.com/t/all-movie-clips-to-be-placed-on-stage-with-equal-gap-between-each-movie-clip/324978)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [September 19, 2011, 7:51pm UTC](https://forum.kirupa.com/t/all-movie-clips-to-be-placed-on-stage-with-equal-gap-between-each-movie-clip/324978 "2011-09-19T19:51:34Z")

</div>

Hi, I have some (Eg. 10) Movie Clips on bottom of the Stage (aligned horizontally) with different sizes (different width & height). I want them to align vertically on middle of the stage with same gap (irrespective of …

---

## [Optimal Interfaces](https://forum.kirupa.com/t/optimal-interfaces/324976)

<div class="topic-metadata">

**Author:** [@The1Banana](https://forum.kirupa.com/u/The1Banana)\
**Replies:** 0\
**Last updated:** [September 19, 2011, 5:57pm UTC](https://forum.kirupa.com/t/optimal-interfaces/324976 "2011-09-19T17:57:30Z")

</div>

I'm fairly new to AS3. Mainly, the largest barrier was transitioning game screens on individual frames to placing each graphic through code on a single frame when needed (which from what I've heard, is the "right" way to…

---

## [Multiple event handlers on one object](https://forum.kirupa.com/t/multiple-event-handlers-on-one-object/324974)

<div class="topic-metadata">

**Author:** [@DSlish](https://forum.kirupa.com/u/DSlish)\
**Replies:** 0\
**Last updated:** [September 19, 2011, 12:37am UTC](https://forum.kirupa.com/t/multiple-event-handlers-on-one-object/324974 "2011-09-19T00:37:08Z")

</div>

I’m new to AS3 and trying to turn a Movie Clip into a classic button - roll-over to display text, roll-off and text goes away, click and go to frame of animation. Each works on its own but when I put all 3 on the same M…

---

## [Using Symbols inside Packages](https://forum.kirupa.com/t/using-symbols-inside-packages/324973)

<div class="topic-metadata">

**Author:** [@andreffonseca](https://forum.kirupa.com/u/andreffonseca)\
**Replies:** 0\
**Last updated:** [September 18, 2011, 8:40pm UTC](https://forum.kirupa.com/t/using-symbols-inside-packages/324973 "2011-09-18T20:40:46Z")

</div>

Greetings... OK, heres the thing. Since i cannot stop the code from continuing while i', waiting for amf to send the data, i remember to put a simple rectangle with alpha 0 in front of the stage while waiting for amf t…

---

## [as3 Syntax Coloring](https://forum.kirupa.com/t/as3-syntax-coloring/324972)

<div class="topic-metadata">

**Author:** [@bonassus](https://forum.kirupa.com/u/bonassus)\
**Replies:** 0\
**Last updated:** [September 18, 2011, 8:13pm UTC](https://forum.kirupa.com/t/as3-syntax-coloring/324972 "2011-09-18T20:13:46Z")

</div>

I would like to display sample as3 code in a TextField and be able to apply syntax coloring to it. I have done some searching without much luck there seems to be a way to do it with java script and html . I was hoping to…

---

## [How to MASK an external .SWF movie?](https://forum.kirupa.com/t/how-to-mask-an-external-swf-movie/324970)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [September 18, 2011, 5:42pm UTC](https://forum.kirupa.com/t/how-to-mask-an-external-swf-movie/324970 "2011-09-18T17:42:43Z")

</div>

Hi, I am using external .SWF movie on stage by using the following code. I want to mask some of the portion of this movie. How can I mask an external movie? Code: var mySwf1:SWFLoader = new SWFLoader("Clock.sw…

---

## [Checking if child exists](https://forum.kirupa.com/t/checking-if-child-exists/324965)

<div class="topic-metadata">

**Author:** [@ematrix](https://forum.kirupa.com/u/ematrix)\
**Replies:** 0\
**Last updated:** [September 18, 2011, 10:50am UTC](https://forum.kirupa.com/t/checking-if-child-exists/324965 "2011-09-18T10:50:25Z")

</div>

Hey Guys I am trying to check if a MC is on the screen but it says: 1120: Access of undefined property newBullet. The code that is giving the error is in engine.as if(stage.getChildByName(newBullet)) { newB…

---

## [A question of scope](https://forum.kirupa.com/t/a-question-of-scope/324962)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 10:01pm UTC](https://forum.kirupa.com/t/a-question-of-scope/324962 "2011-09-17T22:01:38Z")

</div>

What am I not seeing? I have dozens of movie clips on the stage and dozens more that are added dynamically. (Think a puzzle...bits on the stage and other pieces that are dynamically added and the shapes match and you h…

---

## [Custom sorting algorithms' speed problem](https://forum.kirupa.com/t/custom-sorting-algorithms-speed-problem/324959)

<div class="topic-metadata">

**Author:** [@OMG](https://forum.kirupa.com/u/OMG)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 7:38pm UTC](https://forum.kirupa.com/t/custom-sorting-algorithms-speed-problem/324959 "2011-09-17T19:38:14Z")

</div>

I'm doing a project where I manually create sorting algorithms. After several tests I found out that my heapsort is way quicker than quicksort (I think it should be the other way around), my selection sort is also fast…

---

## [Arrg! error 1180?! why can't I access public functions?!](https://forum.kirupa.com/t/arrg-error-1180-why-cant-i-access-public-functions/324957)

<div class="topic-metadata">

**Author:** [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 6:04pm UTC](https://forum.kirupa.com/t/arrg-error-1180-why-cant-i-access-public-functions/324957 "2011-09-17T18:04:37Z")

</div>

No idea what I'm doing wrong here, it just won't let me access any of my public methods on my class. I just keep getting "Error 1180: call to a possibly undefined method"! If I run the same function in the constructor …

---

## [Sol detection help](https://forum.kirupa.com/t/sol-detection-help/324956)

<div class="topic-metadata">

**Author:** [@kevansevans](https://forum.kirupa.com/u/kevansevans)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 5:45pm UTC](https://forum.kirupa.com/t/sol-detection-help/324956 "2011-09-17T17:45:00Z")

</div>

Okay, Im new here, but not a stranger to internet forums. Here is the problem I'm having. I participate in an online community revolving around a flash game. This community frequently transfers their sols to collaborat…

---

## [Limits](https://forum.kirupa.com/t/limits/324955)

<div class="topic-metadata">

**Author:** [@felastine](https://forum.kirupa.com/u/felastine)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 5:13pm UTC](https://forum.kirupa.com/t/limits/324955 "2011-09-17T17:13:31Z")

</div>

Hi there. I read that Flash has certain limits on Movieclips, Bitmaps, Sprites etc. Here is a link about all these limits. http://www.flashuser.net/general/flash-limitations.html I just want to make certain somethi…

---

## [Removing movie clip (I've tried everything google has suggested!)](https://forum.kirupa.com/t/removing-movie-clip-ive-tried-everything-google-has-suggested/324954)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 1:31pm UTC](https://forum.kirupa.com/t/removing-movie-clip-ive-tried-everything-google-has-suggested/324954 "2011-09-17T13:31:49Z")

</div>

I have a simple mini game where when you touch the screen a firework explodes. It is created using addChild (fw); and accesses a 40 frame movie clip explosion. I need to remove the explosion at frame 40 but for the life …

---

## [Will FLASH die?](https://forum.kirupa.com/t/will-flash-die/324952)

<div class="topic-metadata">

**Author:** [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 9:08am UTC](https://forum.kirupa.com/t/will-flash-die/324952 "2011-09-17T09:08:36Z")

</div>

Hello everyone! I didnt know where to put this question, so i placed it here. I have heard during the last year LOTS of things saying that FLASH will die. That HTML5 will kill flash and now seems that Windows 8 will not …

---

## [Avtar selecting](https://forum.kirupa.com/t/avtar-selecting/324951)

<div class="topic-metadata">

**Author:** [@gopik3](https://forum.kirupa.com/u/gopik3)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 7:30am UTC](https://forum.kirupa.com/t/avtar-selecting/324951 "2011-09-17T07:30:29Z")

</div>

hello i want to create karate game. initially having 30 character with various style like a choosing Avatar(face,skin,hair etc..) if anybody having good tutorials for this task send it to me very urgent Tha…

---

## [How do I change stage dimensions?](https://forum.kirupa.com/t/how-do-i-change-stage-dimensions/324950)

<div class="topic-metadata">

**Author:** [@Joseph\_Dowling](https://forum.kirupa.com/u/Joseph_Dowling)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 6:58am UTC](https://forum.kirupa.com/t/how-do-i-change-stage-dimensions/324950 "2011-09-17T06:58:58Z")

</div>

i'm using AS3 and I'm trying to change the stage dimensions to get bigger when I press a button. The current dimensions are 550 x 700, and I thought the code:import flash.events.MouseEvent;btn.addEventListener(MouseEvent…

---

## [Is this possible to do in Flash CS5?](https://forum.kirupa.com/t/is-this-possible-to-do-in-flash-cs5/324947)

<div class="topic-metadata">

**Author:** [@BLKelsey](https://forum.kirupa.com/u/BLKelsey)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 5:21am UTC](https://forum.kirupa.com/t/is-this-possible-to-do-in-flash-cs5/324947 "2011-09-17T05:21:19Z")

</div>

Was wondering if there is a way for dynamic text to self-scroll? What I want is like after you see a movie you see the rolling credit. Is there this capability within Flash CS5? If so, I'd sure appreciate a tutorial link…

---

## [Question about debugging](https://forum.kirupa.com/t/question-about-debugging/324946)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 2:53am UTC](https://forum.kirupa.com/t/question-about-debugging/324946 "2011-09-17T02:53:27Z")

</div>

I added a trace line and it broke my entire app. No lie. A trace line. I took it out and it didn't help. Now I've got a broken parent and I can't figure out why. I'm about to have a meltdown. I'm right on the verge of na…

---

## [Tutorial: CSS Attribute Selectors](https://forum.kirupa.com/t/tutorial-css-attribute-selectors/324944)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 12:47am UTC](https://forum.kirupa.com/t/tutorial-css-attribute-selectors/324944 "2011-09-17T00:47:21Z")

</div>

Hi everyone, This is the place to discuss anything and everything related to the \*\*CSS Attribute Selectors \*\*tutorial. Jump right on in \[stuck\_out\_tongue\] Cheers, Kirupa (-:

---

## [The "when" block (theoretical)](https://forum.kirupa.com/t/the-when-block-theoretical/324943)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [September 17, 2011, 12:23am UTC](https://forum.kirupa.com/t/the-when-block-theoretical/324943 "2011-09-17T00:23:16Z")

</div>

Note: Once again I am playing around with my purely fictional language beyond the confined bounds of AS3. This post has no practical applications what so ever, and is merely an exercise of the mind. This post serves ab…

---

## [How do you convert this to ActionScript 3.0?](https://forum.kirupa.com/t/how-do-you-convert-this-to-actionscript-3-0/324942)

<div class="topic-metadata">

**Author:** [@Flash\_flea](https://forum.kirupa.com/u/Flash_flea)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 9:59pm UTC](https://forum.kirupa.com/t/how-do-you-convert-this-to-actionscript-3-0/324942 "2011-09-16T21:59:12Z")

</div>

I'm stumped with this code - it seems that every time I port some of the reserved words of this AS2 code (what it does is to send mail using both Flash and PHP), I'm getting errors stop(); var senderLoad:LoadVars = …

---

## [Why does this code work in one place but not another?](https://forum.kirupa.com/t/why-does-this-code-work-in-one-place-but-not-another/324941)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 8:35pm UTC](https://forum.kirupa.com/t/why-does-this-code-work-in-one-place-but-not-another/324941 "2011-09-16T20:35:13Z")

</div>

I have a class. Inside the class are two public functions. One calls this: MovieClip(root)\["bmc"+PuzzleGlobals.puzzleAbbrev\].addChild(this); And the other calls this: MovieClip(root)\["bmc"+PuzzleGlobals.puzzleAbbr…

---

## [AS3, XML, and parsing data to text fields](https://forum.kirupa.com/t/as3-xml-and-parsing-data-to-text-fields/324940)

<div class="topic-metadata">

**Author:** [@imhappe](https://forum.kirupa.com/u/imhappe)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 8:19pm UTC](https://forum.kirupa.com/t/as3-xml-and-parsing-data-to-text-fields/324940 "2011-09-16T20:19:00Z")

</div>

Hi all. New to AS3, and just went through the great Kirupa tutorial on parsing XML using AS3 (thanks!). My trace output is fine, but when I try to send that parsed data to a text box, only the last XML node appears in th…

---

## [Trigger all MouseClick events for each object under the mouse](https://forum.kirupa.com/t/trigger-all-mouseclick-events-for-each-object-under-the-mouse/324939)

<div class="topic-metadata">

**Author:** [@ingo\_z2m](https://forum.kirupa.com/u/ingo_z2m)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 8:16pm UTC](https://forum.kirupa.com/t/trigger-all-mouseclick-events-for-each-object-under-the-mouse/324939 "2011-09-16T20:16:20Z")

</div>

Hello Everybody, I have a question regarding mouse click events, maybe you have some ideas how to solve that. Let's assume i have a class MyDisplayObject extending a Sprite. I have placed several instances of that …

---

## [Variable in a variable name](https://forum.kirupa.com/t/variable-in-a-variable-name/324937)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 6:50pm UTC](https://forum.kirupa.com/t/variable-in-a-variable-name/324937 "2011-09-16T18:50:01Z")

</div>

I feel like this is such a simple question it's surely been answered somewhere before, but I can't find anything on google or the forum search that can help me. I have several variables. To make it simple lets say they…

---

## [The instance clip and its own coordinates](https://forum.kirupa.com/t/the-instance-clip-and-its-own-coordinates/324935)

<div class="topic-metadata">

**Author:** [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 4:21pm UTC](https://forum.kirupa.com/t/the-instance-clip-and-its-own-coordinates/324935 "2011-09-16T16:21:28Z")

</div>

I have a movieclip (imported from library) in main stage, with mc.\_x you have the x position in the main stage. But I wnt to know its position in its OWN corrdinates center. When you created the movieclip in authoring wa…

---

## [Populating a database FROM CONTENTS of multiple movie clips within a main movie clip](https://forum.kirupa.com/t/populating-a-database-from-contents-of-multiple-movie-clips-within-a-main-movie-clip/324934)

<div class="topic-metadata">

**Author:** [@O\_Tamandua](https://forum.kirupa.com/u/O_Tamandua)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 2:13pm UTC](https://forum.kirupa.com/t/populating-a-database-from-contents-of-multiple-movie-clips-within-a-main-movie-clip/324934 "2011-09-16T14:13:21Z")

</div>

I apologize. This might be a more simpler example of what I'm trying to do. In my main .fla file I have a movie clip onstage called "square". The movieclip is empty. Below that are five buttons (black, red, blue, gr…

---

## [\[AS2.0\] Issue with angles and Math.atan2](https://forum.kirupa.com/t/as2-0-issue-with-angles-and-math-atan2/324933)

<div class="topic-metadata">

**Author:** [@mastermode](https://forum.kirupa.com/u/mastermode)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 1:48pm UTC](https://forum.kirupa.com/t/as2-0-issue-with-angles-and-math-atan2/324933 "2011-09-16T13:48:44Z")

</div>

Hey guys! It's been some time since I've posted in this section, but I have an interesting issue on my hands. It's not something I can't get over, but I want to see your ideas too, since I might be concentrating too mu…

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

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