# programming

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

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

**Page:** 136

---

## [Flash as2 game: Help changeing number with click](https://forum.kirupa.com/t/flash-as2-game-help-changeing-number-with-click/330318)

<div class="topic-metadata">

**Author:** [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Replies:** 0\
**Last updated:** [January 1, 2013, 10:03pm UTC](https://forum.kirupa.com/t/flash-as2-game-help-changeing-number-with-click/330318 "2013-01-01T22:03:50Z")

</div>

Here is the run down. I have a simple text displaying the number 0. I have a small up arrow above it and a down arrow below it. Each time I click the up arrow I want the value to go up by 1 until the value reaches 9. If…

---

## [Stacked objects that both interact with the mouse](https://forum.kirupa.com/t/stacked-objects-that-both-interact-with-the-mouse/330317)

<div class="topic-metadata">

**Author:** [@Flivor2012](https://forum.kirupa.com/u/Flivor2012)\
**Replies:** 0\
**Last updated:** [January 1, 2013, 11:20am UTC](https://forum.kirupa.com/t/stacked-objects-that-both-interact-with-the-mouse/330317 "2013-01-01T11:20:44Z")

</div>

Hi, I have an external SWF that I load into a Loader object. I add this Loader object as a child to a MovieClip and add this MovieClip to my stage. I now want to draw a transparent rectangular Sprite on top of the Loader…

---

## [Please help with PHP](https://forum.kirupa.com/t/please-help-with-php/330314)

<div class="topic-metadata">

**Author:** [@kunst](https://forum.kirupa.com/u/kunst)\
**Replies:** 0\
**Last updated:** [December 31, 2012, 9:04pm UTC](https://forum.kirupa.com/t/please-help-with-php/330314 "2012-12-31T21:04:06Z")

</div>

Hi, please help me with this code. After echoing the following stuff from a form, Im getting this: \<?php txt = "\< object ....... \< param name=......... \< /object\> ?\> How is it possible to remove those white space a…

---

## [Can anyone help with calling arrays from arrays please](https://forum.kirupa.com/t/can-anyone-help-with-calling-arrays-from-arrays-please/330313)

<div class="topic-metadata">

**Author:** [@basil731](https://forum.kirupa.com/u/basil731)\
**Replies:** 0\
**Last updated:** [December 31, 2012, 2:31pm UTC](https://forum.kirupa.com/t/can-anyone-help-with-calling-arrays-from-arrays-please/330313 "2012-12-31T14:31:23Z")

</div>

Hi, new here and to As3 in general. I'm very new to flash but i am learning fairly quickly. I understand about arrays etc but i've promised my boys i'd try and make a Yugioh game for them. I know there are some already…

---

## [Convert HTML into XHTML](https://forum.kirupa.com/t/convert-html-into-xhtml/330312)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [December 31, 2012, 9:11am UTC](https://forum.kirupa.com/t/convert-html-into-xhtml/330312 "2012-12-31T09:11:22Z")

</div>

Hi there, Is there any ready made function in PHP to achieve this? Basically I'm taking HTML data from Smarty template and want to convert it into XHTML through coding. I've done lot of googling on this but nothing …

---

## [hitTest an array of mc-s](https://forum.kirupa.com/t/hittest-an-array-of-mc-s/330308)

<div class="topic-metadata">

**Author:** [@ancerick](https://forum.kirupa.com/u/ancerick)\
**Replies:** 0\
**Last updated:** [December 30, 2012, 6:19pm UTC](https://forum.kirupa.com/t/hittest-an-array-of-mc-s/330308 "2012-12-30T18:19:28Z")

</div>

basicly i have a scene where id like to check if any of the names in components array hits with positive\_mc - hitTest seemed to work fine while inside bracets was just a mc name but when its a string it dont seem to see…

---

## [Resource limit for this resource type exceeded - Starling](https://forum.kirupa.com/t/resource-limit-for-this-resource-type-exceeded-starling/330307)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [December 30, 2012, 5:50pm UTC](https://forum.kirupa.com/t/resource-limit-for-this-resource-type-exceeded-starling/330307 "2012-12-30T17:50:34Z")

</div>

Hello again! I got this annoying error that's telling me that\*\* this resource type exceeded.\*\* I've tried to catch where the error happens, but wasn't able to find it. If I comment out the red-marked like, this error won…

---

## [Webservice Problem](https://forum.kirupa.com/t/webservice-problem/330300)

<div class="topic-metadata">

**Author:** [@rohithgopi](https://forum.kirupa.com/u/rohithgopi)\
**Replies:** 0\
**Last updated:** [December 28, 2012, 10:29am UTC](https://forum.kirupa.com/t/webservice-problem/330300 "2012-12-28T10:29:38Z")

</div>

hi, In my application I am trying to fetch a byte array(audio) and play it through flash(Using ASP.net and Flash). For that i am using web service for fetching the data from the database. While running the solution in …

---

## [Accessing a variable of an object stored in an Array](https://forum.kirupa.com/t/accessing-a-variable-of-an-object-stored-in-an-array/330299)

<div class="topic-metadata">

**Author:** [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Replies:** 0\
**Last updated:** [December 28, 2012, 10:03am UTC](https://forum.kirupa.com/t/accessing-a-variable-of-an-object-stored-in-an-array/330299 "2012-12-28T10:03:28Z")

</div>

So as the title suggests I am dealing with objects in an array. Here is an example of what I am doing. (No they are not as static as I am writing them here. This is just an example to explain my situation) \_global.her…

---

## [OOP problem again passing an array](https://forum.kirupa.com/t/oop-problem-again-passing-an-array/330298)

<div class="topic-metadata">

**Author:** [@FJW](https://forum.kirupa.com/u/FJW)\
**Replies:** 0\
**Last updated:** [December 27, 2012, 1:54pm UTC](https://forum.kirupa.com/t/oop-problem-again-passing-an-array/330298 "2012-12-27T13:54:03Z")

</div>

Hi Guys hope you all had a great Christmas. Perhaps you could find some time to help with this. have 2 classes as follows and wish to pass the pointsArray Array from Basic class to the tools class. \<CODE\> package { im…

---

## [Tutorial: CSS Filters](https://forum.kirupa.com/t/tutorial-css-filters/330294)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [December 27, 2012, 7:58am UTC](https://forum.kirupa.com/t/tutorial-css-filters/330294 "2012-12-27T07:58:46Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]Hi everyone,\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]This is the happening place to discuss all things related to the CSS Filters\[/COLOR\]\[/COLOR\]\[COLOR=#333333\]\[COLOR=#333333\] tutorial…

---

## [Stupid noob girl here, please help with random text from file](https://forum.kirupa.com/t/stupid-noob-girl-here-please-help-with-random-text-from-file/330292)

<div class="topic-metadata">

**Author:** [@MichelleMowler](https://forum.kirupa.com/u/MichelleMowler)\
**Replies:** 0\
**Last updated:** [December 26, 2012, 10:43pm UTC](https://forum.kirupa.com/t/stupid-noob-girl-here-please-help-with-random-text-from-file/330292 "2012-12-26T22:43:24Z")

</div>

Hello everyone! I'm really sorry to bother everyone on here, because I actually don't know much at all about action script and this Flash, this is like my only ever project and all I need is to have a blank text field an…

---

## [Starling - Load SWF and draw its content](https://forum.kirupa.com/t/starling-load-swf-and-draw-its-content/330291)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [December 26, 2012, 2:45pm UTC](https://forum.kirupa.com/t/starling-load-swf-and-draw-its-content/330291 "2012-12-26T14:45:29Z")

</div>

Hi! I have a Image and a RenderTexture-variable. I'm loading SWF's dynamically and once they are loaded I want to use the RenderTextures draw-function to draw the SWFs content into the Image variable. Here is the code …

---

## [\[Help\] How to compile .fla files](https://forum.kirupa.com/t/help-how-to-compile-fla-files/330289)

<div class="topic-metadata">

**Author:** [@players02](https://forum.kirupa.com/u/players02)\
**Replies:** 0\
**Last updated:** [December 26, 2012, 7:56am UTC](https://forum.kirupa.com/t/help-how-to-compile-fla-files/330289 "2012-12-26T07:56:14Z")

</div>

Hi, I would like to enquire how I can compile different .fla files into one .fla file. Having problems trying to get my teams projects and putting them together all into one .fla file. Any suggestions?

---

## [FMX04-Complicated button](https://forum.kirupa.com/t/fmx04-complicated-button/330287)

<div class="topic-metadata">

**Author:** [@steel6000](https://forum.kirupa.com/u/steel6000)\
**Replies:** 0\
**Last updated:** [December 26, 2012, 3:31am UTC](https://forum.kirupa.com/t/fmx04-complicated-button/330287 "2012-12-26T03:31:31Z")

</div>

help me to make a button which will open a window, this window contain another button that has an action to move the animation to frame number 10 of next scene in flash MX2004.

---

## [AS2 \> Clock hands movement](https://forum.kirupa.com/t/as2-clock-hands-movement/330284)

<div class="topic-metadata">

**Author:** [@hsiehson](https://forum.kirupa.com/u/hsiehson)\
**Replies:** 0\
**Last updated:** [December 25, 2012, 3:04am UTC](https://forum.kirupa.com/t/as2-clock-hands-movement/330284 "2012-12-25T03:04:58Z")

</div>

Hi all, I'm creating a teaching material that teaches children learn to read the time. I currently have a clock with both hour and minute hands draggable independently, but WHAT IF I want the hour-hand to move (ie. rot…

---

## [Why Matrix does this?](https://forum.kirupa.com/t/why-matrix-does-this/330283)

<div class="topic-metadata">

**Author:** [@na\_il](https://forum.kirupa.com/u/na_il)\
**Replies:** 0\
**Last updated:** [December 25, 2012, 2:04am UTC](https://forum.kirupa.com/t/why-matrix-does-this/330283 "2012-12-25T02:04:05Z")

</div>

I want to be able to drag and drop the movieclip and dynamically skew based on the mouse position but. When I click the movie clip it jumps to top left corner, and I can't drag and drop the mc.... Why is this? import …

---

## [Send Image Data to flash](https://forum.kirupa.com/t/send-image-data-to-flash/330281)

<div class="topic-metadata">

**Author:** [@ash\_at\_risk](https://forum.kirupa.com/u/ash_at_risk)\
**Replies:** 0\
**Last updated:** [December 24, 2012, 8:28am UTC](https://forum.kirupa.com/t/send-image-data-to-flash/330281 "2012-12-24T08:28:41Z")

</div>

Hello everyone, How can i send image data from javascript to flash via callback method, My images are ready & callback is working but as i try to send image from javascript to flash my browser hangs Is there any work aro…

---

## [How to remove xml loaded jpgs on EXIT\_FRAME?](https://forum.kirupa.com/t/how-to-remove-xml-loaded-jpgs-on-exit-frame/330279)

<div class="topic-metadata">

**Author:** [@ngrinchenko](https://forum.kirupa.com/u/ngrinchenko)\
**Replies:** 0\
**Last updated:** [December 24, 2012, 4:59am UTC](https://forum.kirupa.com/t/how-to-remove-xml-loaded-jpgs-on-exit-frame/330279 "2012-12-24T04:59:16Z")

</div>

I have a perfectly working code which removes an xml loaded image thumb scroller. It is set up to remove the loaded jpg's on a mouse click with the listener assigned to a navigation object. My problem is that on that …

---

## [Cursor over dynamic textfield fails to track](https://forum.kirupa.com/t/cursor-over-dynamic-textfield-fails-to-track/330277)

<div class="topic-metadata">

**Author:** [@straris](https://forum.kirupa.com/u/straris)\
**Replies:** 0\
**Last updated:** [December 23, 2012, 9:53pm UTC](https://forum.kirupa.com/t/cursor-over-dynamic-textfield-fails-to-track/330277 "2012-12-23T21:53:26Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I am having a problem and i am not sure what to do although the answer must be obvious..\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=Arial\]I have a movieclip and inside the movieclip a dynamic text fie…

---

## [Searching for a Lua interpreter library to use in Flash Project](https://forum.kirupa.com/t/searching-for-a-lua-interpreter-library-to-use-in-flash-project/330276)

<div class="topic-metadata">

**Author:** [@tick\_tock1](https://forum.kirupa.com/u/tick_tock1)\
**Replies:** 0\
**Last updated:** [December 23, 2012, 9:13pm UTC](https://forum.kirupa.com/t/searching-for-a-lua-interpreter-library-to-use-in-flash-project/330276 "2012-12-23T21:13:45Z")

</div>

I've been looking for a Lua intepreter to use inside a flash project. To clarify, I want the ability to take in raw Lua code, not complied code, and run it on the fly in my running Flash project. The closest things to a …

---

## [Odd problem with shapeflag and hitTest](https://forum.kirupa.com/t/odd-problem-with-shapeflag-and-hittest/330273)

<div class="topic-metadata">

**Author:** [@Rittto](https://forum.kirupa.com/u/Rittto)\
**Replies:** 0\
**Last updated:** [December 22, 2012, 7:17pm UTC](https://forum.kirupa.com/t/odd-problem-with-shapeflag-and-hittest/330273 "2012-12-22T19:17:06Z")

</div>

I've been working on getting slopes working properly for a horribly long amount of time. I've almost got it working, but it's still annoyingly difficult. Here's the current problem. Moving the character without moving…

---

## [Multiplayer Flash](https://forum.kirupa.com/t/multiplayer-flash/330270)

<div class="topic-metadata">

**Author:** [@Tiffany\_Rehsif](https://forum.kirupa.com/u/Tiffany_Rehsif)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 9:34pm UTC](https://forum.kirupa.com/t/multiplayer-flash/330270 "2012-12-21T21:34:18Z")

</div>

Hello, I know people have asked this before, but for the most part the answers have not been useful. I have built a rather simple flash game, the point of the game: Click the square. Whoever clicks the square first, gets…

---

## [Mesh plus Sprite rotation for Timbeeeeeeerrrrr](https://forum.kirupa.com/t/mesh-plus-sprite-rotation-for-timbeeeeeeerrrrr/330268)

<div class="topic-metadata">

**Author:** [@FJW](https://forum.kirupa.com/u/FJW)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 5:31pm UTC](https://forum.kirupa.com/t/mesh-plus-sprite-rotation-for-timbeeeeeeerrrrr/330268 "2012-12-21T17:31:59Z")

</div>

Hi, I hope this is the correct forum for this question. I have a piece of simple code that puts a tree picture as sprite onto a mesh and displays it on the view. All I want to do is make the tree fall over, from a pivot …

---

## [Auto adjustment (expand or collapse) of sub-buttons when clicked on the main button](https://forum.kirupa.com/t/auto-adjustment-expand-or-collapse-of-sub-buttons-when-clicked-on-the-main-button/330266)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 8:10am UTC](https://forum.kirupa.com/t/auto-adjustment-expand-or-collapse-of-sub-buttons-when-clicked-on-the-main-button/330266 "2012-12-21T08:10:22Z")

</div>

Hi, I have the following buttons and some sub buttons (Main buttons are in \[COLOR=#0000ff\]Blue \*\*\[/COLOR\]&\[COLOR=#0000ff\]\[/COLOR\] Sub buttons are in \[COLOR=#a52a2a\]Brown \*\*\[/COLOR\]Color).\[COLOR=#0000ff\]\[/COLOR\] \[COLO…

---

## [Boggle Game - How to randomize the dice and grid?](https://forum.kirupa.com/t/boggle-game-how-to-randomize-the-dice-and-grid/330265)

<div class="topic-metadata">

**Author:** [@daejeon](https://forum.kirupa.com/u/daejeon)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 7:14am UTC](https://forum.kirupa.com/t/boggle-game-how-to-randomize-the-dice-and-grid/330265 "2012-12-21T07:14:24Z")

</div>

I'm looking to create a boggle grid. Boggle contains 16 x 6 sided dice each with different letters. I can randomize which side of the dice (mc frame) is displayed, but I cannot randomize the order of the grid. How w…

---

## [Goblins Wanna Star - new Christmas Tower Defense game](https://forum.kirupa.com/t/goblins-wanna-star-new-christmas-tower-defense-game/330264)

<div class="topic-metadata">

**Author:** [@aimia](https://forum.kirupa.com/u/aimia)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 5:14am UTC](https://forum.kirupa.com/t/goblins-wanna-star-new-christmas-tower-defense-game/330264 "2012-12-21T05:14:56Z")

</div>

\[COLOR=#000000\]\[FONT=Calibri\] "Goblins wanna steal your Christmas star. Stop them all!" \[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=Calibri\] Hi, I just finished new game – Christmas Tower Defense game with goblins, ch…

---

## [MouseCursorData in Flash Professional 5.5 doesn't display my PNG](https://forum.kirupa.com/t/mousecursordata-in-flash-professional-5-5-doesnt-display-my-png/330263)

<div class="topic-metadata">

**Author:** [@ls\_ac](https://forum.kirupa.com/u/ls_ac)\
**Replies:** 0\
**Last updated:** [December 21, 2012, 2:53am UTC](https://forum.kirupa.com/t/mousecursordata-in-flash-professional-5-5-doesnt-display-my-png/330263 "2012-12-21T02:53:13Z")

</div>

var bitmapDatas:Vector.\<BitmapData\> = new Vector.\<BitmapData\>( 1, true ); bitmapDatas\[0\] = new cursorTarget(); var cursorData:MouseCursorData = new MouseCursorData( ); cursorData.hotSpot = new Point( 15…

---

## [Labyrinth paradigms?](https://forum.kirupa.com/t/labyrinth-paradigms/330262)

<div class="topic-metadata">

**Author:** [@lnsiu](https://forum.kirupa.com/u/lnsiu)\
**Replies:** 0\
**Last updated:** [December 20, 2012, 1:09pm UTC](https://forum.kirupa.com/t/labyrinth-paradigms/330262 "2012-12-20T13:09:37Z")

</div>

I'm doing a little something and pondering upon labyrinth construction. Are there really just two essential ways to construct a labyrinth? Folded and pathed? In the image below I've done what I call "double", "half" …

---

## [UIComponent memory issue](https://forum.kirupa.com/t/uicomponent-memory-issue/330261)

<div class="topic-metadata">

**Author:** [@destinier](https://forum.kirupa.com/u/destinier)\
**Replies:** 0\
**Last updated:** [December 20, 2012, 1:01pm UTC](https://forum.kirupa.com/t/uicomponent-memory-issue/330261 "2012-12-20T13:01:49Z")

</div>

Hi all, I have observed \*\*UIComponent \*\*and found some interesting thing. Please check the following code which is present in \*\*UIComponent \*\*constructor. addEventListener(Event.ADDED, addedHandler); addEve…

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

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