# programming

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

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

**Page:** 1219

---

## [URGENT; help!](https://forum.kirupa.com/t/urgent-help/261707)

<div class="topic-metadata">

**Author:** [@KathrynRose](https://forum.kirupa.com/u/KathrynRose)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 2:40am UTC](https://forum.kirupa.com/t/urgent-help/261707 "2008-05-30T02:40:16Z")

</div>

I am making a portfolio for my photography for a uni course. I have never done coding before. I simply want my portfolio to stop and then I have simple buttons to navigate through to other keyframes. This is not …

---

## [\[AS2\] Need Help with: Kirupa's Flash PHP Email](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604)

<div class="topic-metadata">

**Author:** [@tailz](https://forum.kirupa.com/u/tailz)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 2:33am UTC](https://forum.kirupa.com/t/as2-need-help-with-kirupas-flash-php-email/261604 "2008-05-30T02:33:53Z")

</div>

Hello, I am trying to make an email form following the guide given in "Kirupa\_flash\_php\_email" example in the flash guides section of this web site. Now I can get it to work, eg: send me an email. But it does not go to t…

---

## [How to play a sound for 6 times with set play interval?](https://forum.kirupa.com/t/how-to-play-a-sound-for-6-times-with-set-play-interval/261640)

<div class="topic-metadata">

**Author:** [@alex298](https://forum.kirupa.com/u/alex298)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 2:22am UTC](https://forum.kirupa.com/t/how-to-play-a-sound-for-6-times-with-set-play-interval/261640 "2008-05-30T02:22:00Z")

</div>

Hi, I know how to play a sound effect: var mySoundReq:URLRequest = new URLRequest(“laser.mp3”); var mySound:Sound = new Sound(); mySound.load(mySoundReq); mySound.addEventListener(Event.COMPLETE, playSong); functi…

---

## [Progress Report Videos](https://forum.kirupa.com/t/progress-report-videos/244798)

<div class="topic-metadata">

**Author:** [@Z11](https://forum.kirupa.com/u/Z11)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 2:16am UTC](https://forum.kirupa.com/t/progress-report-videos/244798 "2008-05-30T02:16:50Z")

</div>

So I figured I should stop adding a different title to each week's progress report, and just not specify in the main thread title. that way I can paste the video in the same thread... Here is Week 7... http://www.yout…

---

## [TextField + TextFormat =\> text does not show even though is there](https://forum.kirupa.com/t/textfield-textformat-text-does-not-show-even-though-is-there/257307)

<div class="topic-metadata">

**Author:** [@jansensan](https://forum.kirupa.com/u/jansensan)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 2:13am UTC](https://forum.kirupa.com/t/textfield-textformat-text-does-not-show-even-though-is-there/257307 "2008-05-30T02:13:10Z")

</div>

i am trying to make a function to deal easily with text formatting. there seems to be a problem as the text in the textfield is not visible. all the parameters and attributes are set properly when i trace, i can even cop…

---

## [Clearing Text From Text Input Component](https://forum.kirupa.com/t/clearing-text-from-text-input-component/261702)

<div class="topic-metadata">

**Author:** [@bdq172](https://forum.kirupa.com/u/bdq172)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 1:59am UTC](https://forum.kirupa.com/t/clearing-text-from-text-input-component/261702 "2008-05-30T01:59:16Z")

</div>

I have a text input component on stage and a button next to it. I want to clear any text that's entered when the button is clicked. Here's what I've got so far. Thanks for any help. tf.addEventListener(TextEvent.TEXT\_I…

---

## [Resizing dynamically loaded images](https://forum.kirupa.com/t/resizing-dynamically-loaded-images/261599)

<div class="topic-metadata">

**Author:** [@Julie2008](https://forum.kirupa.com/u/Julie2008)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 1:56am UTC](https://forum.kirupa.com/t/resizing-dynamically-loaded-images/261599 "2008-05-30T01:56:50Z")

</div>

Hi, I'm trying to make sure that no matter what size image is uploaded, it ends up the right size in the Flash loader. The code below does nothing to the image. At the moment without .width and .height a large image l…

---

## [Tile-based problem!](https://forum.kirupa.com/t/tile-based-problem/261584)

<div class="topic-metadata">

**Author:** [@Ph03nix](https://forum.kirupa.com/u/Ph03nix)\
**Replies:** 10\
**Last updated:** [May 30, 2008, 1:46am UTC](https://forum.kirupa.com/t/tile-based-problem/261584 "2008-05-30T01:46:34Z")

</div>

I'm having a big problem with my tile-based game. I create tiles based on a 2 dimensional array. Each tile is a Movie Clip, created using attachMovie. The problem is that when there are many of these tiles, the game lags…

---

## [Cursor at end of input text field after updating](https://forum.kirupa.com/t/cursor-at-end-of-input-text-field-after-updating/261703)

<div class="topic-metadata">

**Author:** [@zemm](https://forum.kirupa.com/u/zemm)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 1:35am UTC](https://forum.kirupa.com/t/cursor-at-end-of-input-text-field-after-updating/261703 "2008-05-30T01:35:10Z")

</div>

I've searched and I can't find an answer to this problem. I'm using Flash 8 Professional. I have a multiline input text box which a user can type stuff into, then click a button which will save what they typed and load…

---

## [Masking vs. clipping/croping](https://forum.kirupa.com/t/masking-vs-clipping-croping/261583)

<div class="topic-metadata">

**Author:** [@iscarrr](https://forum.kirupa.com/u/iscarrr)\
**Replies:** 8\
**Last updated:** [May 30, 2008, 1:02am UTC](https://forum.kirupa.com/t/masking-vs-clipping-croping/261583 "2008-05-30T01:02:22Z")

</div>

Hi guys, I understand masking movieclips, and theyre working - and after some experimenting what mask seems to do is only visually mask the movieclip, the entire object underneath the mask still exists in its real dime…

---

## [Fix My Code Please](https://forum.kirupa.com/t/fix-my-code-please/261570)

<div class="topic-metadata">

**Author:** [@rg\_chik](https://forum.kirupa.com/u/rg_chik)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 12:43am UTC](https://forum.kirupa.com/t/fix-my-code-please/261570 "2008-05-30T00:43:28Z")

</div>

can somebody fix my code so it works likes this: http://www.tutorialized.com/view/tutorial/Simple-Avoiding-Game/30968 muchly appreciated... package { import flash.display.MovieClip; import flash.utils.Timer; import f…

---

## [Null stage problem](https://forum.kirupa.com/t/null-stage-problem/261322)

<div class="topic-metadata">

**Author:** [@inquizard](https://forum.kirupa.com/u/inquizard)\
**Replies:** 14\
**Last updated:** [May 30, 2008, 12:24am UTC](https://forum.kirupa.com/t/null-stage-problem/261322 "2008-05-30T00:24:31Z")

</div>

Hi, I really need some help or advice if someone is able to help? I'm trying to load an external swf into a holding swf, but keep gettting the 1009# error. I've been told that this is because the external swf referen…

---

## [XML photo gallery and thumbnails](https://forum.kirupa.com/t/xml-photo-gallery-and-thumbnails/259722)

<div class="topic-metadata">

**Author:** [@majesk7](https://forum.kirupa.com/u/majesk7)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 12:23am UTC](https://forum.kirupa.com/t/xml-photo-gallery-and-thumbnails/259722 "2008-05-30T00:23:02Z")

</div>

Hi, I just completed the XML photo gallery tutorial, and it works great for me, but unfortunately it does not cover adding numbered thumbnails to the gallery (similar to how slideshow pro works). Im trying to add just …

---

## [\[AS2\] MSN Messenger](https://forum.kirupa.com/t/as2-msn-messenger/261484)

<div class="topic-metadata">

**Author:** [@tailz](https://forum.kirupa.com/u/tailz)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 11:11pm UTC](https://forum.kirupa.com/t/as2-msn-messenger/261484 "2008-05-29T23:11:55Z")

</div>

I want to put a little notification icon in my flash animation that displays if I am online or not, with also the ability for a user to maybe click the icon and engage in a MSN Messenger discussion with me. Has anyone se…

---

## [Removing an item from an array using splice()](https://forum.kirupa.com/t/removing-an-item-from-an-array-using-splice/261686)

<div class="topic-metadata">

**Author:** [@onion](https://forum.kirupa.com/u/onion)\
**Replies:** 4\
**Last updated:** [May 29, 2008, 9:36pm UTC](https://forum.kirupa.com/t/removing-an-item-from-an-array-using-splice/261686 "2008-05-29T21:36:27Z")

</div>

hello everyone! I'm using splice to remove items from an array and keep the indexes numeric, i.e. I don't want any "null" values in the array. If I remove one at a time, brilliant. My code is below: inventory.splic…

---

## [Running JS Functions from window.onload](https://forum.kirupa.com/t/running-js-functions-from-window-onload/261659)

<div class="topic-metadata">

**Author:** [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 9:29pm UTC](https://forum.kirupa.com/t/running-js-functions-from-window-onload/261659 "2008-05-29T21:29:35Z")

</div>

I'm trying to run these two functions onload and don't want the onload command in the body tag and am wondering if the way I set it up at the bottom is correct. It works fine but i'm not sure it's the right way. /\* ==…

---

## [Video Player(TypeError: Error #1009)](https://forum.kirupa.com/t/video-player-typeerror-error-1009/260500)

<div class="topic-metadata">

**Author:** [@rogerB](https://forum.kirupa.com/u/rogerB)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 9:28pm UTC](https://forum.kirupa.com/t/video-player-typeerror-error-1009/260500 "2008-05-29T21:28:04Z")

</div>

Hi All, i'm trying to set up my video player with as3. Now i'd like to use a volume control bar, but i got this strange error for me(not really familiar with as3): TypeError: Error #1009: Cannot access a property or…

---

## [Need Help w/ Basic XML Slideshow](https://forum.kirupa.com/t/need-help-w-basic-xml-slideshow/261672)

<div class="topic-metadata">

**Author:** [@msmith29063](https://forum.kirupa.com/u/msmith29063)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 9:04pm UTC](https://forum.kirupa.com/t/need-help-w-basic-xml-slideshow/261672 "2008-05-29T21:04:25Z")

</div>

Can someone help me with a couple of AS issues in a basic XML slideshow? Initially, I need to: Add a pause script where indicated (in seconds) Have the animation start over when it gets to the last slide Here's th…

---

## [Missing pre-packaged classes?](https://forum.kirupa.com/t/missing-pre-packaged-classes/228980)

<div class="topic-metadata">

**Author:** [@GenericUserName](https://forum.kirupa.com/u/GenericUserName)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 8:13pm UTC](https://forum.kirupa.com/t/missing-pre-packaged-classes/228980 "2008-05-29T20:13:34Z")

</div>

Hello all, Perhaps this is because i am running the trial version, but i seem to be missing assorted classes which should have been loaded on my computer when i installed Flash CS3 Professional. Most immediately import…

---

## [Creating and playing movie in movie](https://forum.kirupa.com/t/creating-and-playing-movie-in-movie/261682)

<div class="topic-metadata">

**Author:** [@forman](https://forum.kirupa.com/u/forman)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 8:03pm UTC](https://forum.kirupa.com/t/creating-and-playing-movie-in-movie/261682 "2008-05-29T20:03:03Z")

</div>

Hi, I'm trying to make a sort of slide show player, but with pop up images and animations (tweens). What I have so far is an xml file that has image file names and information tags for the image. Images get loaded and …

---

## [Review my code //it has comments + further ideas](https://forum.kirupa.com/t/review-my-code-it-has-comments-further-ideas/259899)

<div class="topic-metadata">

**Author:** [@t0w](https://forum.kirupa.com/u/t0w)\
**Replies:** 14\
**Last updated:** [May 29, 2008, 7:51pm UTC](https://forum.kirupa.com/t/review-my-code-it-has-comments-further-ideas/259899 "2008-05-29T19:51:05Z")

</div>

So I created this game, it's kinda fun (not really). Just kind of having trouble with coming up with ideas to make it better other than graphically. Basically you are a little archer who shoots an arrow at zombies who cr…

---

## [Component popup positioning?](https://forum.kirupa.com/t/component-popup-positioning/261679)

<div class="topic-metadata">

**Author:** [@miribota](https://forum.kirupa.com/u/miribota)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 7:47pm UTC](https://forum.kirupa.com/t/component-popup-positioning/261679 "2008-05-29T19:47:30Z")

</div>

I am currently working on a project which will be exported as a projector that runs full screen. On the stage I have several comboBoxes and colorPickers close to the bottom of the stage. When testing the (not full scree…

---

## [Bar Graphs and PHP/MySQL](https://forum.kirupa.com/t/bar-graphs-and-php-mysql/261579)

<div class="topic-metadata">

**Author:** [@one\_way\_7](https://forum.kirupa.com/u/one_way_7)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 7:38pm UTC](https://forum.kirupa.com/t/bar-graphs-and-php-mysql/261579 "2008-05-29T19:38:35Z")

</div>

Hello All! I'm trying to make a Bar graph that feeds off of data from a MySQL dbase, and server side language is php. I think I have the 'bar' part working, and i'm just messing with getting the data. PHP data: $stri…

---

## [\[AS2\] Thinking process - From procedural to OOP style scripting](https://forum.kirupa.com/t/as2-thinking-process-from-procedural-to-oop-style-scripting/261489)

<div class="topic-metadata">

**Author:** [@Rin](https://forum.kirupa.com/u/Rin)\
**Replies:** 6\
**Last updated:** [May 29, 2008, 7:22pm UTC](https://forum.kirupa.com/t/as2-thinking-process-from-procedural-to-oop-style-scripting/261489 "2008-05-29T19:22:32Z")

</div>

Hi everyone, I posted a thread on tutorials regarding making a full OOP site a couple of days ago http://www.kirupa.com/forum/showthread.php?t=298966 Now I'm stuck on how to breakdown a given functionality into resua…

---

## [Shell, clear temp folder](https://forum.kirupa.com/t/shell-clear-temp-folder/261666)

<div class="topic-metadata">

**Author:** [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 5:48pm UTC](https://forum.kirupa.com/t/shell-clear-temp-folder/261666 "2008-05-29T17:48:00Z")

</div>

Heya guys. Kinda need a shell script that can clear the content of a folder through cron.. Been messing a bit with it myself but it just wont clear it properly. Wanna remove everything but the .htaccess file .. :/ I…

---

## [Problem with typewriter prototype](https://forum.kirupa.com/t/problem-with-typewriter-prototype/261612)

<div class="topic-metadata">

**Author:** [@theMonitor](https://forum.kirupa.com/u/theMonitor)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 5:41pm UTC](https://forum.kirupa.com/t/problem-with-typewriter-prototype/261612 "2008-05-29T17:41:43Z")

</div>

I wonder if anyone could help find a solution to a problem I'm having with a typewriter effect prototype? The code I'm using to achieve the effect is: TextField.prototype.typeWriter = function(type\_str:String, type…

---

## [Lining up radio buttons](https://forum.kirupa.com/t/lining-up-radio-buttons/261555)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 13\
**Last updated:** [May 29, 2008, 5:26pm UTC](https://forum.kirupa.com/t/lining-up-radio-buttons/261555 "2008-05-29T17:26:13Z")

</div>

By default, radio buttons line up to their corresponding labels. But if you wanted to space the radio buttons apart more by specifying some margins, then they don't line up anymore. .form input\[type="radio"\] { margin…

---

## [Three New Tutorials on Drag & Drop in AS3](https://forum.kirupa.com/t/three-new-tutorials-on-drag-drop-in-as3/261351)

<div class="topic-metadata">

**Author:** [@Mike01](https://forum.kirupa.com/u/Mike01)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 5:22pm UTC](https://forum.kirupa.com/t/three-new-tutorials-on-drag-drop-in-as3/261351 "2008-05-29T17:22:01Z")

</div>

\[FONT=Times New Roman\]I have added three new tutorials on the Drag & Drop functionality of using ActionScript 3. These three tutorials utilize most of the features of using the drag and drop functionality in AS3. They in…

---

## [Listing Variables and Their Types](https://forum.kirupa.com/t/listing-variables-and-their-types/261662)

<div class="topic-metadata">

**Author:** [@djanim8](https://forum.kirupa.com/u/djanim8)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 4:32pm UTC](https://forum.kirupa.com/t/listing-variables-and-their-types/261662 "2008-05-29T16:32:37Z")

</div>

OK Sure I'll get some grief for this.. but.. \[smile\] Is there anyway for AS3 to list all the variables used and their types (and possibly current values) at runtime? like in a trace?

---

## [loadInit function when dynamically creating movieclips in a loop](https://forum.kirupa.com/t/loadinit-function-when-dynamically-creating-movieclips-in-a-loop/261646)

<div class="topic-metadata">

**Author:** [@tbear2008](https://forum.kirupa.com/u/tbear2008)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 4:32pm UTC](https://forum.kirupa.com/t/loadinit-function-when-dynamically-creating-movieclips-in-a-loop/261646 "2008-05-29T16:32:14Z")

</div>

Hi all, I'm having trouble with some code. I using a loop to dynamically create some movieclips and then position them using the .\_height and .width values. When they are created I use a Listener and LoadInit, to …

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

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