# programming

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

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

**Page:** 617

---

## [Masks for light source](https://forum.kirupa.com/t/masks-for-light-source/301277)

<div class="topic-metadata">

**Author:** [@ShaneHeres](https://forum.kirupa.com/u/ShaneHeres)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 7:24pm UTC](https://forum.kirupa.com/t/masks-for-light-source/301277 "2009-12-06T19:24:08Z")

</div>

Hey kirupa, I'm using shapes drawn to sprites to try and get a fog of war effect. Basically, I have a large black rectangle that goes over the screen as darkness, and I need to have multiple towers that have vision f…

---

## [Using the new Filereference methods](https://forum.kirupa.com/t/using-the-new-filereference-methods/301276)

<div class="topic-metadata">

**Author:** [@baggins825](https://forum.kirupa.com/u/baggins825)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 7:18pm UTC](https://forum.kirupa.com/t/using-the-new-filereference-methods/301276 "2009-12-06T19:18:31Z")

</div>

I am trying to make a file upload program using as3 and amfphp. Instead of using the upload method I am instead calling an amfphp function and passing the filereference.data as one of the paramaters. This works well and …

---

## [Accessing Nested Movieclips](https://forum.kirupa.com/t/accessing-nested-movieclips/301274)

<div class="topic-metadata">

**Author:** [@Black\_Drazon](https://forum.kirupa.com/u/Black_Drazon)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 6:46pm UTC](https://forum.kirupa.com/t/accessing-nested-movieclips/301274 "2009-12-06T18:46:43Z")

</div>

Hi, I'm copying over a post I made on another forum in hopes that someone can help me here. I have a movie clip (assigned to a class) with several keyframes. Each keyframe consists of another movieclip, which contain…

---

## [Multilingual php site Question](https://forum.kirupa.com/t/multilingual-php-site-question/301269)

<div class="topic-metadata">

**Author:** [@INDE](https://forum.kirupa.com/u/INDE)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 4:56pm UTC](https://forum.kirupa.com/t/multilingual-php-site-question/301269 "2009-12-06T16:56:36Z")

</div>

Hello, i would like to ask a question, if somebody knows this it would be really helpful to point me to the right direction. Lets say i am building a multilingual site that when the user selects a language, this is st…

---

## [Hide buttons on load/run](https://forum.kirupa.com/t/hide-buttons-on-load-run/301266)

<div class="topic-metadata">

**Author:** [@Nall](https://forum.kirupa.com/u/Nall)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 3:48pm UTC](https://forum.kirupa.com/t/hide-buttons-on-load-run/301266 "2009-12-06T15:48:49Z")

</div>

I've been trying to build an application in flash whereby everything is held on a single frame (the different 'screens' held on seperate layers). My problem is that I want to hide some buttons and other things when the a…

---

## [Random loading song? AS2/XML](https://forum.kirupa.com/t/random-loading-song-as2-xml/301264)

<div class="topic-metadata">

**Author:** [@cr\_sa](https://forum.kirupa.com/u/cr_sa)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 1:57pm UTC](https://forum.kirupa.com/t/random-loading-song-as2-xml/301264 "2009-12-06T13:57:24Z")

</div>

\---EDIT I originally built this in Flash 8, then moved the files over to CS4--- Hi, I have a list component where I've loaded song files through xml and everything is working great. I have now been trying to figure…

---

## [SystemTrayIcon Tooltip, make italic](https://forum.kirupa.com/t/systemtrayicon-tooltip-make-italic/301263)

<div class="topic-metadata">

**Author:** [@artheus](https://forum.kirupa.com/u/artheus)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 12:38pm UTC](https://forum.kirupa.com/t/systemtrayicon-tooltip-make-italic/301263 "2009-12-06T12:38:32Z")

</div>

Hey!! I've just made a small first-time AIR app. And I've made a button, which makes the app minimize to tray. And when this is done, I've made the systemtrayicon.tootip = "messenger not logged in". And I simply want…

---

## [100% height Flash / HTML Footer](https://forum.kirupa.com/t/100-height-flash-html-footer/301261)

<div class="topic-metadata">

**Author:** [@AndreyT](https://forum.kirupa.com/u/AndreyT)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 9:33am UTC](https://forum.kirupa.com/t/100-height-flash-html-footer/301261 "2009-12-06T09:33:07Z")

</div>

Hello! Question: I want to put 100% height and 100% width Flash in an html page. I've done it. Now I want to put in that page also HTML Footer which would stick to the bottom of the page. Tried: Numerous solutions. Goo…

---

## [Stuck on restarting a movie when loop completed](https://forum.kirupa.com/t/stuck-on-restarting-a-movie-when-loop-completed/301259)

<div class="topic-metadata">

**Author:** [@gloopy](https://forum.kirupa.com/u/gloopy)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 8:55am UTC](https://forum.kirupa.com/t/stuck-on-restarting-a-movie-when-loop-completed/301259 "2009-12-06T08:55:27Z")

</div>

I have a simple FLA which loops through some keyframes and randomly places movie clips on the stage. Frame 1: Contains nothing Frame 2: \_root.tile.duplicateMovieClip("tile"+i,i+1) \_root\["tile"+i\].\_x=Math.random()\*…

---

## [Damaged assets](https://forum.kirupa.com/t/damaged-assets/301256)

<div class="topic-metadata">

**Author:** [@TYancy](https://forum.kirupa.com/u/TYancy)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 6:05am UTC](https://forum.kirupa.com/t/damaged-assets/301256 "2009-12-06T06:05:21Z")

</div>

Couldn't find this in the forums.... When opening a project I get a series of alerts saying that various items are damaged and should be deleted. The movie works perfectly, including a flv that is supposedly damaged. T…

---

## [Images changing order upon browser refresh](https://forum.kirupa.com/t/images-changing-order-upon-browser-refresh/301254)

<div class="topic-metadata">

**Author:** [@graphica29](https://forum.kirupa.com/u/graphica29)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 5:30am UTC](https://forum.kirupa.com/t/images-changing-order-upon-browser-refresh/301254 "2009-12-06T05:30:11Z")

</div>

hello I have an image sroll bar on a site but cannot get the images to appear in order. Everytime the browser is refreshed the images appear in a new order. Is there a quick fix to this problem? please see code below. T…

---

## [Sliding a mc addChild on MouseClick Event](https://forum.kirupa.com/t/sliding-a-mc-addchild-on-mouseclick-event/301252)

<div class="topic-metadata">

**Author:** [@aoh](https://forum.kirupa.com/u/aoh)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 3:33am UTC](https://forum.kirupa.com/t/sliding-a-mc-addchild-on-mouseclick-event/301252 "2009-12-06T03:33:44Z")

</div>

Hi, I'm having trouble to slide a mc that loads external image through a addChild function. How do I change the code in order to slide the mc that contains the new mc addChild that the loader has created? Heres my …

---

## [Resizing multiple stages in multiple frames](https://forum.kirupa.com/t/resizing-multiple-stages-in-multiple-frames/301251)

<div class="topic-metadata">

**Author:** [@MrJulez](https://forum.kirupa.com/u/MrJulez)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 2:46am UTC](https://forum.kirupa.com/t/resizing-multiple-stages-in-multiple-frames/301251 "2009-12-06T02:46:07Z")

</div>

Hi, I designed a small site in FlashCS3 with AS3. I have 10 frames that act as 10 individual pages. The content on these pages all vary in size and ideally stage sizes will vary between 800x800 and 800x1400. The larges…

---

## [XML slideshow problem plus FREE slideshow script for helpers!](https://forum.kirupa.com/t/xml-slideshow-problem-plus-free-slideshow-script-for-helpers/301250)

<div class="topic-metadata">

**Author:** [@Ricoo](https://forum.kirupa.com/u/Ricoo)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 2:41am UTC](https://forum.kirupa.com/t/xml-slideshow-problem-plus-free-slideshow-script-for-helpers/301250 "2009-12-06T02:41:04Z")

</div>

Hy, i have a problem with inserting multiple external .swf files into one .swf. Its based on very simple .xml system. Otherwords I have index.swf which creates empty movieclips and pulls thru .xml file external .swf file…

---

## [Xml loads locally but not online](https://forum.kirupa.com/t/xml-loads-locally-but-not-online/301249)

<div class="topic-metadata">

**Author:** [@jdsflash](https://forum.kirupa.com/u/jdsflash)\
**Replies:** 0\
**Last updated:** [December 6, 2009, 2:34am UTC](https://forum.kirupa.com/t/xml-loads-locally-but-not-online/301249 "2009-12-06T02:34:02Z")

</div>

Im trying to load xml files on another domain on mine. This code works locally but not when i post it to my server. Can you explain what im doing wrong? The url im trying to load http://hosting.gmodules.com/ig/gadgets/fi…

---

## [Multiple Classes in one AS file - The Right way?](https://forum.kirupa.com/t/multiple-classes-in-one-as-file-the-right-way/301244)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 9:25pm UTC](https://forum.kirupa.com/t/multiple-classes-in-one-as-file-the-right-way/301244 "2009-12-05T21:25:11Z")

</div>

So, what exactly are the rules on several classes inside of one AS file? So far, the only way I have been able to do this is by putting the class outside of the package brackets with no namespace selected (which I beli…

---

## [Aiming in AS2](https://forum.kirupa.com/t/aiming-in-as2/301242)

<div class="topic-metadata">

**Author:** [@cireneikual](https://forum.kirupa.com/u/cireneikual)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 8:44pm UTC](https://forum.kirupa.com/t/aiming-in-as2/301242 "2009-12-05T20:44:51Z")

</div>

Hi guys, I am making a flash game, and so far I always made my player aim his gun at the cross hair with the following code: onClipEvent(load) { a = 0; b = 0; angleA = 0; Degrees = 0; } onClipEvent(ent…

---

## [Color Standards differences btween PHP and AS?](https://forum.kirupa.com/t/color-standards-differences-btween-php-and-as/301241)

<div class="topic-metadata">

**Author:** [@jwhx](https://forum.kirupa.com/u/jwhx)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 8:14pm UTC](https://forum.kirupa.com/t/color-standards-differences-btween-php-and-as/301241 "2009-12-05T20:14:28Z")

</div>

Hi guys, i faced a trouble in doing a project and would need suggestion from you guys. Basically i would need to perform hue change towards a same image with PHP and actionsript (two process, but with same input, and s…

---

## [ftp\_put vs html upload and more](https://forum.kirupa.com/t/ftp-put-vs-html-upload-and-more/301233)

<div class="topic-metadata">

**Author:** [@brookisme](https://forum.kirupa.com/u/brookisme)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 5:49pm UTC](https://forum.kirupa.com/t/ftp-put-vs-html-upload-and-more/301233 "2009-12-05T17:49:32Z")

</div>

hello all - i have a couple of what should be easy questions: 1) what are the advantages/disadvantages of using php´s ftp functions, like ftp\_put over normal html post methods? 2) in trying to use the ftp\_put, i nee…

---

## [Way to make objects not cover button hit area?](https://forum.kirupa.com/t/way-to-make-objects-not-cover-button-hit-area/301231)

<div class="topic-metadata">

**Author:** [@Plasmic\_Steve](https://forum.kirupa.com/u/Plasmic_Steve)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 5:31pm UTC](https://forum.kirupa.com/t/way-to-make-objects-not-cover-button-hit-area/301231 "2009-12-05T17:31:14Z")

</div>

Hello. I've got a movie clip with a graphic on one layer, and a large button beneath it. Of course, when the mouse rolls over the graphic, the button beneath it is not clickable. Without going into all the reasons wh…

---

## [Removing focus from an input text field](https://forum.kirupa.com/t/removing-focus-from-an-input-text-field/301230)

<div class="topic-metadata">

**Author:** [@Tahereh](https://forum.kirupa.com/u/Tahereh)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 4:17pm UTC](https://forum.kirupa.com/t/removing-focus-from-an-input-text-field/301230 "2009-12-05T16:17:23Z")

</div>

Hi all! I have a textfield and a button component.The problem is when the textfield is focused and i click anywhere on the stage it remains focused and no focusout event occurs. I know that it's because component classes…

---

## [Position text from xml based on autosize textfield height](https://forum.kirupa.com/t/position-text-from-xml-based-on-autosize-textfield-height/301226)

<div class="topic-metadata">

**Author:** [@damonlee3](https://forum.kirupa.com/u/damonlee3)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 2:39pm UTC](https://forum.kirupa.com/t/position-text-from-xml-based-on-autosize-textfield-height/301226 "2009-12-05T14:39:14Z")

</div>

Hi all, I have text that loads into a dynamic text field that is on the stage. The movie clip("tile" in code below) in which the dynamic text field resides is placed on the stage via loop function. I can load the tex…

---

## [Limit access to properties based on type?](https://forum.kirupa.com/t/limit-access-to-properties-based-on-type/301223)

<div class="topic-metadata">

**Author:** [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 12:29pm UTC](https://forum.kirupa.com/t/limit-access-to-properties-based-on-type/301223 "2009-12-05T12:29:57Z")

</div>

Hello \[smile\] I have a question for any OOP experts our there: Is it possible to limit access to an object's property values based on the type of object requesting it? For example: public function get someValue(…

---

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

<div class="topic-metadata">

**Author:** [@excogitator](https://forum.kirupa.com/u/excogitator)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 12:28pm UTC](https://forum.kirupa.com/t/problem-adding-addeventlistener/301222 "2009-12-05T12:28:13Z")

</div>

Hi Everyone, Im facing this small problem for which I haven't been able to figure a solution. It would be of great help to know how to get it working. I have a series of named and numbered movieclips on stage that re…

---

## [Help on displaying ≥ on flash](https://forum.kirupa.com/t/help-on-displaying-on-flash/301221)

<div class="topic-metadata">

**Author:** [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 12:15pm UTC](https://forum.kirupa.com/t/help-on-displaying-on-flash/301221 "2009-12-05T12:15:19Z")

</div>

I have this character(≥) in loaded from xml how do i display this on a created text dynamicly in as3. Thanks.

---

## [More than one flake style in Falling Snow 2.0?](https://forum.kirupa.com/t/more-than-one-flake-style-in-falling-snow-2-0/301212)

<div class="topic-metadata">

**Author:** [@fausty](https://forum.kirupa.com/u/fausty)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 5:35am UTC](https://forum.kirupa.com/t/more-than-one-flake-style-in-falling-snow-2-0/301212 "2009-12-05T05:35:01Z")

</div>

Its that time of year again! Im making a little holiday greeting card and have a complete vector storyboard that I am beginning to animate. Falling Snow 2.0 will work great, but I would like to use my own vector art i…

---

## [Tween problems in ActionScript 3.0](https://forum.kirupa.com/t/tween-problems-in-actionscript-3-0/301211)

<div class="topic-metadata">

**Author:** [@Code\_Studio](https://forum.kirupa.com/u/Code_Studio)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 5:23am UTC](https://forum.kirupa.com/t/tween-problems-in-actionscript-3-0/301211 "2009-12-05T05:23:45Z")

</div>

Hello! I'm stuck with my problem and I have no idea what is wrong. I'm making movement of movie clip via creating new Tween in Action Script 3, Flash CS4 and it happens, when I mouse over button in another movie clip. …

---

## [Compare Dates](https://forum.kirupa.com/t/compare-dates/301208)

<div class="topic-metadata">

**Author:** [@RyanGus](https://forum.kirupa.com/u/RyanGus)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 3:56am UTC](https://forum.kirupa.com/t/compare-dates/301208 "2009-12-05T03:56:04Z")

</div>

hello all... excellent site !!!!!!! i have found so many answers here i hope you guys can help me with this one, i have a big headacke... i'm renewing a site for a friend and i cant find a solution to my upcoming questio…

---

## [As3 php problem moving an image from flash to a folder](https://forum.kirupa.com/t/as3-php-problem-moving-an-image-from-flash-to-a-folder/301206)

<div class="topic-metadata">

**Author:** [@azafoxley](https://forum.kirupa.com/u/azafoxley)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 1:49am UTC](https://forum.kirupa.com/t/as3-php-problem-moving-an-image-from-flash-to-a-folder/301206 "2009-12-05T01:49:49Z")

</div>

i didnt know which to post this topic under as it requires both, i think. Anyways, im using the jpgEncoder class to create an image file and what im trying to do is save that to a folder on a server, then im going to r…

---

## [Centering JPG loaded in MovieClip?](https://forum.kirupa.com/t/centering-jpg-loaded-in-movieclip/301205)

<div class="topic-metadata">

**Author:** [@helious](https://forum.kirupa.com/u/helious)\
**Replies:** 0\
**Last updated:** [December 5, 2009, 1:22am UTC](https://forum.kirupa.com/t/centering-jpg-loaded-in-movieclip/301205 "2009-12-05T01:22:17Z")

</div>

Hi \[smile\] I have created this Flash site: http://www.meny-graphics.dk/Nordic But i am having a problem. Under "Gallery", each picture, is a movieclip, which loads a picture from my server. But the pictures alig…

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

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