# programming

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

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

**Page:** 1139

---

## [MySQL query, PHP help](https://forum.kirupa.com/t/mysql-query-php-help/266916)

<div class="topic-metadata">

**Author:** [@gregmax](https://forum.kirupa.com/u/gregmax)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 3:38pm UTC](https://forum.kirupa.com/t/mysql-query-php-help/266916 "2008-07-25T15:38:52Z")

</div>

Hello again Kirupans, I have been here a lot lately the past 48 hours... because you guys are great for advice and suggestions. I am trying to display a simple rankings system. In the Database I have something like th…

---

## [Event propagation vs. event blocking -- confused, even after Moock!](https://forum.kirupa.com/t/event-propagation-vs-event-blocking-confused-even-after-moock/266914)

<div class="topic-metadata">

**Author:** [@krazykat](https://forum.kirupa.com/u/krazykat)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 3:23pm UTC](https://forum.kirupa.com/t/event-propagation-vs-event-blocking-confused-even-after-moock/266914 "2008-07-25T15:23:53Z")

</div>

I thought I understood the AS3 event scheme: capture, target, bubbling. That events (e.g. MouseEvents) travel from stage to the object clicked on and then back again, and all objects in the display chain receive and can…

---

## [Text cut off if filters are used](https://forum.kirupa.com/t/text-cut-off-if-filters-are-used/266913)

<div class="topic-metadata">

**Author:** [@BarkinB](https://forum.kirupa.com/u/BarkinB)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 2:35pm UTC](https://forum.kirupa.com/t/text-cut-off-if-filters-are-used/266913 "2008-07-25T14:35:45Z")

</div>

Please excuse me if this is old news... I've run into a bug where text (static or dynamic) is cut off when filters are applied. For example, I can create a static text object on the stage with a common font (Arial) and p…

---

## [PHP mail](https://forum.kirupa.com/t/php-mail/266912)

<div class="topic-metadata">

**Author:** [@jaioxung](https://forum.kirupa.com/u/jaioxung)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 2:32pm UTC](https://forum.kirupa.com/t/php-mail/266912 "2008-07-25T14:32:52Z")

</div>

I am trying to set up a simple PHP mail from the tutorial hosted on this site. Everything is working but when that mail is recieved the text that is sent is embedded in HTML tags. Any idea how to fix this?

---

## [Help making algorythm](https://forum.kirupa.com/t/help-making-algorythm/266909)

<div class="topic-metadata">

**Author:** [@RummeR](https://forum.kirupa.com/u/RummeR)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:14pm UTC](https://forum.kirupa.com/t/help-making-algorythm/266909 "2008-07-25T13:14:50Z")

</div>

My problem may not be so connected with AS2 but the thing is that I am programing with AS2 so here goes my question: I want to create an algorithm that looks up an array and finds the nearest integer in it. Lets say i …

---

## [Can a button control a Combobox and vice versa?](https://forum.kirupa.com/t/can-a-button-control-a-combobox-and-vice-versa/266908)

<div class="topic-metadata">

**Author:** [@flashfreelancer](https://forum.kirupa.com/u/flashfreelancer)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 12:29pm UTC](https://forum.kirupa.com/t/can-a-button-control-a-combobox-and-vice-versa/266908 "2008-07-25T12:29:37Z")

</div>

When I click a button, I want it to display the corresponding label in the ComboBox. If so, how???

---

## [\[CS3/AS2.0\]MovieClip instance name to string ! how?](https://forum.kirupa.com/t/cs3-as2-0-movieclip-instance-name-to-string-how/266904)

<div class="topic-metadata">

**Author:** [@NoobGeek](https://forum.kirupa.com/u/NoobGeek)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:23am UTC](https://forum.kirupa.com/t/cs3-as2-0-movieclip-instance-name-to-string-how/266904 "2008-07-25T11:23:55Z")

</div>

Hello there , nice joinin the forum....I have a question for you dear folks! I would like to pass the name of a movieclip to a string so my attachmovie method can work. what I m doin is : \[FONT=Courier New\]function c…

---

## [fileReference download file extension](https://forum.kirupa.com/t/filereference-download-file-extension/266903)

<div class="topic-metadata">

**Author:** [@tolk](https://forum.kirupa.com/u/tolk)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 11:15am UTC](https://forum.kirupa.com/t/filereference-download-file-extension/266903 "2008-07-25T11:15:09Z")

</div>

I'm trying to get my flash movie to allow the user to download a file of a specific extension, at the moment i use: var fileSave:FileReference = new FileReference(); fileSave.download("./files/save.xml?cacheBuster=" +…

---

## [Basic Working with Classes](https://forum.kirupa.com/t/basic-working-with-classes/266896)

<div class="topic-metadata">

**Author:** [@coggia](https://forum.kirupa.com/u/coggia)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 9:30am UTC](https://forum.kirupa.com/t/basic-working-with-classes/266896 "2008-07-25T09:30:54Z")

</div>

Hello, I'm new to AS3 so I try to code 'by the book' and try to forgot my old procedurials methods of coding :\\ So i'm trying to interact with classes: -I got 2 classes (class1,class2)that extends movie clip, each clas…

---

## [Changing color photo to Black & White (BW)](https://forum.kirupa.com/t/changing-color-photo-to-black-white-bw/266895)

<div class="topic-metadata">

**Author:** [@ibisal](https://forum.kirupa.com/u/ibisal)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 9:30am UTC](https://forum.kirupa.com/t/changing-color-photo-to-black-white-bw/266895 "2008-07-25T09:30:49Z")

</div>

On http://www.ibisal.com/ you can see a small portfolio, just under main menu with thumbnails and a piece of information about project. I want to present a bw photo and on RollOver change it into color. There is only …

---

## [SWF files not appearing when I upload to server!](https://forum.kirupa.com/t/swf-files-not-appearing-when-i-upload-to-server/266894)

<div class="topic-metadata">

**Author:** [@spina](https://forum.kirupa.com/u/spina)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 9:12am UTC](https://forum.kirupa.com/t/swf-files-not-appearing-when-i-upload-to-server/266894 "2008-07-25T09:12:39Z")

</div>

Hello all, Hope someone can help as I've been googling for answers for a while and not finding a solution. I'm using Geocities as my hosting server, designing my site in Dreamweaver and have a number of SWF components..…

---

## [Help with Timer/Timer events](https://forum.kirupa.com/t/help-with-timer-timer-events/266890)

<div class="topic-metadata">

**Author:** [@mofakiii](https://forum.kirupa.com/u/mofakiii)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 6:45am UTC](https://forum.kirupa.com/t/help-with-timer-timer-events/266890 "2008-07-25T06:45:45Z")

</div>

Here's an odd question, let's say I attach a timer to a movieclip, and add a TimerEvent.TIMER listener as well... inside of that timer event is there any way to retrieve the name of the movieclip it's attached to? Let …

---

## [AnalogCLock](https://forum.kirupa.com/t/analogclock/266888)

<div class="topic-metadata">

**Author:** [@j3sr](https://forum.kirupa.com/u/j3sr)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 6:30am UTC](https://forum.kirupa.com/t/analogclock/266888 "2008-07-25T06:30:47Z")

</div>

I Have a complex doubt regarding AnalogClock...............I was told to modify an existing code which is given in: http://www.brightpointinc.com/FlexDe...ugesample.html I was forced to do the same by my boss....no o…

---

## [Combo Box in flash form](https://forum.kirupa.com/t/combo-box-in-flash-form/266887)

<div class="topic-metadata">

**Author:** [@trnghosh](https://forum.kirupa.com/u/trnghosh)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 5:41am UTC](https://forum.kirupa.com/t/combo-box-in-flash-form/266887 "2008-07-25T05:41:11Z")

</div>

Hi Great Flashers, I am trying to make one email form effective with combo box. So far what I am making you can find all files here. http://aqua.caterpillars.co.in/revised.zip But there is some problem. With this I c…

---

## [\[noob\] How to use custom classes?](https://forum.kirupa.com/t/noob-how-to-use-custom-classes/266884)

<div class="topic-metadata">

**Author:** [@REEF](https://forum.kirupa.com/u/REEF)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 4:56am UTC](https://forum.kirupa.com/t/noob-how-to-use-custom-classes/266884 "2008-07-25T04:56:23Z")

</div>

My document class: package { import math.mathFuncs; import flash.display.MovieClip; public class project extends MovieClip { public function project () { var myArea:area = new area(); trace(myArea(2,5)); …

---

## [Pagination Gallery Help](https://forum.kirupa.com/t/pagination-gallery-help/266883)

<div class="topic-metadata">

**Author:** [@james182](https://forum.kirupa.com/u/james182)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 3:45am UTC](https://forum.kirupa.com/t/pagination-gallery-help/266883 "2008-07-25T03:45:18Z")

</div>

i am trying to get this gallery to work correctly, i have 13 images from an xml file and i have broken it down to 6 images per page which gives me 3 pages (6, 6, 1). the problem: it's only looping through the first gro…

---

## [Linking my music player to my website](https://forum.kirupa.com/t/linking-my-music-player-to-my-website/266882)

<div class="topic-metadata">

**Author:** [@vipergt9](https://forum.kirupa.com/u/vipergt9)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 3:28am UTC](https://forum.kirupa.com/t/linking-my-music-player-to-my-website/266882 "2008-07-25T03:28:43Z")

</div>

Hi, i am having some problems linking my mp3 player swf file to my website. It looks like it loads fine, and the buttons work and change the track of the song, but there is no sound heard or played. Here is the code i us…

---

## [JavaScript: How to load external text database to webpage at regular interval?](https://forum.kirupa.com/t/javascript-how-to-load-external-text-database-to-webpage-at-regular-interval/266880)

<div class="topic-metadata">

**Author:** [@alex298](https://forum.kirupa.com/u/alex298)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 2:52am UTC](https://forum.kirupa.com/t/javascript-how-to-load-external-text-database-to-webpage-at-regular-interval/266880 "2008-07-25T02:52:42Z")

</div>

Hello, I have a webpage (tips.htm) that will show “tips to-day”. There are basically three pages: tips.html tip.php tip\_database.txt (has both Chinese and English Characters) How it works: The tips that show in tip…

---

## [Scaling images to match browser window](https://forum.kirupa.com/t/scaling-images-to-match-browser-window/266879)

<div class="topic-metadata">

**Author:** [@media\_mixx](https://forum.kirupa.com/u/media_mixx)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 2:39am UTC](https://forum.kirupa.com/t/scaling-images-to-match-browser-window/266879 "2008-07-25T02:39:40Z")

</div>

Does anyone know of a tutorial ( I've seen the liquid demo and I can't figure it out for what I am doing) that will scale a gallery image to the browser window but not scale all of the graphics like the navigation. This …

---

## [addEventListener Problem](https://forum.kirupa.com/t/addeventlistener-problem/266876)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 2:31am UTC](https://forum.kirupa.com/t/addeventlistener-problem/266876 "2008-07-25T02:31:58Z")

</div>

Hello I have five thumbnail MovieClips that I created in Flash IDE. Each thumbnail clip contins the name of the project description and another button called lauch which when clicked goes to the url related with that p…

---

## [Haven't done this before ... any ideas?](https://forum.kirupa.com/t/havent-done-this-before-any-ideas/266871)

<div class="topic-metadata">

**Author:** [@Aadar](https://forum.kirupa.com/u/Aadar)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:35am UTC](https://forum.kirupa.com/t/havent-done-this-before-any-ideas/266871 "2008-07-25T01:35:59Z")

</div>

I'm a new poster here ... hello to everyone. I've been looking all over the web for a solution to this and so far haven't found it. Maybe someone here has done this before and can help me out. If this should be in anot…

---

## [How do Web Services handle so many requests?](https://forum.kirupa.com/t/how-do-web-services-handle-so-many-requests/266868)

<div class="topic-metadata">

**Author:** [@pittsburghjoe](https://forum.kirupa.com/u/pittsburghjoe)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:13am UTC](https://forum.kirupa.com/t/how-do-web-services-handle-so-many-requests/266868 "2008-07-25T01:13:18Z")

</div>

I'm learning about SOA and the fun that goes with it ..Polling, SOAP, Remoting and I'm curious how your average "service" provider can handle a constant bombardment of requests? Does WSDL have something built in to pre…

---

## [htmlText and StyleSheet](https://forum.kirupa.com/t/htmltext-and-stylesheet/266866)

<div class="topic-metadata">

**Author:** [@mleep](https://forum.kirupa.com/u/mleep)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 1:00am UTC](https://forum.kirupa.com/t/htmltext-and-stylesheet/266866 "2008-07-25T01:00:53Z")

</div>

Pretty simple code here, works just fine. var myStyles:TextField.StyleSheet = new TextField.StyleSheet(); myStyles.setStyle("p", {color:'#808080'}); myStyles.setStyle("h1", {color:'#84ABDB'}); this.createTextField("my…

---

## [What would be the AS3 conversion script for the following?](https://forum.kirupa.com/t/what-would-be-the-as3-conversion-script-for-the-following/266865)

<div class="topic-metadata">

**Author:** [@scott1969](https://forum.kirupa.com/u/scott1969)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 12:43am UTC](https://forum.kirupa.com/t/what-would-be-the-as3-conversion-script-for-the-following/266865 "2008-07-25T00:43:49Z")

</div>

stop(); function initGame() { // the range of falling apple clips firstApple = 1; lastApple = 0; // init the score score = 0; // set the number of apples to fall totalApples = 30; …

---

## [Accessing class objects via the name](https://forum.kirupa.com/t/accessing-class-objects-via-the-name/266864)

<div class="topic-metadata">

**Author:** [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 12:37am UTC](https://forum.kirupa.com/t/accessing-class-objects-via-the-name/266864 "2008-07-25T00:37:30Z")

</div>

Hello I have a class name Contents I am creating 5 objects of this class. Is there a way to keep track of the instance names assigned to the objects. What I am doing is get all the objects of Contents class and make b…

---

## [Online PHP socket server](https://forum.kirupa.com/t/online-php-socket-server/266863)

<div class="topic-metadata">

**Author:** [@Malebiale](https://forum.kirupa.com/u/Malebiale)\
**Replies:** 0\
**Last updated:** [July 25, 2008, 12:24am UTC](https://forum.kirupa.com/t/online-php-socket-server/266863 "2008-07-25T00:24:57Z")

</div>

Hello everyone, I am having bit of nightmare with development of online php socket server. I must admit that whole server side development is not exactly my best side but I manage to write a simple socket server tha…

---

## [Preload All XML Images At Beginning](https://forum.kirupa.com/t/preload-all-xml-images-at-beginning/266861)

<div class="topic-metadata">

**Author:** [@jpodz](https://forum.kirupa.com/u/jpodz)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 11:58pm UTC](https://forum.kirupa.com/t/preload-all-xml-images-at-beginning/266861 "2008-07-24T23:58:18Z")

</div>

Hey everybody. I currently have a gallery that loads from XML. I was wondering if there was a way to add a preloader to load all of the image nodes at the beginning of the .swf. I tried making en empty movieclip off of t…

---

## [Accessing MC's in an array](https://forum.kirupa.com/t/accessing-mcs-in-an-array/266858)

<div class="topic-metadata">

**Author:** [@rumoroso](https://forum.kirupa.com/u/rumoroso)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 11:20pm UTC](https://forum.kirupa.com/t/accessing-mcs-in-an-array/266858 "2008-07-24T23:20:44Z")

</div>

So this should be easy, but my actionscripting is pretty rusty... i have a series of movie clip buttons that I am enabling through a for-loop. The problem is, when i try to access these mc's, it isn't recognizing that th…

---

## [Help with this Error #1009](https://forum.kirupa.com/t/help-with-this-error-1009/266856)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 11:01pm UTC](https://forum.kirupa.com/t/help-with-this-error-1009/266856 "2008-07-24T23:01:22Z")

</div>

I'm familiar with \[FONT=Courier New\]Error #1009: Cannot access a property or method of a null object reference\[/FONT\]. but in this case I'm baffled about how to fix my code so that it still does what I need it to do whil…

---

## [Jpegs wont load with Internet Explorer](https://forum.kirupa.com/t/jpegs-wont-load-with-internet-explorer/266855)

<div class="topic-metadata">

**Author:** [@brandesign](https://forum.kirupa.com/u/brandesign)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 10:50pm UTC](https://forum.kirupa.com/t/jpegs-wont-load-with-internet-explorer/266855 "2008-07-24T22:50:01Z")

</div>

Hi, I am currently programing my portfolio site and I have tried a couple different ways of loading Jpegs from an images folder into an empty movie clip. Both worked sucessfully everywhere but PCs, which I hear are kind …

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

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