# flash

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

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

**Page:** 84

---

## [Best way to store game assets?](https://forum.kirupa.com/t/best-way-to-store-game-assets/327551)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 10:50pm UTC](https://forum.kirupa.com/t/best-way-to-store-game-assets/327551 "2012-03-08T22:50:55Z")

</div>

Hi, Is there a way for Flash to store content that will not be deleted with the browser's cache? Imagine a game that runs in the browser but is still heavy enough that you don't want your users to go through downloadin…

---

## [Flash AS3 - How to find Display Object instance location on runtime](https://forum.kirupa.com/t/flash-as3-how-to-find-display-object-instance-location-on-runtime/327548)

<div class="topic-metadata">

**Author:** [@Kevo\_Vega](https://forum.kirupa.com/u/Kevo_Vega)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 8:59pm UTC](https://forum.kirupa.com/t/flash-as3-how-to-find-display-object-instance-location-on-runtime/327548 "2012-03-08T20:59:55Z")

</div>

\[EN\] An easy way to find where's located an instance of a Display Object (MovieClip, Sprite, etc) Sometimes you don't know what is inside what, mostly when you are dealing with another people's code and you need to make …

---

## [AS3 RegExp find and replace paths by file type (file extension) on XML](https://forum.kirupa.com/t/as3-regexp-find-and-replace-paths-by-file-type-file-extension-on-xml/327546)

<div class="topic-metadata">

**Author:** [@Kevo\_Vega](https://forum.kirupa.com/u/Kevo_Vega)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 6:22pm UTC](https://forum.kirupa.com/t/as3-regexp-find-and-replace-paths-by-file-type-file-extension-on-xml/327546 "2012-03-08T18:22:36Z")

</div>

\[EN\] I've run into an issue where I need to replace certain file paths from a XML file, the big problem is I don't have control over the XML structure, so I need to replace the paths dynamically from AS3. Thus, I want to…

---

## [Load and unload an external .swf file at specific frames using LoaderMax](https://forum.kirupa.com/t/load-and-unload-an-external-swf-file-at-specific-frames-using-loadermax/327545)

<div class="topic-metadata">

**Author:** [@Erik\_J](https://forum.kirupa.com/u/Erik_J)\
**Replies:** 0\
**Last updated:** [March 8, 2012, 1:30pm UTC](https://forum.kirupa.com/t/load-and-unload-an-external-swf-file-at-specific-frames-using-loadermax/327545 "2012-03-08T13:30:16Z")

</div>

Hi, I'm actually creating a pretty simple banner that needs to stay under 40k size. I'm trying to load and unload an external .swf to my main swf file. So far, I only managed to load my external .swf, without finding a…

---

## [Cant retrieve data for some reason](https://forum.kirupa.com/t/cant-retrieve-data-for-some-reason/327538)

<div class="topic-metadata">

**Author:** [@swizz182g](https://forum.kirupa.com/u/swizz182g)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 11:18pm UTC](https://forum.kirupa.com/t/cant-retrieve-data-for-some-reason/327538 "2012-03-07T23:18:46Z")

</div>

I have an outside GameData Class I call the constructor from a fla file but i cant get a hold of the GamaDataArray via the getGameData() Function it keeps saying that the GameDataArray is Empty, but if i trace within…

---

## [Exporting to Video](https://forum.kirupa.com/t/exporting-to-video/327536)

<div class="topic-metadata">

**Author:** [@whenurstrange](https://forum.kirupa.com/u/whenurstrange)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 9:33pm UTC](https://forum.kirupa.com/t/exporting-to-video/327536 "2012-03-07T21:33:35Z")

</div>

I'm trying to export a Flash SWF to MOV that we are using for a 1920 x 1080 HD screen. When I export, most of the movie is smooth yet some of my tweens leave bits and pieces behind even though I've set the Quicktime sett…

---

## [Actionscript 3.0 (I'm loving it, so far)](https://forum.kirupa.com/t/actionscript-3-0-im-loving-it-so-far/327533)

<div class="topic-metadata">

**Author:** [@plextor30](https://forum.kirupa.com/u/plextor30)\
**Replies:** 0\
**Last updated:** [March 7, 2012, 5:09pm UTC](https://forum.kirupa.com/t/actionscript-3-0-im-loving-it-so-far/327533 "2012-03-07T17:09:21Z")

</div>

I have a question for anyone who can help me on this one? I have been using Actionscript 3.0 in Adobe Flash Builder for a few weeks, and I really like it! Bare with me because I'm not really good at it, yet. Anyway,…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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.…

---

## [AS3 N00B help! :(](https://forum.kirupa.com/t/as3-n00b-help/327467)

<div class="topic-metadata">

**Author:** [@martinnitus](https://forum.kirupa.com/u/martinnitus)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 6:32pm UTC](https://forum.kirupa.com/t/as3-n00b-help/327467 "2012-03-02T18:32:08Z")

</div>

Okay so I'm using wiiFlash with Adobe Flash Professional. On Keyframe One I want interaction with the wiimote, but on Keyframe Two and onwards there will be no further interaction. Here is my code: Keyframe One: s…

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

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