# programming

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

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

**Page:** 186

---

## [AS3Glue v.20 & Firmata2.3](https://forum.kirupa.com/t/as3glue-v-20-firmata2-3/327532)

<div class="topic-metadata">

**Author:** [@king28](https://forum.kirupa.com/u/king28)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 5:04pm UTC](https://forum.kirupa.com/t/as3glue-v-20-firmata2-3/327532 "2012-03-07T17:04:54Z")

</div>

Hey all, OK, so I'm trying to get my Arduino Board communicating with my Action Script3 program. I'm using the AS3Glue and FirmataStandard2.3 firmware to accomplish this. Everything seems to be working OK except fo…

---

## [Simple new code causes crash in browser, not in Flash Player](https://forum.kirupa.com/t/simple-new-code-causes-crash-in-browser-not-in-flash-player/327531)

<div class="topic-metadata">

**Author:** [@wMattD](https://forum.kirupa.com/u/wMattD)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 4:14pm UTC](https://forum.kirupa.com/t/simple-new-code-causes-crash-in-browser-not-in-flash-player/327531 "2012-03-07T16:14:31Z")

</div>

I added a pretty basic new function to the game I'm working on, and I thought it worked fine. All behavior was as expected, and I got no crashes when testing on my machine using FlashDevelop and the Flash Player. But i…

---

## [AS2 Adding multiple movieclips within a for loop](https://forum.kirupa.com/t/as2-adding-multiple-movieclips-within-a-for-loop/327530)

<div class="topic-metadata">

**Author:** [@BadBoyMcCoy](https://forum.kirupa.com/u/BadBoyMcCoy)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 3:58pm UTC](https://forum.kirupa.com/t/as2-adding-multiple-movieclips-within-a-for-loop/327530 "2012-03-07T15:58:46Z")

</div>

Hi, I'm sure this has been asked before but couldn't find anything to my specific problem. Basically I have 5 movieclips I want positioned around the stage. So I figure the best way to this is with a for loop. Howeve…

---

## [Keypress Aliasing Problem](https://forum.kirupa.com/t/keypress-aliasing-problem/327528)

<div class="topic-metadata">

**Author:** [@helixfate](https://forum.kirupa.com/u/helixfate)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 11:20am UTC](https://forum.kirupa.com/t/keypress-aliasing-problem/327528 "2012-03-07T11:20:35Z")

</div>

Hello. I am having a problem with image aliasing. Whenever I keypress, the image gets this jagged, muticoloured edge, and the image seems to have a 'trail'. But then, if I deactivate the code and preview without it, the…

---

## [Aliasing Problem](https://forum.kirupa.com/t/aliasing-problem/327527)

<div class="topic-metadata">

**Author:** [@helixfate](https://forum.kirupa.com/u/helixfate)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 11:13am UTC](https://forum.kirupa.com/t/aliasing-problem/327527 "2012-03-07T11:13:00Z")

</div>

Hello. I am having a problem with image aliasing. Whenever I keypress, the image gets this jagged, muticoloured edge, and the image seems to have a 'trail'. But then, if I deactivate the code and preview without it, the…

---

## [Trouble with .onPress within a loop (array of movieclips)](https://forum.kirupa.com/t/trouble-with-onpress-within-a-loop-array-of-movieclips/327525)

<div class="topic-metadata">

**Author:** [@kremfjes](https://forum.kirupa.com/u/kremfjes)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 3:06am UTC](https://forum.kirupa.com/t/trouble-with-onpress-within-a-loop-array-of-movieclips/327525 "2012-03-07T03:06:34Z")

</div>

Hi! I'm not a very good programmer, but i'm trying to make a point and click game for the fun of it. Now I'm very stuck, and i need some help. I'm having troubble with the .onPress function. I've made an array of movie…

---

## [Trying to understand Variables](https://forum.kirupa.com/t/trying-to-understand-variables/327524)

<div class="topic-metadata">

**Author:** [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 2:38am UTC](https://forum.kirupa.com/t/trying-to-understand-variables/327524 "2012-03-07T02:38:00Z")

</div>

Hey, I have another as3 problem. I created a variable: var EnergyNumber:Number = 100; And I put a buttonMode on a movie clip, which takes away 10 from EnergyNumber when you click it. \*\*//Action for clicking Girl B…

---

## [XML: Pick and choose specific data and disregard other](https://forum.kirupa.com/t/xml-pick-and-choose-specific-data-and-disregard-other/327521)

<div class="topic-metadata">

**Author:** [@monocular](https://forum.kirupa.com/u/monocular)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 10:08pm UTC](https://forum.kirupa.com/t/xml-pick-and-choose-specific-data-and-disregard-other/327521 "2012-03-06T22:08:34Z")

</div>

Yup, I'm really a complete nOOb when it comes to Flash and / or XML but I managed to write some PHP which writes some XML including the following: \<?xml version="1.0"?\> \<subjects\> \<subject\> \<ID\>1\</ID\> \<menu\_n…

---

## [AS3 Change to hit-test](https://forum.kirupa.com/t/as3-change-to-hit-test/327519)

<div class="topic-metadata">

**Author:** [@alexAAA](https://forum.kirupa.com/u/alexAAA)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 8:42pm UTC](https://forum.kirupa.com/t/as3-change-to-hit-test/327519 "2012-03-06T20:42:08Z")

</div>

Hi, I've followed this tutorial on the internet and everthing works fine but I'd like to use hit-tests instead of the intersect-code I'd really appreciate if someone could help me change the code so it works just the s…

---

## [LocalConnection help, local offline swf to online](https://forum.kirupa.com/t/localconnection-help-local-offline-swf-to-online/327518)

<div class="topic-metadata">

**Author:** [@timDrake](https://forum.kirupa.com/u/timDrake)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 8:40pm UTC](https://forum.kirupa.com/t/localconnection-help-local-offline-swf-to-online/327518 "2012-03-06T20:40:45Z")

</div>

Hello I’m using the local connection object. Just the basic example from AS3 help I would like local running swf to pass data to an swf running online. Is this possible? I’ve tried adding an underscore to the connection …

---

## [Selection Box Alpha'd to Grey Follows Draggable MC](https://forum.kirupa.com/t/selection-box-alphad-to-grey-follows-draggable-mc/327517)

<div class="topic-metadata">

**Author:** [@mactac](https://forum.kirupa.com/u/mactac)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 8:27pm UTC](https://forum.kirupa.com/t/selection-box-alphad-to-grey-follows-draggable-mc/327517 "2012-03-06T20:27:43Z")

</div>

So I'm new to programming AS 3 and Im trying to create just a simple puzzle game for learning. I am trying to make it so when someone selects a puzzle piece, it becomes selected with a box around it that is dynamically c…

---

## [UUGH registerClassAlias](https://forum.kirupa.com/t/uugh-registerclassalias/327516)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 6:40pm UTC](https://forum.kirupa.com/t/uugh-registerclassalias/327516 "2012-03-06T18:40:42Z")

</div>

I'm trying to save an an array of objects of the class type Engine into a shared object. To make sure that each engine object doesn't revert to an anonymous object as soon as the player closes(so loosing its specific pro…

---

## [Loading multiple XML and using](https://forum.kirupa.com/t/loading-multiple-xml-and-using/327514)

<div class="topic-metadata">

**Author:** [@revo999](https://forum.kirupa.com/u/revo999)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 4:36pm UTC](https://forum.kirupa.com/t/loading-multiple-xml-and-using/327514 "2012-03-06T16:36:57Z")

</div>

Hi I loaded multiple xml files inside Array now I am unable to use the xml files from array function onLoaded(e:Event):void { var xml:XML = new XML(e.target.data); myXMLArray.push(xml); } mytexts\[te…

---

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

<div class="topic-metadata">

**Author:** [@joenowhere](https://forum.kirupa.com/u/joenowhere)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 1:55pm UTC](https://forum.kirupa.com/t/question-about-slider/327512 "2012-03-06T13:55:35Z")

</div>

I'm new in Flash, now I want to create a timeline slider for photos, i have the AC for that but I can make it even, what's wrong with my code? and can I add some effect between photos,like fade in fade out? also can I ma…

---

## [AS2 - Detecting empty input text fields](https://forum.kirupa.com/t/as2-detecting-empty-input-text-fields/327510)

<div class="topic-metadata">

**Author:** [@CozmicColours](https://forum.kirupa.com/u/CozmicColours)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 12:13pm UTC](https://forum.kirupa.com/t/as2-detecting-empty-input-text-fields/327510 "2012-03-06T12:13:09Z")

</div>

Hi guys I'm creating a simple quiz which has 3 questions. Each question has an input text field next to it for the user to type their answer. There is also one submit button underneath the 3 questions. What I'm nee…

---

## [Javascript Tween Library recs](https://forum.kirupa.com/t/javascript-tween-library-recs/327509)

<div class="topic-metadata">

**Author:** [@Robbus](https://forum.kirupa.com/u/Robbus)\
**Replies:** 0\
**Last updated:** [March 6, 2012, 11:28am UTC](https://forum.kirupa.com/t/javascript-tween-library-recs/327509 "2012-03-06T11:28:20Z")

</div>

Hi all, I'm looking for some recommendations for a nice straightforward to use JS tween library, nothing HTML5/Canvas specific though, I'm sticking with nice bog standard HTML/JS for the time being. I've been messing…

---

## [as3 external swf classes loaded](https://forum.kirupa.com/t/as3-external-swf-classes-loaded/327504)

<div class="topic-metadata">

**Author:** [@decrecy](https://forum.kirupa.com/u/decrecy)\
**Replies:** 0\
**Last updated:** [March 5, 2012, 10:42pm UTC](https://forum.kirupa.com/t/as3-external-swf-classes-loaded/327504 "2012-03-05T22:42:43Z")

</div>

I have external swf (ext.swf) that is loaded in my FlashDevelop as3 project. When I make check (objectsList\[0\] is Class1) I am getting false even though the objectsList\[0\] element is Class1. The Class1 is in the ext.sw…

---

## [Need help making drop down menu](https://forum.kirupa.com/t/need-help-making-drop-down-menu/327502)

<div class="topic-metadata">

**Author:** [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Replies:** 0\
**Last updated:** [March 5, 2012, 9:06pm UTC](https://forum.kirupa.com/t/need-help-making-drop-down-menu/327502 "2012-03-05T21:06:45Z")

</div>

Hi guys, I'm using div's for the main navigation of my site and want to create a drop down for the first two buttons. All the tutorials I have seen have been for using unordered lists but I need to use divs for this…

---

## [Conditionally connect to mysql server in PHP](https://forum.kirupa.com/t/conditionally-connect-to-mysql-server-in-php/327501)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [March 5, 2012, 8:47pm UTC](https://forum.kirupa.com/t/conditionally-connect-to-mysql-server-in-php/327501 "2012-03-05T20:47:47Z")

</div>

I've run into a problem that at my level of server-side programming (admittedly little) seems odd. I am running EasyPHP on my development computer, and the site I am managing is hosted by a hosting company (inmotion host…

---

## [Export PDF / EPS](https://forum.kirupa.com/t/export-pdf-eps/327491)

<div class="topic-metadata">

**Author:** [@AS3\_Gringo](https://forum.kirupa.com/u/AS3_Gringo)\
**Replies:** 0\
**Last updated:** [March 5, 2012, 6:02am UTC](https://forum.kirupa.com/t/export-pdf-eps/327491 "2012-03-05T06:02:38Z")

</div>

Guys need help/guidance here. I have a flash where in I can add text / cliparts / images and customize the with color, gradient color, shape transform. I know that I can save the customization as json/xml and reload th…

---

## [As3 equalizer & volume control help needed!](https://forum.kirupa.com/t/as3-equalizer-volume-control-help-needed/327489)

<div class="topic-metadata">

**Author:** [@bigbox](https://forum.kirupa.com/u/bigbox)\
**Replies:** 0\
**Last updated:** [March 4, 2012, 9:46pm UTC](https://forum.kirupa.com/t/as3-equalizer-volume-control-help-needed/327489 "2012-03-04T21:46:01Z")

</div>

I was wondering if somebody could help me adding an equalizer and volume control for the following code. //number that is redefined when the pause button is hit var stopPoint:Number = 1; //a true or false value that i…

---

## [Strange collision behaviour](https://forum.kirupa.com/t/strange-collision-behaviour/327487)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [March 4, 2012, 9:00pm UTC](https://forum.kirupa.com/t/strange-collision-behaviour/327487 "2012-03-04T21:00:54Z")

</div>

I am trying to make a tile based game its based on the tony pa tutorials, it mostly works but occasionally the char Object sticks to the wall and occasionally will go straight through the tile object. I was wondering if …

---

## [Recreating Pen Tool Inside AS3](https://forum.kirupa.com/t/recreating-pen-tool-inside-as3/327484)

<div class="topic-metadata">

**Author:** [@sitsdrummr104](https://forum.kirupa.com/u/sitsdrummr104)\
**Replies:** 0\
**Last updated:** [March 4, 2012, 10:11am UTC](https://forum.kirupa.com/t/recreating-pen-tool-inside-as3/327484 "2012-03-04T10:11:28Z")

</div>

I've been looking all over with no luck for a way to code the pen tool in AS3. What i want is, in the flash application, the pen tool as it functions in Flash itself. So, for example, i push Ctrl + Enter and test my prog…

---

## [PHP tool that alters xml and talks to AS3](https://forum.kirupa.com/t/php-tool-that-alters-xml-and-talks-to-as3/327483)

<div class="topic-metadata">

**Author:** [@Michael007](https://forum.kirupa.com/u/Michael007)\
**Replies:** 0\
**Last updated:** [March 4, 2012, 3:44am UTC](https://forum.kirupa.com/t/php-tool-that-alters-xml-and-talks-to-as3/327483 "2012-03-04T03:44:49Z")

</div>

Okay so this task needs to work like this: 1) Flash environment starts (as3 code base) 2) Flash receives data from xml 3) PHP tool inserts a dropdown menu of choices into flash environment. 4) Player selects from…

---

## [Tutorial: Fixing an Element's Position Using CSS](https://forum.kirupa.com/t/tutorial-fixing-an-elements-position-using-css/327482)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [March 4, 2012, 2:00am UTC](https://forum.kirupa.com/t/tutorial-fixing-an-elements-position-using-css/327482 "2012-03-04T02:00:30Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]Hi everyone,\[/COLOR\]\[/FONT\]\[/COLOR\]\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COL…

---

## [Editable Text](https://forum.kirupa.com/t/editable-text/327479)

<div class="topic-metadata">

**Author:** [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Replies:** 0\
**Last updated:** [March 3, 2012, 3:51pm UTC](https://forum.kirupa.com/t/editable-text/327479 "2012-03-03T15:51:44Z")

</div>

Hello all. I want to create a game that has a HUD, showing the player's energy, money and the number of days that has passed. In the hud, I have created an editable text, which I assume would be the same as a dynamic tex…

---

## [Class Interaction](https://forum.kirupa.com/t/class-interaction/327472)

<div class="topic-metadata">

**Author:** [@TheOtherTedium](https://forum.kirupa.com/u/TheOtherTedium)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 11:27pm UTC](https://forum.kirupa.com/t/class-interaction/327472 "2012-03-02T23:27:55Z")

</div>

Here's the basic question: How do you access every displayed object of a certain kind at once? Here's the code. var newBox:MovieClip = new Dirt(); Can I easily access every instance of "Dirt()"? Here's the whole fu…

---

## [Loading External Images but need a way to loop that allow the load- can anyone help?](https://forum.kirupa.com/t/loading-external-images-but-need-a-way-to-loop-that-allow-the-load-can-anyone-help/327470)

<div class="topic-metadata">

**Author:** [@HumanEvent](https://forum.kirupa.com/u/HumanEvent)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 9:56pm UTC](https://forum.kirupa.com/t/loading-external-images-but-need-a-way-to-loop-that-allow-the-load-can-anyone-help/327470 "2012-03-02T21:56:13Z")

</div>

Hi, So I 'm checking to see if an image file exist but I don't think the code checks but the last iteration in the loop. Here's my code: var i = 1; var j; var loader:URLLoader = new URLLoader(); var myArr:Array = new…

---

## [Dynamically add XML element for each item on stage](https://forum.kirupa.com/t/dynamically-add-xml-element-for-each-item-on-stage/327469)

<div class="topic-metadata">

**Author:** [@m41n5t4y](https://forum.kirupa.com/u/m41n5t4y)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 9:28pm UTC](https://forum.kirupa.com/t/dynamically-add-xml-element-for-each-item-on-stage/327469 "2012-03-02T21:28:24Z")

</div>

Hey, I am writing a program where the user can, in the simplest terms, drag and drop things on to the stage. I need the user to be able to save what they have done and when they come back choose to reload their previo…

---

## [Simple button is making me crazy](https://forum.kirupa.com/t/simple-button-is-making-me-crazy/327468)

<div class="topic-metadata">

**Author:** [@trager](https://forum.kirupa.com/u/trager)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 6:53pm UTC](https://forum.kirupa.com/t/simple-button-is-making-me-crazy/327468 "2012-03-02T18:53:13Z")

</div>

Hey I have been doing a bit of AS3 for a few years now, but still consider myself as an amateur, haven't really used it to anything else than making a few presentation pages for myself. My problem is I have 4 keyframes.…

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

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