# programming

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

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

**Page:** 631

---

## [Share your Form class](https://forum.kirupa.com/t/share-your-form-class/300362)

<div class="topic-metadata">

**Author:** [@imagined](https://forum.kirupa.com/u/imagined)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 7:46pm UTC](https://forum.kirupa.com/t/share-your-form-class/300362 "2009-11-19T19:46:30Z")

</div>

Hey guys! I'm writing a Form class with validation. I like what I'm doing but I think it can be improved. I'm hardly satisfied with what I do. For example, the date field accepts from a drop-down menu the day, month an…

---

## [Need help with scripting my platformer game](https://forum.kirupa.com/t/need-help-with-scripting-my-platformer-game/300361)

<div class="topic-metadata">

**Author:** [@alexcookie](https://forum.kirupa.com/u/alexcookie)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 7:28pm UTC](https://forum.kirupa.com/t/need-help-with-scripting-my-platformer-game/300361 "2009-11-19T19:28:01Z")

</div>

Hey! Ok, so I have my player, I have my enemy, and I want to make it so that when I hit "A", the player attacks and if its close enough to the enemy, the enemy dies. I've found how to do this in AS2, but not AS3. Any…

---

## [Object Actions Panel won't display](https://forum.kirupa.com/t/object-actions-panel-wont-display/300360)

<div class="topic-metadata">

**Author:** [@rowhiteny](https://forum.kirupa.com/u/rowhiteny)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 7:23pm UTC](https://forum.kirupa.com/t/object-actions-panel-wont-display/300360 "2009-11-19T19:23:02Z")

</div>

I cannot seem to "see" or display the Object Actions Panel for my button symbol. The timeline appears with the UP, OVER, DOWN, and HIT frames and I am able to manipilate those with TEXT but not ACTIONS.... HELP!!!

---

## [Sound overlapping problem](https://forum.kirupa.com/t/sound-overlapping-problem/300358)

<div class="topic-metadata">

**Author:** [@sskstorm](https://forum.kirupa.com/u/sskstorm)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 6:45pm UTC](https://forum.kirupa.com/t/sound-overlapping-problem/300358 "2009-11-19T18:45:23Z")

</div>

Hi there! I have a number of 20 frames in my Flash CS4/AS3 game. In each frame there is a movie clip of a character, with different animations. So there are 20 movie clips of this character, also containing sound files…

---

## [Dynamic Buttons pulled from a directory](https://forum.kirupa.com/t/dynamic-buttons-pulled-from-a-directory/300357)

<div class="topic-metadata">

**Author:** [@Solidus](https://forum.kirupa.com/u/Solidus)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 6:41pm UTC](https://forum.kirupa.com/t/dynamic-buttons-pulled-from-a-directory/300357 "2009-11-19T18:41:43Z")

</div>

Hey guys, I have a directory of PDF's that I am loading the names of dynamically using PHP: My PHP file looks like this: \<?php $dir = getcwd(); $dh = opendir($dir); while (($filename = readdir($dh)) == true) { …

---

## [Yet another flash button problem](https://forum.kirupa.com/t/yet-another-flash-button-problem/300354)

<div class="topic-metadata">

**Author:** [@Digga69](https://forum.kirupa.com/u/Digga69)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 6:03pm UTC](https://forum.kirupa.com/t/yet-another-flash-button-problem/300354 "2009-11-19T18:03:27Z")

</div>

First of all, hello everyone, i've been browsing your forum for a while and i finally decided to register and contribute to it and ask questions as well. Here's my problem. I'm kinda new to flash but i managed to creat…

---

## [My Flash Lightbox xml Gallery](https://forum.kirupa.com/t/my-flash-lightbox-xml-gallery/300353)

<div class="topic-metadata">

**Author:** [@martinko](https://forum.kirupa.com/u/martinko)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 5:52pm UTC](https://forum.kirupa.com/t/my-flash-lightbox-xml-gallery/300353 "2009-11-19T17:52:56Z")

</div>

\*\*Try this out and help me solve the problems (make it better)!! = download here =\*\* Ok, I was searching for a way to use lightbox on my flash website, but it didn't work for me. Then I realized why don't try to make…

---

## [Can this be cleaned up?](https://forum.kirupa.com/t/can-this-be-cleaned-up/300352)

<div class="topic-metadata">

**Author:** [@Apos03](https://forum.kirupa.com/u/Apos03)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 5:06pm UTC](https://forum.kirupa.com/t/can-this-be-cleaned-up/300352 "2009-11-19T17:06:02Z")

</div>

Can this be cleaned up in anyway? It works as I need it but just seems a bit redundant in some areas? I am not proficient enough with AS3 to see what can be tidied up. import fl.transitions.\*; import fl.transitions.e…

---

## [Animating a drawing line](https://forum.kirupa.com/t/animating-a-drawing-line/300351)

<div class="topic-metadata">

**Author:** [@xiaoloner](https://forum.kirupa.com/u/xiaoloner)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 4:39pm UTC](https://forum.kirupa.com/t/animating-a-drawing-line/300351 "2009-11-19T16:39:23Z")

</div>

How do i animate a drawing line? I mean like from point A to point B, the flash will show it is "drawn" itself. Can I do it simply without actionscript? Is it possible? Because I have many lines to draw, to make it int…

---

## [Runtime generated sprites sometimes stick to zero x and y coordinate...ideas?](https://forum.kirupa.com/t/runtime-generated-sprites-sometimes-stick-to-zero-x-and-y-coordinate-ideas/300350)

<div class="topic-metadata">

**Author:** [@marlonpando](https://forum.kirupa.com/u/marlonpando)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 4:27pm UTC](https://forum.kirupa.com/t/runtime-generated-sprites-sometimes-stick-to-zero-x-and-y-coordinate-ideas/300350 "2009-11-19T16:27:13Z")

</div>

I have bug in an actionscript 3.0 mp3 player i've written where all of the graphics (ui) are generated by actionscript at run-time but occasionally they all get stuck on the zero x and y coordinate making the program dif…

---

## [Google map](https://forum.kirupa.com/t/google-map/300348)

<div class="topic-metadata">

**Author:** [@flashfighter](https://forum.kirupa.com/u/flashfighter)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 4:04pm UTC](https://forum.kirupa.com/t/google-map/300348 "2009-11-19T16:04:57Z")

</div>

how to use google map in flash. any help or tutorial plz help

---

## [TextArea component does not load after publishing as AIR](https://forum.kirupa.com/t/textarea-component-does-not-load-after-publishing-as-air/300347)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 3:21pm UTC](https://forum.kirupa.com/t/textarea-component-does-not-load-after-publishing-as-air/300347 "2009-11-19T15:21:05Z")

</div>

Hi, I have a TextArea component in the library. Its Class is: fl.controls.TextArea I add it to the stage using the addChild method. Running it inside the flash CS4 the textArea component gets added to the stage as inte…

---

## [Class doesn't catch event](https://forum.kirupa.com/t/class-doesnt-catch-event/300346)

<div class="topic-metadata">

**Author:** [@Pancho](https://forum.kirupa.com/u/Pancho)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 3:14pm UTC](https://forum.kirupa.com/t/class-doesnt-catch-event/300346 "2009-11-19T15:14:03Z")

</div>

It works flawlessly the other way round. I can dispatch an event in a class (extends sprite) and my main .fla does catch it. The other way round it doesn't. To transmit a number from my fla. to the class (added as child)…

---

## [Fluid Layout - stop changing resize position when movieclip is at certain position](https://forum.kirupa.com/t/fluid-layout-stop-changing-resize-position-when-movieclip-is-at-certain-position/300344)

<div class="topic-metadata">

**Author:** [@jebadiah](https://forum.kirupa.com/u/jebadiah)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 2:47pm UTC](https://forum.kirupa.com/t/fluid-layout-stop-changing-resize-position-when-movieclip-is-at-certain-position/300344 "2009-11-19T14:47:40Z")

</div>

Hello. I have been trying things out for hours, and I still can't get it. So please help. \[smile\] I am following this Fluid Layout tutorial: http://active.tutsplus.com/tutorials/web-design/build-a-fluid-website-layout/ …

---

## [ASDoc hates Vector... "Type not found..."](https://forum.kirupa.com/t/asdoc-hates-vector-type-not-found/300340)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 1:37pm UTC](https://forum.kirupa.com/t/asdoc-hates-vector-type-not-found/300340 "2009-11-19T13:37:56Z")

</div>

Since I do not enjoy typing in insanely long path names in command prompts, I decided to use FlashDevelop's "ActionScript Documentation Generator". However, after I click "Generate", the ASDoc exe gives the following e…

---

## [Drag, drop and merge?](https://forum.kirupa.com/t/drag-drop-and-merge/300339)

<div class="topic-metadata">

**Author:** [@ianhill090776](https://forum.kirupa.com/u/ianhill090776)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 12:56pm UTC](https://forum.kirupa.com/t/drag-drop-and-merge/300339 "2009-11-19T12:56:55Z")

</div>

Hello, I'm working to create an interactive snow globe in AS3. The user would have a choice of dropping several items into the globe - a house, a candy cane, a fir tree, etc. - and, when done, hit a shake button. The glo…

---

## [Error creating AIR file](https://forum.kirupa.com/t/error-creating-air-file/300338)

<div class="topic-metadata">

**Author:** [@kadaj](https://forum.kirupa.com/u/kadaj)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 12:38pm UTC](https://forum.kirupa.com/t/error-creating-air-file/300338 "2009-11-19T12:38:44Z")

</div>

When I try to Publish to AIR file, \[COLOR=#ff0000\]Error Creating AIR file.\[/COLOR\] \[COLOR=#ff0000\]The swf file specified as root content is missing. \[/COLOR\] error is shown. When I run the Publish Project from the …

---

## [Need help with with small actionscript project](https://forum.kirupa.com/t/need-help-with-with-small-actionscript-project/300336)

<div class="topic-metadata">

**Author:** [@sampson](https://forum.kirupa.com/u/sampson)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 11:30am UTC](https://forum.kirupa.com/t/need-help-with-with-small-actionscript-project/300336 "2009-11-19T11:30:52Z")

</div>

Hi, this if my first post and i'm relatively new to actionscript 3 but i've done some 2 in the past. so far it hasnt been much fun \[frowning\] what i'm trying to do is create lots of instances of the movie clip, ball…

---

## [Content management - Dynamic Image Gallery](https://forum.kirupa.com/t/content-management-dynamic-image-gallery/300335)

<div class="topic-metadata">

**Author:** [@Adam\_Hastings](https://forum.kirupa.com/u/Adam_Hastings)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 11:23am UTC](https://forum.kirupa.com/t/content-management-dynamic-image-gallery/300335 "2009-11-19T11:23:10Z")

</div>

I have made a site for an artist with a dynamic gallery using an xml file. I am trying to create a way for him to update the gallery by simply uploading his new photos through a html form. I have an image upload form w…

---

## [Adding objects to stage through as file](https://forum.kirupa.com/t/adding-objects-to-stage-through-as-file/300334)

<div class="topic-metadata">

**Author:** [@romit\_2034](https://forum.kirupa.com/u/romit_2034)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 11:16am UTC](https://forum.kirupa.com/t/adding-objects-to-stage-through-as-file/300334 "2009-11-19T11:16:28Z")

</div>

Hey this is my as code package { import flash.display.MovieClip; import flash.display.Stage; import flash.text.TextField; public class thumbNail extends MovieClip { i…

---

## [Problem with multiple images loaded with xml](https://forum.kirupa.com/t/problem-with-multiple-images-loaded-with-xml/300332)

<div class="topic-metadata">

**Author:** [@claudiur](https://forum.kirupa.com/u/claudiur)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 10:53am UTC](https://forum.kirupa.com/t/problem-with-multiple-images-loaded-with-xml/300332 "2009-11-19T10:53:15Z")

</div>

Hi! I'm new to actionscript but I want to learn and I started to experiment things. First of all I've made a small drag&drop with all images and movieclips already in library, worked like a dream. After that I wanted …

---

## [Random images in an array](https://forum.kirupa.com/t/random-images-in-an-array/300331)

<div class="topic-metadata">

**Author:** [@cantaloupe](https://forum.kirupa.com/u/cantaloupe)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 10:53am UTC](https://forum.kirupa.com/t/random-images-in-an-array/300331 "2009-11-19T10:53:06Z")

</div>

Hi, I've been using the following script to randomly display options for a quiz similar to who wants to be a millionaire: var answersArray:Array = new Array("Geography", "Maths", "English", "French"); var correctAnswe…

---

## [rollOver when mouse button pressed](https://forum.kirupa.com/t/rollover-when-mouse-button-pressed/300330)

<div class="topic-metadata">

**Author:** [@Artenis](https://forum.kirupa.com/u/Artenis)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 10:33am UTC](https://forum.kirupa.com/t/rollover-when-mouse-button-pressed/300330 "2009-11-19T10:33:31Z")

</div>

How can i make onRollOver work, when the left mouse button is clicked? When mouse button is released than rollOver work\`s, when i press and rollOver to some object it wont work. What is the easyiest solution? Thanks!

---

## [StartDrag to a path](https://forum.kirupa.com/t/startdrag-to-a-path/300329)

<div class="topic-metadata">

**Author:** [@brndn](https://forum.kirupa.com/u/brndn)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 10:24am UTC](https://forum.kirupa.com/t/startdrag-to-a-path/300329 "2009-11-19T10:24:29Z")

</div>

Hi there I am currently looking to see what the boundings are for the start drag method. And by the looks of it the bounding is set by passing the rect() object to the dragUpdater/ constructor. My question then is can …

---

## [Help Needed Badly](https://forum.kirupa.com/t/help-needed-badly/300325)

<div class="topic-metadata">

**Author:** [@nandkumarm](https://forum.kirupa.com/u/nandkumarm)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 8:25am UTC](https://forum.kirupa.com/t/help-needed-badly/300325 "2009-11-19T08:25:20Z")

</div>

Hi All, I have designed this form in flash, just the way how my friend needs it for his site. But now cant make this working. COuld anyone help me please. Attached is the FLA file. http://rapidshare.com/files/3091037…

---

## [How to show Legend Label for Pie chart (Flex2)](https://forum.kirupa.com/t/how-to-show-legend-label-for-pie-chart-flex2/300324)

<div class="topic-metadata">

**Author:** [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 7:52am UTC](https://forum.kirupa.com/t/how-to-show-legend-label-for-pie-chart-flex2/300324 "2009-11-19T07:52:02Z")

</div>

I am working with a pie chart (FLEX 2) and I want to show Legend also. I can see the legends in the bottom of the chart but there is no label for legends. I can see only three different color boxes (without label on it).…

---

## [Check if server is online?](https://forum.kirupa.com/t/check-if-server-is-online/300319)

<div class="topic-metadata">

**Author:** [@Kevin\_Evans](https://forum.kirupa.com/u/Kevin_Evans)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 5:04am UTC](https://forum.kirupa.com/t/check-if-server-is-online/300319 "2009-11-19T05:04:03Z")

</div>

T-T I can't figure this out. I'm trying to check if a server is online, and I need to do it efficiently. I have no idea where to start, i've tried AJAX, but it doesn't really check if the server is online (it only checks…

---

## [Targeting a Textfield Created with Array](https://forum.kirupa.com/t/targeting-a-textfield-created-with-array/300314)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 2:24am UTC](https://forum.kirupa.com/t/targeting-a-textfield-created-with-array/300314 "2009-11-19T02:24:54Z")

</div>

I need to be able to set a property of the 3rd textfield created within this for loop: for (var i:int = 0; i \< menuArray.length; i++) { menuText = new TextField; menuText.name = "navBttn\_" + i; …

---

## [Controlling brightness within movieclips](https://forum.kirupa.com/t/controlling-brightness-within-movieclips/300313)

<div class="topic-metadata">

**Author:** [@alexyackel](https://forum.kirupa.com/u/alexyackel)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 1:04am UTC](https://forum.kirupa.com/t/controlling-brightness-within-movieclips/300313 "2009-11-19T01:04:44Z")

</div>

Hey guys...is there any way to control the brightness of a movie clip or button on mouse roll over so that it gets brighter when the mouse is on it? I could only find things for earlier versions of AS and i couldnt figu…

---

## [Looping through Dictionary objects](https://forum.kirupa.com/t/looping-through-dictionary-objects/300307)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [November 18, 2009, 11:43pm UTC](https://forum.kirupa.com/t/looping-through-dictionary-objects/300307 "2009-11-18T23:43:33Z")

</div>

I'm trying to do something along the following: //Loop through all items in the dictionary to update each and every one for (var key:DisplayObjectContainer in containerDict) { containerDict\[key\].updateText(); } …

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

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