# programming

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

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

**Page:** 270

---

## [Simple Button Issue](https://forum.kirupa.com/t/simple-button-issue/322757)

<div class="topic-metadata">

**Author:** [@mysticlife](https://forum.kirupa.com/u/mysticlife)\
**Replies:** 0\
**Last updated:** [June 2, 2011, 5:44am UTC](https://forum.kirupa.com/t/simple-button-issue/322757 "2011-06-02T05:44:11Z")

</div>

Hi there, I'm sure there has to be a solution to my issue, I have been using Flash for years, but I haven't been asked to design a site in flash for some time so I'm a bit rusty. Anyway what I need to do is have a mov…

---

## [Flash CS5 font size issue](https://forum.kirupa.com/t/flash-cs5-font-size-issue/322754)

<div class="topic-metadata">

**Author:** [@sindrom](https://forum.kirupa.com/u/sindrom)\
**Replies:** 0\
**Last updated:** [June 2, 2011, 12:34am UTC](https://forum.kirupa.com/t/flash-cs5-font-size-issue/322754 "2011-06-02T00:34:15Z")

</div>

How can I change the font size in flash CS5 to show in pixels rather than points? I searched for about 30 minutes with no luck... Please help.

---

## [Frame Transition](https://forum.kirupa.com/t/frame-transition/322753)

<div class="topic-metadata">

**Author:** [@superkazza](https://forum.kirupa.com/u/superkazza)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 9:41pm UTC](https://forum.kirupa.com/t/frame-transition/322753 "2011-06-01T21:41:56Z")

</div>

I have a button on the first page that takes you to the next page is there anyway i could add a transition so that it looks cool. thanks in advance

---

## [Preloader does not addChild on event](https://forum.kirupa.com/t/preloader-does-not-addchild-on-event/322752)

<div class="topic-metadata">

**Author:** [@tolgainam](https://forum.kirupa.com/u/tolgainam)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 8:15pm UTC](https://forum.kirupa.com/t/preloader-does-not-addchild-on-event/322752 "2011-06-01T20:15:07Z")

</div>

Hello I have a website file that I am preloading with an another swf preloader file. The code is on the first frame of preloader.swf and as follows: import flash.display.Loader; import flash.display.Sprite; import fla…

---

## [The (not-so) big OOP questions thread!](https://forum.kirupa.com/t/the-not-so-big-oop-questions-thread/322751)

<div class="topic-metadata">

**Author:** [@userman](https://forum.kirupa.com/u/userman)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 6:34pm UTC](https://forum.kirupa.com/t/the-not-so-big-oop-questions-thread/322751 "2011-06-01T18:34:50Z")

</div>

The hardest thing to learn in programming (right after the syntax) is definitely OOP. The thread will answer questions related to OOP. Making a thread like this could be a very good idea, because you at a later point can…

---

## [RightClick](https://forum.kirupa.com/t/rightclick/322750)

<div class="topic-metadata">

**Author:** [@radi](https://forum.kirupa.com/u/radi)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 5:29pm UTC](https://forum.kirupa.com/t/rightclick/322750 "2011-06-01T17:29:32Z")

</div>

what can be done about the context menu, is there a way i can rightclick without it i figure i ask here since i caught a virus while googling it, is CS5 service manager a nessasary part of flash or can i delete it the …

---

## [How to access static function from runtime classes?](https://forum.kirupa.com/t/how-to-access-static-function-from-runtime-classes/322748)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 5:06pm UTC](https://forum.kirupa.com/t/how-to-access-static-function-from-runtime-classes/322748 "2011-06-01T17:06:10Z")

</div>

I load many classes in at runtime from external SWF's, accessing those classes is pretty simple, like so - var currentDomain:ApplicationDomain = ApplicationDomain.currentDomain; var modelClass:Class = currentDomain.get…

---

## [Removing one movie clip in and replacing with another](https://forum.kirupa.com/t/removing-one-movie-clip-in-and-replacing-with-another/322747)

<div class="topic-metadata">

**Author:** [@Michelle\_E](https://forum.kirupa.com/u/Michelle_E)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 4:22pm UTC](https://forum.kirupa.com/t/removing-one-movie-clip-in-and-replacing-with-another/322747 "2011-06-01T16:22:23Z")

</div>

I have various movie clips that play when a button is clicked. My first movie clip (instance name is "MCABOUT") which plays on the press of the button called "about". I have another movie clip (instance name is "MCPORTFO…

---

## [Creating variables in a loop and assigning them non empty XML values](https://forum.kirupa.com/t/creating-variables-in-a-loop-and-assigning-them-non-empty-xml-values/322743)

<div class="topic-metadata">

**Author:** [@decimal](https://forum.kirupa.com/u/decimal)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 2:08pm UTC](https://forum.kirupa.com/t/creating-variables-in-a-loop-and-assigning-them-non-empty-xml-values/322743 "2011-06-01T14:08:37Z")

</div>

Here is the structure of the XML file: \<xmlfile\> \<page\>\</page\> \<page\> \<source\>\</source\> \</page\> \</xmlfile\> Some "page" nodes contain the extra "source" node. What I'm currently doing is looping through all the pag…

---

## [Mp3 doesn't play in website](https://forum.kirupa.com/t/mp3-doesnt-play-in-website/322742)

<div class="topic-metadata">

**Author:** [@tseyigai](https://forum.kirupa.com/u/tseyigai)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 2:00pm UTC](https://forum.kirupa.com/t/mp3-doesnt-play-in-website/322742 "2011-06-01T14:00:57Z")

</div>

I just added a mp3 song to my flash page and it plays well in preview and after it's published. But after I've uploaded it to my site along with the mp3 song, it doesn't play. I moved the mp3 onto the stage and that is h…

---

## [No images from XML onto stage](https://forum.kirupa.com/t/no-images-from-xml-onto-stage/322741)

<div class="topic-metadata">

**Author:** [@flasher333](https://forum.kirupa.com/u/flasher333)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 1:17pm UTC](https://forum.kirupa.com/t/no-images-from-xml-onto-stage/322741 "2011-06-01T13:17:28Z")

</div>

Hi there, I'm having an issue with placing images loaded from an XML file in placeholders within movie clip instances on the stage. Hope someone can help me with this. Many thanks in advance. My XML file is: \<?x…

---

## [Strange uploading process](https://forum.kirupa.com/t/strange-uploading-process/322739)

<div class="topic-metadata">

**Author:** [@bumb0x](https://forum.kirupa.com/u/bumb0x)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 9:47am UTC](https://forum.kirupa.com/t/strange-uploading-process/322739 "2011-06-01T09:47:12Z")

</div>

Hello guys, I have strange uploading behavior. When I try to upload few files via FileReference#upload(), the following occurs: 1) only 2 files can be uploaded at the same time 2) if uploading of other files didn't start…

---

## [Batch Processing Flash Files](https://forum.kirupa.com/t/batch-processing-flash-files/322737)

<div class="topic-metadata">

**Author:** [@Almonimus](https://forum.kirupa.com/u/Almonimus)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 7:56am UTC](https://forum.kirupa.com/t/batch-processing-flash-files/322737 "2011-06-01T07:56:10Z")

</div>

Hi I'm working on an interactive company, and for each campaign we create dozens of loaders. A loader is a simple flash file contains the following elements: few lines of code for eRate (counting how many clicks hav…

---

## [KeyBoard Controls](https://forum.kirupa.com/t/keyboard-controls/322736)

<div class="topic-metadata">

**Author:** [@gopik3](https://forum.kirupa.com/u/gopik3)\
**Replies:** 0\
**Last updated:** [June 1, 2011, 7:02am UTC](https://forum.kirupa.com/t/keyboard-controls/322736 "2011-06-01T07:02:19Z")

</div>

Am Creating A game Using Action Script 2.0.The objects By KeyBoard Controls When I Moves It goes To Endless of screen How Can I Use IT in Particular Screen Width And Height

---

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

---

## [Building a secure API](https://forum.kirupa.com/t/building-a-secure-api/322716)

<div class="topic-metadata">

**Author:** [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 2:55pm UTC](https://forum.kirupa.com/t/building-a-secure-api/322716 "2011-05-31T14:55:09Z")

</div>

Hi there, I need to build an API into my system which will allow other users to interact with it without login in. I just wanted to find out what is the best way to make it secure? I have in mind of generating a unik a…

---

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

---

## [A Good Web Site Essentials](https://forum.kirupa.com/t/a-good-web-site-essentials/322702)

<div class="topic-metadata">

**Author:** [@vwebdesign](https://forum.kirupa.com/u/vwebdesign)\
**Replies:** 0\
**Last updated:** [May 31, 2011, 10:43am UTC](https://forum.kirupa.com/t/a-good-web-site-essentials/322702 "2011-05-31T10:43:59Z")

</div>

A Good Web Site Essentials Anyone can make a website. Basic HTML will do. But let us all admit, some website really sucks. Some are poor in designs and layout, some are crappy in content and the list goes on. These det…

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

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