# programming

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

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

**Page:** 1453

---

## [Collisions and Gravity and Arrays oh my!](https://forum.kirupa.com/t/collisions-and-gravity-and-arrays-oh-my/245374)

<div class="topic-metadata">

**Author:** [@mdudlik](https://forum.kirupa.com/u/mdudlik)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 2:28am UTC](https://forum.kirupa.com/t/collisions-and-gravity-and-arrays-oh-my/245374 "2007-11-29T02:28:07Z")

</div>

Help request, yet again! Part A: I am making a site where there are 40 names. After clicking on a name, id like the other 39 to collapse to the bottom of the screen. Then, as those 39 are falling, have them detect c…

---

## [DisplayObject won't cast to MovieClip, halp please!](https://forum.kirupa.com/t/displayobject-wont-cast-to-movieclip-halp-please/245373)

<div class="topic-metadata">

**Author:** [@mrrookie](https://forum.kirupa.com/u/mrrookie)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 1:37am UTC](https://forum.kirupa.com/t/displayobject-wont-cast-to-movieclip-halp-please/245373 "2007-11-29T01:37:18Z")

</div>

Hi everyone, im new to this forums. I will have time for a more proper introduction later today :p. Im in a bit of a trouble. I have a quite a few hours of programming experience in other OOP languages but im pretty ne…

---

## [onMouseMove function not working](https://forum.kirupa.com/t/onmousemove-function-not-working/245372)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 11:55pm UTC](https://forum.kirupa.com/t/onmousemove-function-not-working/245372 "2007-11-28T23:55:57Z")

</div>

Ok, the code below does get called when the mouse moves, but its like it doesnt re-run the tween until the the mouse stops moving. Any idea on how to fix it? see example at: www.ronnieswietek.com click on portfolio …

---

## [Basic Recursion Problem](https://forum.kirupa.com/t/basic-recursion-problem/245371)

<div class="topic-metadata">

**Author:** [@madmotts](https://forum.kirupa.com/u/madmotts)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 11:27pm UTC](https://forum.kirupa.com/t/basic-recursion-problem/245371 "2007-11-28T23:27:54Z")

</div>

I'm writing a xml search function using recursion and I'm having problems stopping it when it finds what it's looking for. It parses the WHOLE tree even after it has found a node, which causes the function to return "und…

---

## [Papervision3d + ScreenSaver](https://forum.kirupa.com/t/papervision3d-screensaver/245366)

<div class="topic-metadata">

**Author:** [@marcusJones](https://forum.kirupa.com/u/marcusJones)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 9:32pm UTC](https://forum.kirupa.com/t/papervision3d-screensaver/245366 "2007-11-28T21:32:30Z")

</div>

Alright, So I have been creating a screensaver is flash and papervision3d. I've got it working except for the rotation. Right now it's all over the place. I've never been good at the math in terms of actionscript, so I …

---

## [Trouble Storing XML Results in an Object](https://forum.kirupa.com/t/trouble-storing-xml-results-in-an-object/245364)

<div class="topic-metadata">

**Author:** [@katyjack](https://forum.kirupa.com/u/katyjack)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 9:29pm UTC](https://forum.kirupa.com/t/trouble-storing-xml-results-in-an-object/245364 "2007-11-28T21:29:39Z")

</div>

I've got a pretty complex XML file that I'm trying to process and I want to store all the results in one custom object. However, I'm having trouble getting past the first step. I want the object to have this basic format…

---

## [XML gallery: numbers + next buttons: PLEASE help?](https://forum.kirupa.com/t/xml-gallery-numbers-next-buttons-please-help/245358)

<div class="topic-metadata">

**Author:** [@cyan](https://forum.kirupa.com/u/cyan)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:46pm UTC](https://forum.kirupa.com/t/xml-gallery-numbers-next-buttons-please-help/245358 "2007-11-28T20:46:53Z")

</div>

I've adapted the xml gallery to have numbers instead of thumbs from one of the threads here, but now realize that the prev and next buttons do not work properly when including the numbers. (If I press on a number , say "…

---

## [Timeline Controller](https://forum.kirupa.com/t/timeline-controller/245356)

<div class="topic-metadata">

**Author:** [@athoughtbytim](https://forum.kirupa.com/u/athoughtbytim)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:34pm UTC](https://forum.kirupa.com/t/timeline-controller/245356 "2007-11-28T20:34:07Z")

</div>

Is there a good controller or scroller that controls the main time line that I can buy or get a solid code for? I want to be able to have one controller that will access any frame simply by a mouse over. for example o…

---

## [Accessing DynamicText from external class](https://forum.kirupa.com/t/accessing-dynamictext-from-external-class/245355)

<div class="topic-metadata">

**Author:** [@corvenus](https://forum.kirupa.com/u/corvenus)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:32pm UTC](https://forum.kirupa.com/t/accessing-dynamictext-from-external-class/245355 "2007-11-28T20:32:48Z")

</div>

Hi everyone, I know this has been asked countless times, I had a look at a many posts concerning this subject, but it got me confused more than anything. For example, I have looked at Senocular's Tip of the day, but i…

---

## [MP3 Player in Flash](https://forum.kirupa.com/t/mp3-player-in-flash/245354)

<div class="topic-metadata">

**Author:** [@esthergtj](https://forum.kirupa.com/u/esthergtj)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:19pm UTC](https://forum.kirupa.com/t/mp3-player-in-flash/245354 "2007-11-28T20:19:27Z")

</div>

Hi I am new to flash and this forum. I created a mp3 player with equalizer but have some problem with it. I created the player with music will not start until the play button been click on. So here is my problems. Fir…

---

## [PHP Mailer / Permissions?](https://forum.kirupa.com/t/php-mailer-permissions/245352)

<div class="topic-metadata">

**Author:** [@adam\_fake](https://forum.kirupa.com/u/adam_fake)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:12pm UTC](https://forum.kirupa.com/t/php-mailer-permissions/245352 "2007-11-28T20:12:10Z")

</div>

I have a PHP Mailer that i've incorporated into my Flash file. I've used it in the past and it has worked and i've received the email with the relevant details. I've gone to use it again and i've also tried using the o…

---

## [Embeding fonts](https://forum.kirupa.com/t/embeding-fonts/245351)

<div class="topic-metadata">

**Author:** [@sparky\_157](https://forum.kirupa.com/u/sparky_157)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:05pm UTC](https://forum.kirupa.com/t/embeding-fonts/245351 "2007-11-28T20:05:08Z")

</div>

Is there a way to embed a font for an entire swf instead of embedding every single text area? Thanks for the hepl

---

## [Extending events, passing parameters to event handlers and controlling MCs](https://forum.kirupa.com/t/extending-events-passing-parameters-to-event-handlers-and-controlling-mcs/245349)

<div class="topic-metadata">

**Author:** [@iblokh](https://forum.kirupa.com/u/iblokh)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:59pm UTC](https://forum.kirupa.com/t/extending-events-passing-parameters-to-event-handlers-and-controlling-mcs/245349 "2007-11-28T19:59:51Z")

</div>

Ok, I assume this issue has been covered to death, but I'm still lost. In my application, I have numerous buttons which, when clicked, will activate numerous movie clips. To avoid having to create individual event ahnd…

---

## [PHP MySQL n Flash](https://forum.kirupa.com/t/php-mysql-n-flash/245348)

<div class="topic-metadata">

**Author:** [@rapier\_gv](https://forum.kirupa.com/u/rapier_gv)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:42pm UTC](https://forum.kirupa.com/t/php-mysql-n-flash/245348 "2007-11-28T19:42:24Z")

</div>

Hello all! I'm trying to do some basic flash actionscript comunication with a mysql database via php. codes are as following: The Flash part: //no reason to have delete button invisible to start with...a whim on m…

---

## [How does setChildIndex(); work?](https://forum.kirupa.com/t/how-does-setchildindex-work/245345)

<div class="topic-metadata">

**Author:** [@Awesome\_O\_4000](https://forum.kirupa.com/u/Awesome_O_4000)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:27pm UTC](https://forum.kirupa.com/t/how-does-setchildindex-work/245345 "2007-11-28T19:27:51Z")

</div>

For the life of me, I cannot understand this method. The help files are confusing to me, and I can't locate anything else on the web that explains how it works. What I have is an array of 5 objects closely in a row, th…

---

## [\[FL8 + PHP + MySQL\] Adding/Deleting/Viewing Content from MySQL db](https://forum.kirupa.com/t/fl8-php-mysql-adding-deleting-viewing-content-from-mysql-db/245344)

<div class="topic-metadata">

**Author:** [@mastermode](https://forum.kirupa.com/u/mastermode)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:19pm UTC](https://forum.kirupa.com/t/fl8-php-mysql-adding-deleting-viewing-content-from-mysql-db/245344 "2007-11-28T19:19:38Z")

</div>

So... Viewing isn't actually the issue here, I just added it to make it a full triangle \[smiley\] . I'm doing that with a PHP that writes the contents of the dB in XML syntax. But, to make it clear, I am trying to deve…

---

## [Preload sounds / Play on key press](https://forum.kirupa.com/t/preload-sounds-play-on-key-press/245342)

<div class="topic-metadata">

**Author:** [@bardic](https://forum.kirupa.com/u/bardic)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 6:58pm UTC](https://forum.kirupa.com/t/preload-sounds-play-on-key-press/245342 "2007-11-28T18:58:41Z")

</div>

Ok. Trying to preload all the sounds, and after loading allow the user to hit keys on their keyboard to make the noise related to the key. But I am stuck. The preloader works but when I hit the key it loads it again. And…

---

## [\[PHP\] Add days to timestamp](https://forum.kirupa.com/t/php-add-days-to-timestamp/245341)

<div class="topic-metadata">

**Author:** [@nobody](https://forum.kirupa.com/u/nobody)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 6:53pm UTC](https://forum.kirupa.com/t/php-add-days-to-timestamp/245341 "2007-11-28T18:53:27Z")

</div>

Hi everyone, Working on a project for work and can't really figure this out. I'm sure I could dig around for three hours and figure it out but I'm sure someone here is a little smarter than me and has the answer. I …

---

## ["fscommand("fullscreen","true");" error AS3](https://forum.kirupa.com/t/fscommand-fullscreen-true-error-as3/245337)

<div class="topic-metadata">

**Author:** [@akrantz](https://forum.kirupa.com/u/akrantz)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 5:36pm UTC](https://forum.kirupa.com/t/fscommand-fullscreen-true-error-as3/245337 "2007-11-28T17:36:17Z")

</div>

Hey guys, Is the fullscreen function the same for AS3 as it was AS2? Currently I have "fscommand("fullscreen","true");" in the first frame of my movie and it launches my projector into fullscreen mode, which is what I wa…

---

## [Accessing Elements on the Stage from a linked Class](https://forum.kirupa.com/t/accessing-elements-on-the-stage-from-a-linked-class/245331)

<div class="topic-metadata">

**Author:** [@daveistheword](https://forum.kirupa.com/u/daveistheword)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 5:08pm UTC](https://forum.kirupa.com/t/accessing-elements-on-the-stage-from-a-linked-class/245331 "2007-11-28T17:08:39Z")

</div>

I'm trying to link a clip to a class, and it goes well until I try to access MovieClips or TextFields placed on the stage within that clip from code in the class. My code is below; there is a TextField called output\_txt …

---

## [Showing buffer status when loading flv](https://forum.kirupa.com/t/showing-buffer-status-when-loading-flv/245330)

<div class="topic-metadata">

**Author:** [@tlk](https://forum.kirupa.com/u/tlk)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 4:45pm UTC](https://forum.kirupa.com/t/showing-buffer-status-when-loading-flv/245330 "2007-11-28T16:45:57Z")

</div>

Hi all, I really hope someone can help me here. I have a flv movie that i stream progressive in AS3. The bufferTime is set to 20 sec. Here is the problem: I would like to inform the user in percentage the status on b…

---

## [Add Pages To Gallery](https://forum.kirupa.com/t/add-pages-to-gallery/245322)

<div class="topic-metadata">

**Author:** [@ponyack](https://forum.kirupa.com/u/ponyack)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 3:29pm UTC](https://forum.kirupa.com/t/add-pages-to-gallery/245322 "2007-11-28T15:29:49Z")

</div>

Hi, I am using a gallery that loads from an XML file. I would like to add pages to each of the categories. Example: If I can display 10 images but i have 15 images i need to create a button that would load the next…

---

## [Skinning the progress bar](https://forum.kirupa.com/t/skinning-the-progress-bar/245318)

<div class="topic-metadata">

**Author:** [@Toner](https://forum.kirupa.com/u/Toner)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 3:04pm UTC](https://forum.kirupa.com/t/skinning-the-progress-bar/245318 "2007-11-28T15:04:28Z")

</div>

Hi, How do you skin the progress bar component in Flash Pro 8? Thanks

---

## [Where is the error?](https://forum.kirupa.com/t/where-is-the-error/245315)

<div class="topic-metadata">

**Author:** [@Loyx](https://forum.kirupa.com/u/Loyx)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 2:43pm UTC](https://forum.kirupa.com/t/where-is-the-error/245315 "2007-11-28T14:43:03Z")

</div>

gotoAndPlay((getProperty(getProperty(this, \_target), \_target) eq "" ? ("pic1") : (if (mbsubstring(getProperty(getProperty(this, \_target), \_target), mblength(getProperty(getProperty(this, \_target), \_target)), 1) eq "/") …

---

## [Help with editing XML in Flash 8](https://forum.kirupa.com/t/help-with-editing-xml-in-flash-8/245314)

<div class="topic-metadata">

**Author:** [@fathed](https://forum.kirupa.com/u/fathed)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 2:00pm UTC](https://forum.kirupa.com/t/help-with-editing-xml-in-flash-8/245314 "2007-11-28T14:00:34Z")

</div>

\[COLOR=black\]\[FONT=Arial\]I basically need to load in an XML and then edit it in Flash 8. I have the PHP working; I can write and read XML. The problem is once I have it in Flash I don’t know what to do to edit the thing.…

---

## [removeEventListener does not work in as3?](https://forum.kirupa.com/t/removeeventlistener-does-not-work-in-as3/245311)

<div class="topic-metadata">

**Author:** [@verytorpe](https://forum.kirupa.com/u/verytorpe)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 1:18pm UTC](https://forum.kirupa.com/t/removeeventlistener-does-not-work-in-as3/245311 "2007-11-28T13:18:14Z")

</div>

Hello everyone I'm a poor man suffering as2 to as3 migration-itis I have a fla with this code. It puts a button on the stage and adds rollover-rollout listeners to it: package ugh{ import flash.display.\* import fla…

---

## [ActionScript 3 snow](https://forum.kirupa.com/t/actionscript-3-snow/245309)

<div class="topic-metadata">

**Author:** [@prinzessin\_mia](https://forum.kirupa.com/u/prinzessin_mia)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 1:04pm UTC](https://forum.kirupa.com/t/actionscript-3-snow/245309 "2007-11-28T13:04:46Z")

</div>

Help!!! I am a newbie and need to create some falling snow in Actionscript 3. I know a little bit and have had a go at it myself. i used the lovely tutorial Falling snow 2.0 and tried to convert the code to AS3. Maybe…

---

## [Search String, can't find full stops (periods)](https://forum.kirupa.com/t/search-string-cant-find-full-stops-periods/245308)

<div class="topic-metadata">

**Author:** [@perfecthill](https://forum.kirupa.com/u/perfecthill)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 12:58pm UTC](https://forum.kirupa.com/t/search-string-cant-find-full-stops-periods/245308 "2007-11-28T12:58:11Z")

</div>

Hi, I'm trying to search a string for a full stop (period in American), but I can't seem to get it to work properly: This is a sample of my code: var str:String = calc\_content.text; //textbox content trace(str.sea…

---

## [Can we communicate to webservice](https://forum.kirupa.com/t/can-we-communicate-to-webservice/245304)

<div class="topic-metadata">

**Author:** [@pandu\_kirupa](https://forum.kirupa.com/u/pandu_kirupa)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 12:52pm UTC](https://forum.kirupa.com/t/can-we-communicate-to-webservice/245304 "2007-11-28T12:52:00Z")

</div>

Hi all, I just want to know is, Can we communicate to web service while the SWF is playing online? If so pls tell me how we can connect. Is there any restrictions stopping the SWF to communicate? Thanks in advance …

---

## [Splitting results back into an Array](https://forum.kirupa.com/t/splitting-results-back-into-an-array/245301)

<div class="topic-metadata">

**Author:** [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 12:22pm UTC](https://forum.kirupa.com/t/splitting-results-back-into-an-array/245301 "2007-11-28T12:22:08Z")

</div>

Folks, I have a single field in a MYSQL table that has multiple text values entered into it from an array. How do I get these results back out of the area to refer to them as separate values? Help!

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

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