# flash

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

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

**Page:** 152

---

## [How to use dispatchEvent()](https://forum.kirupa.com/t/how-to-use-dispatchevent/322733)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 6:47am UTC](https://forum.kirupa.com/t/how-to-use-dispatchevent/322733 "2011-06-01T06:47:41Z")

</div>

I am new to as3, i don't understand what is the use of dispatchEvent,.. where can i get a nice tutorials that is easy to understand? or anybody could give me an example of how to use dispatchEvent. Thanks!

---

## [Input and OutPut](https://forum.kirupa.com/t/input-and-output/322731)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 5:42am UTC](https://forum.kirupa.com/t/input-and-output/322731 "2011-06-01T05:42:44Z")

</div>

i have two text field, textfield1 and textfield2, and a button.. textfield 1 = inputtext textfield2 = the output. when i click the button it will save the text in textfield1 into the textfield2. how could i do this…

---

## [Loading Sound](https://forum.kirupa.com/t/loading-sound/322729)

<div class="topic-metadata">

**Author:** [@LightningJoe](https://forum.kirupa.com/u/LightningJoe)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 12:08am UTC](https://forum.kirupa.com/t/loading-sound/322729 "2011-06-01T00:08:21Z")

</div>

I am in some serious need of some help. Oh, and I need some assistance writing code too. I've created what is a vector replication of the face of a stereo receiver. Essentially what I have done so far is that the "powe…

---

## [Creating an XML login for AS3](https://forum.kirupa.com/t/creating-an-xml-login-for-as3/322728)

<div class="topic-metadata">

**Author:** [@mike25620](https://forum.kirupa.com/u/mike25620)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 11:39pm UTC](https://forum.kirupa.com/t/creating-an-xml-login-for-as3/322728 "2011-05-31T23:39:56Z")

</div>

Im wondering how I could create a login script that would save all users, passwords, and theyre data(scores, play time, etc) to an XML file. I am very new to XML and cant seem to find anything about this on the internet.…

---

## [Translation from AS1 to AS2 (Slider Script)](https://forum.kirupa.com/t/translation-from-as1-to-as2-slider-script/322727)

<div class="topic-metadata">

**Author:** [@redu4](https://forum.kirupa.com/u/redu4)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 11:26pm UTC](https://forum.kirupa.com/t/translation-from-as1-to-as2-slider-script/322727 "2011-05-31T23:26:26Z")

</div>

Hello all, EDIT: I realize that the script I posted was incorrect... but I'm still wondering if an AS1 script needs to be translated into AS2 in order to work in an AS2 document. That would be really nice if they were i…

---

## [\[AS3\] Printing Datagrid help](https://forum.kirupa.com/t/as3-printing-datagrid-help/322725)

<div class="topic-metadata">

**Author:** [@jc\_021286](https://forum.kirupa.com/u/jc_021286)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 9:55pm UTC](https://forum.kirupa.com/t/as3-printing-datagrid-help/322725 "2011-05-31T21:55:31Z")

</div>

Hi there, I hope someone might be able to help me. I've been searching and trying many things to no avail with this. I'm working solely in AS3 and have a php \> mysql populate a datagrid for me. All data is ironically sto…

---

## [addEventListener in a for loop and value keeps coming back the same for the function](https://forum.kirupa.com/t/addeventlistener-in-a-for-loop-and-value-keeps-coming-back-the-same-for-the-function/322724)

<div class="topic-metadata">

**Author:** [@SammyTheBear](https://forum.kirupa.com/u/SammyTheBear)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 9:42pm UTC](https://forum.kirupa.com/t/addeventlistener-in-a-for-loop-and-value-keeps-coming-back-the-same-for-the-function/322724 "2011-05-31T21:42:29Z")

</div>

This code keeps coming back with the same value for i when the button is clicked. It is looping through but only the last value gets passed. Any help would be great. for(var i:uint=0; i\<10; i++) { this\["Nav"+(i+1)\].ad…

---

## [Counting button clicks with Arrays in AS3](https://forum.kirupa.com/t/counting-button-clicks-with-arrays-in-as3/322720)

<div class="topic-metadata">

**Author:** [@netmonkey](https://forum.kirupa.com/u/netmonkey)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 5:14pm UTC](https://forum.kirupa.com/t/counting-button-clicks-with-arrays-in-as3/322720 "2011-05-31T17:14:32Z")

</div>

Hi Folks, I'm just learning to use Arrays, and I'm trying to make a simple demo that works. A solution to this will really help me learn. Basically, I have 4 Mcs on the stage. The same Mc with 4 instance names. Each …

---

## [Can Flash handle 16 bits per color channel?](https://forum.kirupa.com/t/can-flash-handle-16-bits-per-color-channel/322719)

<div class="topic-metadata">

**Author:** [@Wallee](https://forum.kirupa.com/u/Wallee)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 4:54pm UTC](https://forum.kirupa.com/t/can-flash-handle-16-bits-per-color-channel/322719 "2011-05-31T16:54:32Z")

</div>

Hi! I was wondering if Flash was able to handle PNG files with 16 bits per channel. I seem to remember (quite clearly actually) from some official blog post on Pixel Bender, that since Flash only handles 8 bits per ch…

---

## [Can you globally set TLF Text mouseEnabled to false?](https://forum.kirupa.com/t/can-you-globally-set-tlf-text-mouseenabled-to-false/322718)

<div class="topic-metadata">

**Author:** [@malamin](https://forum.kirupa.com/u/malamin)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 3:36pm UTC](https://forum.kirupa.com/t/can-you-globally-set-tlf-text-mouseenabled-to-false/322718 "2011-05-31T15:36:29Z")

</div>

I'm wondering if you can globally set TLF Text mouseEnabled to false without having to name every text box individually? Malamin

---

## [XMLList "for each" loop update](https://forum.kirupa.com/t/xmllist-for-each-loop-update/322717)

<div class="topic-metadata">

**Author:** [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 3:24pm UTC](https://forum.kirupa.com/t/xmllist-for-each-loop-update/322717 "2011-05-31T15:24:36Z")

</div>

I have a problem with updating an XMLList object while in a "for each" loop. I have the following XMLList object called "folders": \<folders\> \<folder1\>folder1\</folder1\> \<folder2\>folder2\</folder2\> \<folder3\>folder3\</…

---

## [WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3](https://forum.kirupa.com/t/warning-actions-on-button-or-movieclip-instances-are-not-supported-in-actionscript-3/322711)

<div class="topic-metadata">

**Author:** [@tseyigai](https://forum.kirupa.com/u/tseyigai)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 1:30pm UTC](https://forum.kirupa.com/t/warning-actions-on-button-or-movieclip-instances-are-not-supported-in-actionscript-3/322711 "2011-05-31T13:30:51Z")

</div>

I'm getting the error message below for a button I have that goes to url function. What code do I need to do for this to work? This is what I'm using now: \*\*on (release) { getURL("http://www.angelfire.com/in/HisTrut…

---

## [How do I return to the Menu?](https://forum.kirupa.com/t/how-do-i-return-to-the-menu/322710)

<div class="topic-metadata">

**Author:** [@meetspin](https://forum.kirupa.com/u/meetspin)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 1:27pm UTC](https://forum.kirupa.com/t/how-do-i-return-to-the-menu/322710 "2011-05-31T13:27:29Z")

</div>

Hey guys, I've been a long time lurker and decided to finally sign up because I would really appreciate your help with something I've been scratching my head with for a few days now. Please download the attachments if …

---

## [AS3 Rotation Circle](https://forum.kirupa.com/t/as3-rotation-circle/322705)

<div class="topic-metadata">

**Author:** [@akira\_lee](https://forum.kirupa.com/u/akira_lee)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 11:12am UTC](https://forum.kirupa.com/t/as3-rotation-circle/322705 "2011-05-31T11:12:28Z")

</div>

Hello I'm trying to make a circle rotate every x degrees, to get some pens rotate to the same spot. So i've got 21 pens, 360 degrees / 21 pens = 17.14 degrees, i'm moving the circle CCW and CW (+17.14 and -17.14). I…

---

## [Help with getDefinitionByName](https://forum.kirupa.com/t/help-with-getdefinitionbyname/322701)

<div class="topic-metadata">

**Author:** [@sami016](https://forum.kirupa.com/u/sami016)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 10:24am UTC](https://forum.kirupa.com/t/help-with-getdefinitionbyname/322701 "2011-05-31T10:24:45Z")

</div>

Hey, Im having some trouble with getDefinitionByName. Basically I have a class called "tower\_arrow". I can create this tower and it works fine like this: var pr = new tower\_arrow(); However, I need a system that load…

---

## [Verlet collision detection, direction](https://forum.kirupa.com/t/verlet-collision-detection-direction/322700)

<div class="topic-metadata">

**Author:** [@johaannes](https://forum.kirupa.com/u/johaannes)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 10:24am UTC](https://forum.kirupa.com/t/verlet-collision-detection-direction/322700 "2011-05-31T10:24:11Z")

</div>

Ok so I have been doing a bunch of flash games for a while now. And it has been fun doing them with some basic physics(euler). But there comes a time when you need to step out onto deep waters. So I decided I would try t…

---

## [Augmented Reality](https://forum.kirupa.com/t/augmented-reality/322697)

<div class="topic-metadata">

**Author:** [@bigpappi23](https://forum.kirupa.com/u/bigpappi23)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 9:39am UTC](https://forum.kirupa.com/t/augmented-reality/322697 "2011-05-31T09:39:32Z")

</div>

hi guys....i'm trying to make an augmented reality game..my game will be composed of a main menu..and in the main menu you can either choose to start a new game,option,and exit button, what will i do to make my backgroun…

---

## [Save input text to another textfield](https://forum.kirupa.com/t/save-input-text-to-another-textfield/322694)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 6:02am UTC](https://forum.kirupa.com/t/save-input-text-to-another-textfield/322694 "2011-05-31T06:02:03Z")

</div>

How could I save the text in an input Textfield into another textfield?

---

## [I have no idea what is going on](https://forum.kirupa.com/t/i-have-no-idea-what-is-going-on/322693)

<div class="topic-metadata">

**Author:** [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 1:56am UTC](https://forum.kirupa.com/t/i-have-no-idea-what-is-going-on/322693 "2011-05-31T01:56:13Z")

</div>

It makes me angry. The code is simple and doesn't work. In a timeline of a movie I wrote: for (i=1; i\<6; i++) { wave.duplicateMovieClip("wave"+i,30+i); } function initposition(wn,xmax){ for (s=1; s\<6; s++) { this\[wn+…

---

## [Advanced Drag And Drop!](https://forum.kirupa.com/t/advanced-drag-and-drop/322690)

<div class="topic-metadata">

**Author:** [@evolutionxbox](https://forum.kirupa.com/u/evolutionxbox)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 7:15pm UTC](https://forum.kirupa.com/t/advanced-drag-and-drop/322690 "2011-05-30T19:15:10Z")

</div>

Drag and Drop! I have been reading some Drag and Drop tutorials, and they all require that I know the source moveclip and the target to know whether or not they have been 'hit'. Because there are multiple targets wit…

---

## [3D prevent cacheAsBitmap?](https://forum.kirupa.com/t/3d-prevent-cacheasbitmap/322689)

<div class="topic-metadata">

**Author:** [@patrickjv](https://forum.kirupa.com/u/patrickjv)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 7:14pm UTC](https://forum.kirupa.com/t/3d-prevent-cacheasbitmap/322689 "2011-05-30T19:14:49Z")

</div>

Is there any way to add 3D properties like .z and .rotationY without the MovieClip's cacheAsBitmap property being automatically set to true? This automatic cacheAsBitmap to true messes up the visual of my MC (which is us…

---

## [Encrypt ActionScript in SWF](https://forum.kirupa.com/t/encrypt-actionscript-in-swf/322687)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 5:53pm UTC](https://forum.kirupa.com/t/encrypt-actionscript-in-swf/322687 "2011-05-30T17:53:40Z")

</div>

Does anyone know really working encryption, obfuscation software to make it a bit harder to decode the source from SWF? I have tried demo from html magic, it doesn't work at all, after protecting swf it wont play, load…

---

## [AS3 Format numbers with comma](https://forum.kirupa.com/t/as3-format-numbers-with-comma/322683)

<div class="topic-metadata">

**Author:** [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 2:44pm UTC](https://forum.kirupa.com/t/as3-format-numbers-with-comma/322683 "2011-05-30T14:44:36Z")

</div>

Hello there. I’m showing the users score in a textbox. But if the number exceeds 1000 it should show 1.000 example: 10000000 =\> 10,000,000 I’ve been searching a lot on Google, but I just can’t make it work. Can anyone h…

---

## [Music Loop Trouble AS2](https://forum.kirupa.com/t/music-loop-trouble-as2/322679)

<div class="topic-metadata">

**Author:** [@redu4](https://forum.kirupa.com/u/redu4)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 9:56am UTC](https://forum.kirupa.com/t/music-loop-trouble-as2/322679 "2011-05-30T09:56:04Z")

</div>

I'm making a musical plaything with loops and sound effects on buttons. I tried just getting the sound to work the old fashioned way, with this script on the only frame in the scene. newclip=houseloopID(); newclip.…

---

## [Playing different Flash Video Using the same AS3 FLVPlayback Component](https://forum.kirupa.com/t/playing-different-flash-video-using-the-same-as3-flvplayback-component/322677)

<div class="topic-metadata">

**Author:** [@deaconpt](https://forum.kirupa.com/u/deaconpt)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 9:15am UTC](https://forum.kirupa.com/t/playing-different-flash-video-using-the-same-as3-flvplayback-component/322677 "2011-05-30T09:15:30Z")

</div>

Hello there, Noob alert \[image\] I am working on flash (as3) template that I downloaded. I created a movieclip that is placed in the root where I have a AS3 FLVPlayback Component, and also an animation, and a button. …

---

## [Shared Objects? Save and Load?](https://forum.kirupa.com/t/shared-objects-save-and-load/322676)

<div class="topic-metadata">

**Author:** [@TheAwesomeDude](https://forum.kirupa.com/u/TheAwesomeDude)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 8:24am UTC](https://forum.kirupa.com/t/shared-objects-save-and-load/322676 "2011-05-30T08:24:10Z")

</div>

Hi! Im trying to learn Adobe Flash and making some stuff and that export it to my iPad. It doesnt have to be Shared Object, just read on internet that it could be used. But i dont know. I need a save and load function.…

---

## [Creating Dynamic MovieClips](https://forum.kirupa.com/t/creating-dynamic-movieclips/322675)

<div class="topic-metadata">

**Author:** [@evolutionxbox](https://forum.kirupa.com/u/evolutionxbox)\
**Replies:** 0\
**Last updated:** [May 30, 2011, 1:05am UTC](https://forum.kirupa.com/t/creating-dynamic-movieclips/322675 "2011-05-30T01:05:53Z")

</div>

After a click event I want to dynamically create 2 movieclips with the sequential number in their name, e.g. mc\_001 & mv\_001 so that I can 'link' them together later on. How can I create a movieclip with a dynamic name…

---

## [CS5 - Having problems displaying text](https://forum.kirupa.com/t/cs5-having-problems-displaying-text/322671)

<div class="topic-metadata">

**Author:** [@max\_carpenter](https://forum.kirupa.com/u/max_carpenter)\
**Replies:** 0\
**Last updated:** [May 29, 2011, 9:40pm UTC](https://forum.kirupa.com/t/cs5-having-problems-displaying-text/322671 "2011-05-29T21:40:48Z")

</div>

Good Evening, I am new here and still fairly new to flash. Don't konw if I am being stupid or not. Just started working in CS5 (missed a few versions) and getting very frustrated. Don't do much flash work so still a …

---

## [Custom Import Package Problems](https://forum.kirupa.com/t/custom-import-package-problems/322670)

<div class="topic-metadata">

**Author:** [@evolutionxbox](https://forum.kirupa.com/u/evolutionxbox)\
**Replies:** 0\
**Last updated:** [May 29, 2011, 8:26pm UTC](https://forum.kirupa.com/t/custom-import-package-problems/322670 "2011-05-29T20:26:46Z")

</div>

I have a custom package: package ma601jc { public class stringUtils { public function stringUtils() { } public function testFunction(input:String):String { return input; } } } I import it in…

---

## [Need help - Problem with Flash-XML runing in server](https://forum.kirupa.com/t/need-help-problem-with-flash-xml-runing-in-server/322668)

<div class="topic-metadata">

**Author:** [@socialme](https://forum.kirupa.com/u/socialme)\
**Replies:** 0\
**Last updated:** [May 29, 2011, 6:44pm UTC](https://forum.kirupa.com/t/need-help-problem-with-flash-xml-runing-in-server/322668 "2011-05-29T18:44:53Z")

</div>

Hello guys, I am new with Flash. I have problems with a minisite to open images called by Flash and defined at a galery xml file, all files, iamges, index, etc. were uploaded at a server in the same directory. Opening …

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

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