# programming

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

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

**Page:** 321

---

## [Problems with animations on iOS](https://forum.kirupa.com/t/problems-with-animations-on-ios/319743)

<div class="topic-metadata">

**Author:** [@asoap](https://forum.kirupa.com/u/asoap)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 3:26am UTC](https://forum.kirupa.com/t/problems-with-animations-on-ios/319743 "2011-03-03T03:26:54Z")

</div>

Hey Guys and Gals, I'm playing around with flash on iOS and I'm having a \*\*\*\*\* of a time trying to figure stuff out. I'm following Ammar's method found on here: http://www.kirupa.com/forum/showthread.php?t=359867 ht…

---

## [Flash Kerning Dynamic Textfields Question](https://forum.kirupa.com/t/flash-kerning-dynamic-textfields-question/319739)

<div class="topic-metadata">

**Author:** [@sumosays](https://forum.kirupa.com/u/sumosays)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 12:48am UTC](https://forum.kirupa.com/t/flash-kerning-dynamic-textfields-question/319739 "2011-03-03T00:48:05Z")

</div>

I'm having an issue with a particular font where, when using dynamic textFields the kerning is all out of whack. When using static textFields, it's fine, and when I check "Use Device Fonts" it's also fine, but when using…

---

## [\[AS3\] Help with containers (add/rem displayObjects)](https://forum.kirupa.com/t/as3-help-with-containers-add-rem-displayobjects/319738)

<div class="topic-metadata">

**Author:** [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Replies:** 0\
**Last updated:** [March 3, 2011, 12:07am UTC](https://forum.kirupa.com/t/as3-help-with-containers-add-rem-displayobjects/319738 "2011-03-03T00:07:46Z")

</div>

Hello, I do not understand how to add dynamically set objects into a container. To my understanding I have the following code: package { import ... ; public class titlehere extends MovieClip{ public var ...; p…

---

## [Rotate is offset](https://forum.kirupa.com/t/rotate-is-offset/319736)

<div class="topic-metadata">

**Author:** [@stuffses](https://forum.kirupa.com/u/stuffses)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 11:57pm UTC](https://forum.kirupa.com/t/rotate-is-offset/319736 "2011-03-02T23:57:23Z")

</div>

Hey kirupa! Im making a game where the player follows the mouse and shoots towards it. But I realized the laser-thing didnt seem to be coming straight from the player. So I added a line going strait up and down on the pl…

---

## [Storing large amounts of MP3 files](https://forum.kirupa.com/t/storing-large-amounts-of-mp3-files/319734)

<div class="topic-metadata">

**Author:** [@spyderfx](https://forum.kirupa.com/u/spyderfx)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 11:22pm UTC](https://forum.kirupa.com/t/storing-large-amounts-of-mp3-files/319734 "2011-03-02T23:22:23Z")

</div>

I'm trying to figure out how to serve up mp3 files in a media player. These mp3's would be uploaded by users and linked to their account. What is the best way to store these files so they will still be able to stream o…

---

## [Typing](https://forum.kirupa.com/t/typing/319733)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 10:46pm UTC](https://forum.kirupa.com/t/typing/319733 "2011-03-02T22:46:46Z")

</div>

I'd like to understand typing more in this code screen=getChildAt(0) as MovieClip; what am i doing?

---

## [Storing Assets Locally](https://forum.kirupa.com/t/storing-assets-locally/319732)

<div class="topic-metadata">

**Author:** [@deathtopigeon](https://forum.kirupa.com/u/deathtopigeon)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 10:29pm UTC](https://forum.kirupa.com/t/storing-assets-locally/319732 "2011-03-02T22:29:39Z")

</div>

Hi, I have been looking all over and have not seem to find an answer yet, so I figured I would post it here. Basically I am trying to load in an external MovieClip via the Loader class and I wanted to save it to the…

---

## [Select a random number in an Array](https://forum.kirupa.com/t/select-a-random-number-in-an-array/319731)

<div class="topic-metadata">

**Author:** [@Katumi](https://forum.kirupa.com/u/Katumi)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 9:53pm UTC](https://forum.kirupa.com/t/select-a-random-number-in-an-array/319731 "2011-03-02T21:53:19Z")

</div>

Just a quick question here, i have this code: public var randomNumber:int; myArray = \["40", "80", "120", "160", "200", "240", "280", "320", "360", "400", "440", "480", "520", "560", "600"\] How can i …

---

## [Long Vertically Scrolling Page](https://forum.kirupa.com/t/long-vertically-scrolling-page/319730)

<div class="topic-metadata">

**Author:** [@hermanita](https://forum.kirupa.com/u/hermanita)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 9:44pm UTC](https://forum.kirupa.com/t/long-vertically-scrolling-page/319730 "2011-03-02T21:44:05Z")

</div>

Hello everyone, I'm very new to Kirupa (and to flash as well so please bare with me)! I want to know if it's possible to create a long vertical page and then make it scroll to particular sections..and if so how? My…

---

## [Functions within Child swf still going on after it is removed! Help!](https://forum.kirupa.com/t/functions-within-child-swf-still-going-on-after-it-is-removed-help/319727)

<div class="topic-metadata">

**Author:** [@newsteve](https://forum.kirupa.com/u/newsteve)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 8:18pm UTC](https://forum.kirupa.com/t/functions-within-child-swf-still-going-on-after-it-is-removed-help/319727 "2011-03-02T20:18:32Z")

</div>

Hi, Parent swf loads a Child Swf. Button on Child swf closes child swf and dispatches event to Parent Swf to listen for to remove the child swf from the stage. Here is the code on the Parent swf that does that: pr…

---

## [CS5 AS2 capture & overlay webcam images](https://forum.kirupa.com/t/cs5-as2-capture-overlay-webcam-images/319724)

<div class="topic-metadata">

**Author:** [@acecream](https://forum.kirupa.com/u/acecream)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 6:08pm UTC](https://forum.kirupa.com/t/cs5-as2-capture-overlay-webcam-images/319724 "2011-03-02T18:08:27Z")

</div>

Hey everyone! I'm attempting to use a webcam to capture images (which this does ok) and then overlay the images over eachother with a low opacity. The images will be of a users face, each time a new user takes a pictu…

---

## [Colouring book](https://forum.kirupa.com/t/colouring-book/319723)

<div class="topic-metadata">

**Author:** [@michaelchandler](https://forum.kirupa.com/u/michaelchandler)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 4:54pm UTC](https://forum.kirupa.com/t/colouring-book/319723 "2011-03-02T16:54:01Z")

</div>

Is there a tutorial or anything on making a colouring book game like this? I sure hope so!

---

## [Split big functions?](https://forum.kirupa.com/t/split-big-functions/319722)

<div class="topic-metadata">

**Author:** [@Katumi](https://forum.kirupa.com/u/Katumi)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 4:52pm UTC](https://forum.kirupa.com/t/split-big-functions/319722 "2011-03-02T16:52:47Z")

</div>

Is there a limit for how many statements I should put in the same function? I have a function that takes care of all of the code for a movieclip and it's up in 16 "if statements" allready, should i split it up in more fu…

---

## [Turning Page effect. How?](https://forum.kirupa.com/t/turning-page-effect-how/319721)

<div class="topic-metadata">

**Author:** [@littlelu0](https://forum.kirupa.com/u/littlelu0)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 4:31pm UTC](https://forum.kirupa.com/t/turning-page-effect-how/319721 "2011-03-02T16:31:12Z")

</div>

Hi all! Newb here needs some advanced help \[smile\] I have an open book on my stage with content on the pages (pictures and text on separate layers). Is there anyone out there who knows how I could simulate a page tur…

---

## [Water Flow / Wave effect in Flash](https://forum.kirupa.com/t/water-flow-wave-effect-in-flash/319720)

<div class="topic-metadata">

**Author:** [@ash4640](https://forum.kirupa.com/u/ash4640)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 3:22pm UTC](https://forum.kirupa.com/t/water-flow-wave-effect-in-flash/319720 "2011-03-02T15:22:38Z")

</div>

How to simulate a realistic water flow / fluid motion like the one show in this Movie. http://www.youtube.com/watch?v=UkvTOgrKwGI Just the top of the water not the Bubbles... Im not thinking about Perlinflagwave becaus…

---

## [Need some help loading dynamic variable properly](https://forum.kirupa.com/t/need-some-help-loading-dynamic-variable-properly/319719)

<div class="topic-metadata">

**Author:** [@idias](https://forum.kirupa.com/u/idias)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 3:17pm UTC](https://forum.kirupa.com/t/need-some-help-loading-dynamic-variable-properly/319719 "2011-03-02T15:17:43Z")

</div>

Hi guys, 1st time posting. I am having some trouble learning AS3. Here's my case, I am trying to load an external php variable into Flash and I have no idea how to store the variable's value properly. In php, I have …

---

## [MC move on mouse location?](https://forum.kirupa.com/t/mc-move-on-mouse-location/319718)

<div class="topic-metadata">

**Author:** [@izzo101](https://forum.kirupa.com/u/izzo101)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 3:16pm UTC](https://forum.kirupa.com/t/mc-move-on-mouse-location/319718 "2011-03-02T15:16:14Z")

</div>

Trying to figure out how to make a movieclip move base on mouse location similar to the one seen in http://www.tcm.com/2011/31Days/index.jsp. I've found some script that I've been working with and it rotates the Y just f…

---

## [I can write to XML file, I can read XML, but I can’t write to XML and then reload it](https://forum.kirupa.com/t/i-can-write-to-xml-file-i-can-read-xml-but-i-can-t-write-to-xml-and-then-reload-it/319710)

<div class="topic-metadata">

**Author:** [@daragh\_c](https://forum.kirupa.com/u/daragh_c)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 10:43am UTC](https://forum.kirupa.com/t/i-can-write-to-xml-file-i-can-read-xml-but-i-can-t-write-to-xml-and-then-reload-it/319710 "2011-03-02T10:43:03Z")

</div>

Hi Guys. Thanks for looking at this request. Basically I have a Flash file that writes to XML file (gameLogEvents.xml) via PHP, which actually works fine. I can click on a button in my .swf which will append to m…

---

## [Removing FLVPlayback and FLVPlaybackCaptioning from stage](https://forum.kirupa.com/t/removing-flvplayback-and-flvplaybackcaptioning-from-stage/319707)

<div class="topic-metadata">

**Author:** [@feuerfuchs](https://forum.kirupa.com/u/feuerfuchs)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 10:12am UTC](https://forum.kirupa.com/t/removing-flvplayback-and-flvplaybackcaptioning-from-stage/319707 "2011-03-02T10:12:14Z")

</div>

Hi, I am having difficulties to remove my FLVPlayback and FLVPlaybackCaptioning components from stage. Could anyone possibly help me out, please? In my project I have a list of content objects which I want to play on…

---

## [Tutorial: Associative Array Access](https://forum.kirupa.com/t/tutorial-associative-array-access/319706)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 7:36am UTC](https://forum.kirupa.com/t/tutorial-associative-array-access/319706 "2011-03-02T07:36:17Z")

</div>

Hi everyone, This thread will be your home away from home...where you can discuss or post questions about the \[COLOR=#003366\]Associative Array Access\[/COLOR\] tutorial. Cheers, Kirupa :block:

---

## [Creating Slideshow of animation](https://forum.kirupa.com/t/creating-slideshow-of-animation/319704)

<div class="topic-metadata">

**Author:** [@pravingate07](https://forum.kirupa.com/u/pravingate07)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 6:24am UTC](https://forum.kirupa.com/t/creating-slideshow-of-animation/319704 "2011-03-02T06:24:27Z")

</div>

Hii, i want to create a slideshow of animation clips.It will either jpg sequence of animation or swf files. Actually the problem is, flash library is not capable to handle such a huge load of image sequence .so its crash…

---

## [Event not bubbling to ancestor?](https://forum.kirupa.com/t/event-not-bubbling-to-ancestor/319701)

<div class="topic-metadata">

**Author:** [@anakadote](https://forum.kirupa.com/u/anakadote)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 3:37am UTC](https://forum.kirupa.com/t/event-not-bubbling-to-ancestor/319701 "2011-03-02T03:37:20Z")

</div>

I can't figure out why the event listener callback function isn't being fired when a child object is being clicked. Since the "SelectionPoint" object is a child of this class, shouldn't the listener get notified of the M…

---

## [TextInput and button](https://forum.kirupa.com/t/textinput-and-button/319700)

<div class="topic-metadata">

**Author:** [@walerka](https://forum.kirupa.com/u/walerka)\
**Replies:** 0\
**Last updated:** [March 2, 2011, 3:08am UTC](https://forum.kirupa.com/t/textinput-and-button/319700 "2011-03-02T03:08:47Z")

</div>

Hell all! I need some way when introducing the text in the TextInput, activate the button when the text in the TextInput not, the field is empty, the button becomes inactive, as it can be implemented? Thanks

---

## [Can't Get Rid of Loaded Swf?](https://forum.kirupa.com/t/cant-get-rid-of-loaded-swf/319697)

<div class="topic-metadata">

**Author:** [@Donutfiend84](https://forum.kirupa.com/u/Donutfiend84)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 11:56pm UTC](https://forum.kirupa.com/t/cant-get-rid-of-loaded-swf/319697 "2011-03-01T23:56:28Z")

</div>

I have a flash file, that functions as a browser, allowing the user to play a number of other externally loaded swf. the problem is, I can't get rid of the swf once its loaded. I've deleted the loader, set all vars it wa…

---

## [Looking for realistic pool water ideas](https://forum.kirupa.com/t/looking-for-realistic-pool-water-ideas/319695)

<div class="topic-metadata">

**Author:** [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 11:12pm UTC](https://forum.kirupa.com/t/looking-for-realistic-pool-water-ideas/319695 "2011-03-01T23:12:53Z")

</div>

The water in pools reflects light differently than lakes, probably due to clarity. For lack of a better descriptive term, I think you would call it reticulation. Found an example on FlashKit but it is a many framed ani…

---

## [Detect flash, change z-index (Javascript?)](https://forum.kirupa.com/t/detect-flash-change-z-index-javascript/319693)

<div class="topic-metadata">

**Author:** [@rjtech](https://forum.kirupa.com/u/rjtech)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 10:08pm UTC](https://forum.kirupa.com/t/detect-flash-change-z-index-javascript/319693 "2011-03-01T22:08:16Z")

</div>

Hi Everyone, I've run into a problem and think Javascript may be my solution. I'm incredibly new to Javascript and trying to learn it so if it's best to use a different method please let me know! I was given a fully…

---

## [Array Problem "1069"](https://forum.kirupa.com/t/array-problem-1069/319692)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 9:48pm UTC](https://forum.kirupa.com/t/array-problem-1069/319692 "2011-03-01T21:48:59Z")

</div>

I add a child to an array after its added if (\_viewLandedAtAsBase == true) { addChild(asBaseScreen); currentBase.push\[asBaseScreen\] } then lat…

---

## [PHP returning 'undefined' from mysql](https://forum.kirupa.com/t/php-returning-undefined-from-mysql/319690)

<div class="topic-metadata">

**Author:** [@newsomjk](https://forum.kirupa.com/u/newsomjk)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 9:28pm UTC](https://forum.kirupa.com/t/php-returning-undefined-from-mysql/319690 "2011-03-01T21:28:28Z")

</div>

I can't for the life of me figure out what's going wrong here, and I'm not well versed in mysql so I feel like it's something simple... here's my php file: \<?php $connection=mysql\_connect("localhost","nt","10134…

---

## [Dynamically Add Cue Points Without Using "FLVPlayback"?](https://forum.kirupa.com/t/dynamically-add-cue-points-without-using-flvplayback/319688)

<div class="topic-metadata">

**Author:** [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 8:37pm UTC](https://forum.kirupa.com/t/dynamically-add-cue-points-without-using-flvplayback/319688 "2011-03-01T20:37:30Z")

</div>

Happy spring, all. Is it possible to insert cue points into a video on the fly ala the \[FONT=Courier New\]addASCuePoint()\[/FONT\] method in the\[FONT=Courier New\] FLVPlayback\[/FONT\] component, i.e. using only the native c…

---

## [Saving Multiple Text Files](https://forum.kirupa.com/t/saving-multiple-text-files/319687)

<div class="topic-metadata">

**Author:** [@magicpat2010](https://forum.kirupa.com/u/magicpat2010)\
**Replies:** 0\
**Last updated:** [March 1, 2011, 8:34pm UTC](https://forum.kirupa.com/t/saving-multiple-text-files/319687 "2011-03-01T20:34:00Z")

</div>

I am currently developing a form that saves all text fields, and creates a text file for each field. Some fields require a lot of information, so I figured (I think its called) URL Encoding wouldn't be useful. I can sav…

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

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