# programming

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

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

**Page:** 469

---

## [Questions not printing on submit](https://forum.kirupa.com/t/questions-not-printing-on-submit/310860)

<div class="topic-metadata">

**Author:** [@flashdanii](https://forum.kirupa.com/u/flashdanii)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 3:44pm UTC](https://forum.kirupa.com/t/questions-not-printing-on-submit/310860 "2010-06-21T15:44:47Z")

</div>

Could anyone tell me why ON SUBMIT my code isn't printing back all the questions just the last one? It is suppose to post to PHP all the questions but its only posting the last. Any suggestions on another way to post …

---

## [Colour shift in swf](https://forum.kirupa.com/t/colour-shift-in-swf/310859)

<div class="topic-metadata">

**Author:** [@ardeaus](https://forum.kirupa.com/u/ardeaus)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 3:37pm UTC](https://forum.kirupa.com/t/colour-shift-in-swf/310859 "2010-06-21T15:37:59Z")

</div>

Hi I have a psd that is to be the background of a flash site that i'm working on. I've tried every combination of exporting from photoshop and flash but the end result (in the browser) is always significantly brighter.…

---

## [Multiple Keypress Focus](https://forum.kirupa.com/t/multiple-keypress-focus/310858)

<div class="topic-metadata">

**Author:** [@davidj51](https://forum.kirupa.com/u/davidj51)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 3:31pm UTC](https://forum.kirupa.com/t/multiple-keypress-focus/310858 "2010-06-21T15:31:45Z")

</div>

I want to be able to toggle images on and off on key press. I cannot get multiple keys to work. I used to do this in Flash MX with the code placed on buttons off the stage. I used tell targeting with movie clips on the…

---

## [removeMovieClip() question](https://forum.kirupa.com/t/removemovieclip-question/310853)

<div class="topic-metadata">

**Author:** [@lillo\_\_hotmail](https://forum.kirupa.com/u/lillo__hotmail)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 2:45pm UTC](https://forum.kirupa.com/t/removemovieclip-question/310853 "2010-06-21T14:45:49Z")

</div>

Hi all! Can someone please tell me what i'm doing wrong. I'm trying to create a new movieclip in "test\_mc" and then add another from the library. When I press the button I want to remove all. var myTest = test\_mc.cre…

---

## [Bitmap faster than loader?](https://forum.kirupa.com/t/bitmap-faster-than-loader/310850)

<div class="topic-metadata">

**Author:** [@e\_v](https://forum.kirupa.com/u/e_v)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 2:15pm UTC](https://forum.kirupa.com/t/bitmap-faster-than-loader/310850 "2010-06-21T14:15:40Z")

</div>

Is there any benefit, performance-wise, to adding the content of a Loader to the stage rather than the Loader itself? For example, if I was going to be turning the visible on and off of various display objects in a Vect…

---

## [Centering preloader on stage](https://forum.kirupa.com/t/centering-preloader-on-stage/310848)

<div class="topic-metadata">

**Author:** [@003](https://forum.kirupa.com/u/003)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 12:25pm UTC](https://forum.kirupa.com/t/centering-preloader-on-stage/310848 "2010-06-21T12:25:32Z")

</div>

Hi, I'm heaving trouble centering the preloader on the center of the stage. The preloader is basically a rotating oval shape. so, below is the code that for some reson puts the circle in the top left corner... sto…

---

## [swapDepths ans Publish Settings](https://forum.kirupa.com/t/swapdepths-ans-publish-settings/310847)

<div class="topic-metadata">

**Author:** [@parchow](https://forum.kirupa.com/u/parchow)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 10:43am UTC](https://forum.kirupa.com/t/swapdepths-ans-publish-settings/310847 "2010-06-21T10:43:01Z")

</div>

Hy All, I've got a question and I hop to find an answer here among you guys. I'm using the following bit of code to make myMovieclip swapDepths on rollOver. and it works just fine if I set the flashplayer to Flash P…

---

## [Webpage File Size](https://forum.kirupa.com/t/webpage-file-size/310846)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 10:17am UTC](https://forum.kirupa.com/t/webpage-file-size/310846 "2010-06-21T10:17:31Z")

</div>

I was wondering, what is considered an acceptable webpage file size these days? That is, code and image sizes combined? Right now I have a webpage that is initially 177kb in size with code and images included. Then a…

---

## [Dynamically naming arrays](https://forum.kirupa.com/t/dynamically-naming-arrays/310845)

<div class="topic-metadata">

**Author:** [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 9:21am UTC](https://forum.kirupa.com/t/dynamically-naming-arrays/310845 "2010-06-21T09:21:52Z")

</div>

Hey guys, just a quick question. I'm attaching a bunch of movieclips to the stage, and I'd like each movieclip to have its own array based on the movieclips name. I thought I'd do it the same way that I do it with Movi…

---

## [How to find Library Control in Action script](https://forum.kirupa.com/t/how-to-find-library-control-in-action-script/310841)

<div class="topic-metadata">

**Author:** [@dhimenvora](https://forum.kirupa.com/u/dhimenvora)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 6:29am UTC](https://forum.kirupa.com/t/how-to-find-library-control-in-action-script/310841 "2010-06-21T06:29:38Z")

</div>

i am beginner to action script is there any one who can teach me how to find library control in action script. I want to change instance of symbol dynamically. like if the symbol1 is the instance of banner1.jpg now i w…

---

## [Music control slider bar as2](https://forum.kirupa.com/t/music-control-slider-bar-as2/310840)

<div class="topic-metadata">

**Author:** [@overlordlink](https://forum.kirupa.com/u/overlordlink)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 5:09am UTC](https://forum.kirupa.com/t/music-control-slider-bar-as2/310840 "2010-06-21T05:09:49Z")

</div>

OK I have been following a tutorial and making modifications as I went to make it work with what i needed. Now the only problew is I cant get it to play my linked song right and the slider I am using wont stopDrag lol. h…

---

## [Trouble with objects and arrays](https://forum.kirupa.com/t/trouble-with-objects-and-arrays/310839)

<div class="topic-metadata">

**Author:** [@ShyneRocc](https://forum.kirupa.com/u/ShyneRocc)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 3:31am UTC](https://forum.kirupa.com/t/trouble-with-objects-and-arrays/310839 "2010-06-21T03:31:18Z")

</div>

I'm following the tutorial \["\[URL="http://www.kirupa.com/developer/php/php\_oop\_intro\_pg3.htm"\]Introduction to OOP using PHP"\](http://www.kirupa.com/developer/php/php\_oop\_intro\_pg3.htm) and I'm stuck the third script on P…

---

## [Changing Name after using FileReference?](https://forum.kirupa.com/t/changing-name-after-using-filereference/310838)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 3:02am UTC](https://forum.kirupa.com/t/changing-name-after-using-filereference/310838 "2010-06-21T03:02:17Z")

</div>

Hello, After using FileReference to load a picture into flash, how would I change the name? Example of loading an image: fileRef.addEventListener(Event.COMPLETE, onLoaded); fileRef.load(); } public function…

---

## [Removeing Child Problems](https://forum.kirupa.com/t/removeing-child-problems/310836)

<div class="topic-metadata">

**Author:** [@crucifix](https://forum.kirupa.com/u/crucifix)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 2:01am UTC](https://forum.kirupa.com/t/removeing-child-problems/310836 "2010-06-21T02:01:54Z")

</div>

Hey, Ive been working on a new project recently and ive run into an old favourite error of mine and cant seem to get my head around it. I have added objects to the stage and call a function later to delete them, when i c…

---

## [What is wrong with my PHP?](https://forum.kirupa.com/t/what-is-wrong-with-my-php/310835)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 2:01am UTC](https://forum.kirupa.com/t/what-is-wrong-with-my-php/310835 "2010-06-21T02:01:08Z")

</div>

Hi, I am just trying to goto the next function, and it is giving me errors. Here is how I am doing it: public function create($params) { $query = "INSERT INTO amfphp\_db ("; $query .= "ProductID, Text1, Text2, Text…

---

## [How to test for mobile devices, and replace flash with image?](https://forum.kirupa.com/t/how-to-test-for-mobile-devices-and-replace-flash-with-image/310834)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 21, 2010, 1:33am UTC](https://forum.kirupa.com/t/how-to-test-for-mobile-devices-and-replace-flash-with-image/310834 "2010-06-21T01:33:56Z")

</div>

I want my web site to use flash, but want to make sure Apple mobile devices dont see a big blank box. How do I test for this and replace flash with an image if its an iPad, etc.?

---

## [Mask effect problem](https://forum.kirupa.com/t/mask-effect-problem/310830)

<div class="topic-metadata">

**Author:** [@LS05](https://forum.kirupa.com/u/LS05)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 10:12pm UTC](https://forum.kirupa.com/t/mask-effect-problem/310830 "2010-06-20T22:12:13Z")

</div>

Hi guys, I'm creating a mask effect. i create 10 movieclip with a library class reference that appear on the screen with a random alpha effect. THe problem is that if i try the effect alone all works ok. if i mask the la…

---

## [I phone development](https://forum.kirupa.com/t/i-phone-development/310827)

<div class="topic-metadata">

**Author:** [@abhin88](https://forum.kirupa.com/u/abhin88)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 7:39pm UTC](https://forum.kirupa.com/t/i-phone-development/310827 "2010-06-20T19:39:04Z")

</div>

I wana learn developing games for iphone. I am a flash developer . Is migration from AS3 to objective c easy ? Where to start with ? How to go about it. Any references wud be helpful

---

## [\[Facebook\]How to pass data from php to flash?](https://forum.kirupa.com/t/facebook-how-to-pass-data-from-php-to-flash/310826)

<div class="topic-metadata">

**Author:** [@Erickk](https://forum.kirupa.com/u/Erickk)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 7:27pm UTC](https://forum.kirupa.com/t/facebook-how-to-pass-data-from-php-to-flash/310826 "2010-06-20T19:27:19Z")

</div>

Hi, I am not sure to post on this section or in PHP section. Anyway i am a beginner in PHP n Flash. My question is how to display Facebook logged in username and profile image into Flash by using Flashvar?? Here is the…

---

## [Collision Detection Grid](https://forum.kirupa.com/t/collision-detection-grid/310823)

<div class="topic-metadata">

**Author:** [@Polaris666](https://forum.kirupa.com/u/Polaris666)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 6:44pm UTC](https://forum.kirupa.com/t/collision-detection-grid/310823 "2010-06-20T18:44:17Z")

</div>

In the last game I made, I managed to implement a grid in order to avoid checking for collisions that could never happen. It worked pretty well, but I realised that the objects can't be larger than a cell on the grid,…

---

## [Import .swf into Fla](https://forum.kirupa.com/t/import-swf-into-fla/310822)

<div class="topic-metadata">

**Author:** [@Chanel](https://forum.kirupa.com/u/Chanel)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 5:50pm UTC](https://forum.kirupa.com/t/import-swf-into-fla/310822 "2010-06-20T17:50:09Z")

</div>

Hello I have problem with Flash CS3 How can I import swf into flash ?? I cannot imported in the normal way there is any actionScript or another way ? and where I shoud put the action ? thanks,

---

## [Hype Framework](https://forum.kirupa.com/t/hype-framework/310821)

<div class="topic-metadata">

**Author:** [@liquidFusion](https://forum.kirupa.com/u/liquidFusion)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 5:42pm UTC](https://forum.kirupa.com/t/hype-framework/310821 "2010-06-20T17:42:58Z")

</div>

Hi there. I'm trying to set up Joshua Davis' Hype framework with Adobe Flash Builder 4, but I only get the following error message: 1172: Definition hype.extended.behavior:MouseFollowSpring could not be found. I'…

---

## [Quick "this.onEnterFrame" clarification](https://forum.kirupa.com/t/quick-this-onenterframe-clarification/310819)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 5:00pm UTC](https://forum.kirupa.com/t/quick-this-onenterframe-clarification/310819 "2010-06-20T17:00:50Z")

</div>

Lets say I add a callback function to be run every frame the AS2 way. this.onEnterFrame = myFunction; If I add another enter frame listener, will this replace the old one, or add to the old one, so both functions wil…

---

## ["Typacasting" an object](https://forum.kirupa.com/t/typacasting-an-object/310817)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 2:56pm UTC](https://forum.kirupa.com/t/typacasting-an-object/310817 "2010-06-20T14:56:36Z")

</div>

I vaguely recall someone (Krilnon or wvxvw?) mentioning the difference between these two: var myDO:DisplayObject = DisplayObject(event.currentTarget); var myDO:DisplayObject = (event.currentTarget as DisplayObject)…

---

## [PHP: Validate Email Message](https://forum.kirupa.com/t/php-validate-email-message/310815)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 11:08am UTC](https://forum.kirupa.com/t/php-validate-email-message/310815 "2010-06-20T11:08:07Z")

</div>

I'm putting together a simple contact form on my website. I have client and server side validation for the user's name and e-mail address. But I was wondering, how should I go about validating the message? From what …

---

## [Saving and lodaing flash game](https://forum.kirupa.com/t/saving-and-lodaing-flash-game/310811)

<div class="topic-metadata">

**Author:** [@overlordlink](https://forum.kirupa.com/u/overlordlink)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 6:38am UTC](https://forum.kirupa.com/t/saving-and-lodaing-flash-game/310811 "2010-06-20T06:38:49Z")

</div>

Ok well.... my idea here is to have a save button that saves you data, or an auto save function either one. Then when you start your game, have a load button that loads the data and takes you to the corresponding level. …

---

## [Security feature programming](https://forum.kirupa.com/t/security-feature-programming/310810)

<div class="topic-metadata">

**Author:** [@speedy\_rudolf](https://forum.kirupa.com/u/speedy_rudolf)\
**Replies:** 0\
**Last updated:** [June 20, 2010, 6:20am UTC](https://forum.kirupa.com/t/security-feature-programming/310810 "2010-06-20T06:20:03Z")

</div>

Hi. I'm trying to design a "security system" for a program. Basically, the user has a custom built usb memory stick. When he/she wants to use the software, he/she has to first insert the memory stick into a usb port. The…

---

## [Strange behavior with small X increments](https://forum.kirupa.com/t/strange-behavior-with-small-x-increments/310807)

<div class="topic-metadata">

**Author:** [@Nicolea](https://forum.kirupa.com/u/Nicolea)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 10:38pm UTC](https://forum.kirupa.com/t/strange-behavior-with-small-x-increments/310807 "2010-06-19T22:38:20Z")

</div>

Hi, i'm currently working on the GUI for a tower defense and i've created a list of sliding "tablets" that represent the incoming waves (like gem td, desktop tower defense etc) and i've encountered some seemingly erratic…

---

## [Stop music playing Audio Player automatically](https://forum.kirupa.com/t/stop-music-playing-audio-player-automatically/310806)

<div class="topic-metadata">

**Author:** [@adam\_fake](https://forum.kirupa.com/u/adam_fake)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 10:06pm UTC](https://forum.kirupa.com/t/stop-music-playing-audio-player-automatically/310806 "2010-06-19T22:06:48Z")

</div>

I'm by no means up on my AS at all and this MP3 player i've had for a while and just readjusted to suit my needs. One thing i really want to change is the fact the music starts automatically. I changed line 38 from …

---

## [How to rewrite this AS2.0 code into AS3.0?](https://forum.kirupa.com/t/how-to-rewrite-this-as2-0-code-into-as3-0/310803)

<div class="topic-metadata">

**Author:** [@Andrewyuhang](https://forum.kirupa.com/u/Andrewyuhang)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 7:50pm UTC](https://forum.kirupa.com/t/how-to-rewrite-this-as2-0-code-into-as3-0/310803 "2010-06-19T19:50:31Z")

</div>

I saw a very nice tutorial (for custom scrollbar ) at http://www.kirupa.com/developer/flash8/scrollbar7.htm But the code is for AS 2.0. scrolling = function () { var scrollHeight:Number = scrollTrack.\_height; var conte…

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

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