# programming

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

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

**Page:** 562

---

## [Something better than stage.focus = stage?](https://forum.kirupa.com/t/something-better-than-stage-focus-stage/304798)

<div class="topic-metadata">

**Author:** [@Keslen](https://forum.kirupa.com/u/Keslen)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 7:44am UTC](https://forum.kirupa.com/t/something-better-than-stage-focus-stage/304798 "2010-02-14T07:44:39Z")

</div>

G'day folks - I ran into an interesting problem while constructing an interactive applet today. It requires reaction to keyboard presses/releases, so I set up the appropriate listener to the stage. It also involves tra…

---

## [Platform game Error #1009](https://forum.kirupa.com/t/platform-game-error-1009/304797)

<div class="topic-metadata">

**Author:** [@Lesh](https://forum.kirupa.com/u/Lesh)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 3:51am UTC](https://forum.kirupa.com/t/platform-game-error-1009/304797 "2010-02-14T03:51:00Z")

</div>

Hi, this is my first post so sorry if it is a bit confusing. I am creating a platform game and am getting the following error: 1009: Cannot access a property or method of a null object reference This error happens whe…

---

## [MovieClip deletion problem](https://forum.kirupa.com/t/movieclip-deletion-problem/304796)

<div class="topic-metadata">

**Author:** [@jrjellybeans](https://forum.kirupa.com/u/jrjellybeans)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 2:49am UTC](https://forum.kirupa.com/t/movieclip-deletion-problem/304796 "2010-02-14T02:49:45Z")

</div>

Hey all, This problem has been racking our brain for a few hours so I thought I'd post it. We're running into the problem of deleting the players bullets correctly. The problem consists of 3 objects: conRoom \[which i…

---

## [Error 1009 Problems](https://forum.kirupa.com/t/error-1009-problems/304792)

<div class="topic-metadata">

**Author:** [@Kainevg](https://forum.kirupa.com/u/Kainevg)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 12:55am UTC](https://forum.kirupa.com/t/error-1009-problems/304792 "2010-02-14T00:55:43Z")

</div>

Hey guys, I am currently devoloping my game and at run-time I get the error 1009.. This is just a test file but what im trying to do is there will be 2 buttons, a button to spawn some guys and a button to make them sh…

---

## [Auto-Resizing and Centering movie](https://forum.kirupa.com/t/auto-resizing-and-centering-movie/304791)

<div class="topic-metadata">

**Author:** [@cvita](https://forum.kirupa.com/u/cvita)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 12:16am UTC](https://forum.kirupa.com/t/auto-resizing-and-centering-movie/304791 "2010-02-14T00:16:50Z")

</div>

Ok so I saw this tutorial http://www.kirupa.com/developer/as3/resizing\_centering\_as3.htm but I need to make that in Action Script 2.0 I've find the code for the same thing: \*\*//Pursuant to the tutorial example here…

---

## [SimpleButton containing MovieClip with multiple frames](https://forum.kirupa.com/t/simplebutton-containing-movieclip-with-multiple-frames/304790)

<div class="topic-metadata">

**Author:** [@Tralobyte](https://forum.kirupa.com/u/Tralobyte)\
**Replies:** 0\
**Last updated:** [February 14, 2010, 12:08am UTC](https://forum.kirupa.com/t/simplebutton-containing-movieclip-with-multiple-frames/304790 "2010-02-14T00:08:41Z")

</div>

Hello, I have a SimpleButton that contains a different MovieClip for the Up, Over, and Down states. These MovieClips all have 10 frames and corresponding frame labels. I can use gotoAndStop on the MovieClip in the Up s…

---

## [Memory Optimization Question](https://forum.kirupa.com/t/memory-optimization-question/304789)

<div class="topic-metadata">

**Author:** [@jrjellybeans](https://forum.kirupa.com/u/jrjellybeans)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 11:52pm UTC](https://forum.kirupa.com/t/memory-optimization-question/304789 "2010-02-13T23:52:17Z")

</div>

Hey guys, Suppose that I'm creating movieclips where I will dynamically choose which sprite I want them to have. So, I create a BitmapData of the image that I'm going to use, create a bitmap containing that bitmapd…

---

## [Flex: Send event or something to repeater item](https://forum.kirupa.com/t/flex-send-event-or-something-to-repeater-item/304788)

<div class="topic-metadata">

**Author:** [@Miguelele](https://forum.kirupa.com/u/Miguelele)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 11:36pm UTC](https://forum.kirupa.com/t/flex-send-event-or-something-to-repeater-item/304788 "2010-02-13T23:36:07Z")

</div>

Hi, I have a Tile with a repeater. I need to select a repeater item or the tile and change its values, or fire an event, or something. Is it posible? Thanks!!

---

## [Hacked AC\_RunActiveContent.js](https://forum.kirupa.com/t/hacked-ac-runactivecontent-js/304787)

<div class="topic-metadata">

**Author:** [@colorowdy](https://forum.kirupa.com/u/colorowdy)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 10:14pm UTC](https://forum.kirupa.com/t/hacked-ac-runactivecontent-js/304787 "2010-02-13T22:14:41Z")

</div>

I am looking for a new secure method to run Flash content on client websites. In the past 8 months I have had 9 client sites hacked by using the AC\_RunActiveContent.js. Some of my clients sites redirect to some unsafe do…

---

## [Decimal values for 'x' and 'y' properties of a DisplayObject](https://forum.kirupa.com/t/decimal-values-for-x-and-y-properties-of-a-displayobject/304783)

<div class="topic-metadata">

**Author:** [@Josflos](https://forum.kirupa.com/u/Josflos)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 8:22pm UTC](https://forum.kirupa.com/t/decimal-values-for-x-and-y-properties-of-a-displayobject/304783 "2010-02-13T20:22:29Z")

</div>

As far as I know, a pixel is a pixel. You can hardly move a DisplayObject half a pixel, can you? Still the x and y properties of a DisplayObject allow values with two decimals. A small test.. addEventListener(Even…

---

## [Movie Clips within Movie Clips question?](https://forum.kirupa.com/t/movie-clips-within-movie-clips-question/304781)

<div class="topic-metadata">

**Author:** [@OxideAlloy](https://forum.kirupa.com/u/OxideAlloy)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 8:09pm UTC](https://forum.kirupa.com/t/movie-clips-within-movie-clips-question/304781 "2010-02-13T20:09:42Z")

</div>

We have a movieclip mc1 with another movieclip mc2 inside of it. We are creating an instance of mc1 on the stage through actionscript and need to be able to reference mc2. We have tried various methods to do this but had…

---

## [Help with background command](https://forum.kirupa.com/t/help-with-background-command/304780)

<div class="topic-metadata">

**Author:** [@kev](https://forum.kirupa.com/u/kev)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 7:36pm UTC](https://forum.kirupa.com/t/help-with-background-command/304780 "2010-02-13T19:36:02Z")

</div>

Hi all, it’s been along time since i used CSS, but i am using again for a project, this is so basic, but can’t remember. I have a background image that i want to stretch across the browser window, but none of the comman…

---

## [\[AS2 Flash CS4\]Dynamic text from SharedObject](https://forum.kirupa.com/t/as2-flash-cs4-dynamic-text-from-sharedobject/304777)

<div class="topic-metadata">

**Author:** [@recipient](https://forum.kirupa.com/u/recipient)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 6:07pm UTC](https://forum.kirupa.com/t/as2-flash-cs4-dynamic-text-from-sharedobject/304777 "2010-02-13T18:07:32Z")

</div>

Hi everyone! So I'm having a problem: I have some variables that I declare when pressing a button and they're saved in a SharedObject. When I get directed to the next frame and want those variables to be displayed in d…

---

## [What happens when event dispatches quicker as eventhandler can handle it?](https://forum.kirupa.com/t/what-happens-when-event-dispatches-quicker-as-eventhandler-can-handle-it/304775)

<div class="topic-metadata">

**Author:** [@Neubema](https://forum.kirupa.com/u/Neubema)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 4:40pm UTC](https://forum.kirupa.com/t/what-happens-when-event-dispatches-quicker-as-eventhandler-can-handle-it/304775 "2010-02-13T16:40:40Z")

</div>

Hi. For example: You got an eventlistener for an object that can dispatches events in intervals of 0.2ms. And if the eventhandler would need 0.5ms for his operation, what would happen? (listener and handler are in th…

---

## [Get mouse position relative to screen?](https://forum.kirupa.com/t/get-mouse-position-relative-to-screen/304774)

<div class="topic-metadata">

**Author:** [@brunoja](https://forum.kirupa.com/u/brunoja)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 4:34pm UTC](https://forum.kirupa.com/t/get-mouse-position-relative-to-screen/304774 "2010-02-13T16:34:24Z")

</div>

Hello! I would like to know if there is any way that when mouse leaves screen, the mouse coord from the Main Movie Clip (mouseX and mouseY) keeps updating! Is there any way to get the mouse pos relative to the screen p…

---

## [Php input validation - exact input only](https://forum.kirupa.com/t/php-input-validation-exact-input-only/304772)

<div class="topic-metadata">

**Author:** [@oddball](https://forum.kirupa.com/u/oddball)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 3:10pm UTC](https://forum.kirupa.com/t/php-input-validation-exact-input-only/304772 "2010-02-13T15:10:11Z")

</div>

Hey I am struggling in trying to find a solution for the above problem. I have a simple html form and have some php code set up to validate the user input. Below is an example of how i am validating one particular fiel…

---

## [gotoAndPlay frame in main scene help! AS 3.0](https://forum.kirupa.com/t/gotoandplay-frame-in-main-scene-help-as-3-0/304770)

<div class="topic-metadata">

**Author:** [@duchman](https://forum.kirupa.com/u/duchman)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 2:44pm UTC](https://forum.kirupa.com/t/gotoandplay-frame-in-main-scene-help-as-3-0/304770 "2010-02-13T14:44:05Z")

</div>

I have a mc INSIDE one of the layers in main scene, how to make it go to specified frame back on the main scene, when finished playing? Flash, cs4, as3. Thnx.

---

## [Vertical scrolling thumbnails needed in photo gallery](https://forum.kirupa.com/t/vertical-scrolling-thumbnails-needed-in-photo-gallery/304769)

<div class="topic-metadata">

**Author:** [@sbeard](https://forum.kirupa.com/u/sbeard)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 2:38pm UTC](https://forum.kirupa.com/t/vertical-scrolling-thumbnails-needed-in-photo-gallery/304769 "2010-02-13T14:38:13Z")

</div>

I have used the gallery with the horizontal scrolling thumbnails which works great. But would also like to have a gallery with vertical scrolling thumbnails too. I modified the code some from the tutorial and it doe…

---

## [as2 multidimensional array in external .as file](https://forum.kirupa.com/t/as2-multidimensional-array-in-external-as-file/304768)

<div class="topic-metadata">

**Author:** [@charco](https://forum.kirupa.com/u/charco)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 2:31pm UTC](https://forum.kirupa.com/t/as2-multidimensional-array-in-external-as-file/304768 "2010-02-13T14:31:16Z")

</div>

Hi there.. Gotta problem with a multidimensional array. It works when included in the actionscript but not when included in an external .as file accessed through #include the actionscript (in the actual flash doc of cour…

---

## [Web server virus](https://forum.kirupa.com/t/web-server-virus/304767)

<div class="topic-metadata">

**Author:** [@Keytar\_Andy](https://forum.kirupa.com/u/Keytar_Andy)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 11:32am UTC](https://forum.kirupa.com/t/web-server-virus/304767 "2010-02-13T11:32:30Z")

</div>

Hey Kirupa, I didn't know where else to turn for this problem. I just went on both of my domains and they both alarmingly trigger my virus detector. They both have MySQL and PHP running and have the MySQL tables runnin…

---

## [Brand New Apple iPhone 3GS 32GB:$230/Nokia N900:$240/Blackberry Bold 9700:$300](https://forum.kirupa.com/t/brand-new-apple-iphone-3gs-32gb-230-nokia-n900-240-blackberry-bold-9700-300/304766)

<div class="topic-metadata">

**Author:** [@cellpro](https://forum.kirupa.com/u/cellpro)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 10:29am UTC](https://forum.kirupa.com/t/brand-new-apple-iphone-3gs-32gb-230-nokia-n900-240-blackberry-bold-9700-300/304766 "2010-02-13T10:29:19Z")

</div>

\*\*WELCOME TO BESTBUY ONLINE PHONES COMMUNICATION Our goal is to provide the highest quality electronics product at the lowest cost on the Internet. We offer high quality products at a very affordable price. In any busi…

---

## [Draggable Mask](https://forum.kirupa.com/t/draggable-mask/304764)

<div class="topic-metadata">

**Author:** [@RCoyne](https://forum.kirupa.com/u/RCoyne)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 6:15am UTC](https://forum.kirupa.com/t/draggable-mask/304764 "2010-02-13T06:15:43Z")

</div>

I am trying to create a draggable mask with an image around it. More specifically an iPhone that looks as if it has X Ray cappability. I know how to make a draggable mask but can't seem to figure out how this situation m…

---

## [Simple Javascript Help](https://forum.kirupa.com/t/simple-javascript-help/304763)

<div class="topic-metadata">

**Author:** [@appletree](https://forum.kirupa.com/u/appletree)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 5:50am UTC](https://forum.kirupa.com/t/simple-javascript-help/304763 "2010-02-13T05:50:14Z")

</div>

I found the solution.

---

## [Null refrence error when attepting to addChild](https://forum.kirupa.com/t/null-refrence-error-when-attepting-to-addchild/304762)

<div class="topic-metadata">

**Author:** [@soon2bdead](https://forum.kirupa.com/u/soon2bdead)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 5:17am UTC](https://forum.kirupa.com/t/null-refrence-error-when-attepting-to-addchild/304762 "2010-02-13T05:17:59Z")

</div>

I am attempting to make a class that handles the building in a game, but I can't get the object to come on stage. I can get everything to work if I am on the timeline, just not from this class. I've been getting this: …

---

## [UILoader doesn't fill the page](https://forum.kirupa.com/t/uiloader-doesnt-fill-the-page/304758)

<div class="topic-metadata">

**Author:** [@maruf89](https://forum.kirupa.com/u/maruf89)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 3:25am UTC](https://forum.kirupa.com/t/uiloader-doesnt-fill-the-page/304758 "2010-02-13T03:25:20Z")

</div>

Made the part I'm having problems with bold import com.greensock.TweenLite; import com.greensock.easing.\*; import fl.containers.UILoader; var scrollGallery\_mc:UILoader; var mainPreload:UILoader; var scrollTimer:Timer…

---

## [Return "unparsed" PHP](https://forum.kirupa.com/t/return-unparsed-php/304757)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 3:16am UTC](https://forum.kirupa.com/t/return-unparsed-php/304757 "2010-02-13T03:16:28Z")

</div>

I'm just sortof throwing something around in my mind and was wondering something... Is it possible to return the exact text of a PHP page UNPARSED, meaning return the raw page as if it were a text file? I want to do …

---

## [Tutorial 'Adding thumbnails' queries](https://forum.kirupa.com/t/tutorial-adding-thumbnails-queries/304756)

<div class="topic-metadata">

**Author:** [@smnwlsn](https://forum.kirupa.com/u/smnwlsn)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 2:57am UTC](https://forum.kirupa.com/t/tutorial-adding-thumbnails-queries/304756 "2010-02-13T02:57:21Z")

</div>

Hello all, I've made a photo gallery using this excellent tutorial, which i was very happy with. There are just two things which i would like to change and can't work out. I would like to add a plus symbol or arr…

---

## [Spring Effect](https://forum.kirupa.com/t/spring-effect/304752)

<div class="topic-metadata">

**Author:** [@9848674445](https://forum.kirupa.com/u/9848674445)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 12:59am UTC](https://forum.kirupa.com/t/spring-effect/304752 "2010-02-13T00:59:39Z")

</div>

Hello im making a game. My charecter jumps high, but i want him to jump higher at times. Just like in super mario, i want to make a spring. Can nyone please help me and tell me how to make the "spring thing"? :stormtroop…

---

## [Flash noob looking to fullpage scale](https://forum.kirupa.com/t/flash-noob-looking-to-fullpage-scale/304751)

<div class="topic-metadata">

**Author:** [@harvengure](https://forum.kirupa.com/u/harvengure)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 12:47am UTC](https://forum.kirupa.com/t/flash-noob-looking-to-fullpage-scale/304751 "2010-02-13T00:47:51Z")

</div>

Hello everyone, I hope this is the appropriate place to ask this question but I am not too entirely sure as my search did not turn up anything new in regards to my trying to scale a flash interface I have been working …

---

## [Font for the stage](https://forum.kirupa.com/t/font-for-the-stage/304748)

<div class="topic-metadata">

**Author:** [@LS05](https://forum.kirupa.com/u/LS05)\
**Replies:** 0\
**Last updated:** [February 12, 2010, 11:28pm UTC](https://forum.kirupa.com/t/font-for-the-stage/304748 "2010-02-12T23:28:48Z")

</div>

Hi guys, I have a font in the library. I use this font for all the menu entries and other things. how can i set this font for the entire stage within sepicifng it for every menu entries? :stunned: Thanks.

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

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