# programming

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

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

**Page:** 851

---

## [Calling A2 functions from AS3](https://forum.kirupa.com/t/calling-a2-functions-from-as3/286228)

<div class="topic-metadata">

**Author:** [@yosiholl](https://forum.kirupa.com/u/yosiholl)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 9:41am UTC](https://forum.kirupa.com/t/calling-a2-functions-from-as3/286228 "2009-04-12T09:41:53Z")

</div>

Hi I'm using some extension that is supported only with AS2, but I don't want my entire application to be coded in AS2. Is there any way to use it from an AS3 application? I've tried to wrap it with a swf, and load t…

---

## [Apply specified Function to multiple of movie clips](https://forum.kirupa.com/t/apply-specified-function-to-multiple-of-movie-clips/286227)

<div class="topic-metadata">

**Author:** [@music\_fuel](https://forum.kirupa.com/u/music_fuel)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 9:33am UTC](https://forum.kirupa.com/t/apply-specified-function-to-multiple-of-movie-clips/286227 "2009-04-12T09:33:28Z")

</div>

\[FONT=Verdana\]How would I apply my existing function that involves calculating the x and y position of a specified movie clip, to multiples of movieclips. \[/FONT\] \[FONT=Verdana\] \[/FONT\] \[FONT=Verdana\] \[/FONT\] \[FONT=Verda…

---

## [Event.INIT & Event.COMPLETE not registering/triggering](https://forum.kirupa.com/t/event-init-event-complete-not-registering-triggering/286223)

<div class="topic-metadata">

**Author:** [@jm8thew](https://forum.kirupa.com/u/jm8thew)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 3:56am UTC](https://forum.kirupa.com/t/event-init-event-complete-not-registering-triggering/286223 "2009-04-12T03:56:51Z")

</div>

A little background first: I run ubuntu hardy with flash 10 and im using flex 3 sdk to compile my projects. I'm new to actionscript but not programming. Here's the issue. I'm working on a proggy that simply displays…

---

## [URGENT! Webcam game code problem](https://forum.kirupa.com/t/urgent-webcam-game-code-problem/286222)

<div class="topic-metadata">

**Author:** [@music\_fuel](https://forum.kirupa.com/u/music_fuel)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 3:55am UTC](https://forum.kirupa.com/t/urgent-webcam-game-code-problem/286222 "2009-04-12T03:55:13Z")

</div>

Hi Everyone, I've been following a tutorial on creating a webcam motion detect game for a project. The game(code below) basically works where, when a person waves their hand over the ball movieclip, the function 'hitDete…

---

## [removeChild from different frame?!?!](https://forum.kirupa.com/t/removechild-from-different-frame/286220)

<div class="topic-metadata">

**Author:** [@kwonk03](https://forum.kirupa.com/u/kwonk03)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 2:55am UTC](https://forum.kirupa.com/t/removechild-from-different-frame/286220 "2009-04-12T02:55:23Z")

</div>

hello again friends... happy easter! I am having a rough time dealing with this problem: I have a set of buttons on the main timeline that gotoandplays movieclips that reside in different frames. These movieclips are…

---

## [Annoying Preloader](https://forum.kirupa.com/t/annoying-preloader/286219)

<div class="topic-metadata">

**Author:** [@kinda86](https://forum.kirupa.com/u/kinda86)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 2:36am UTC](https://forum.kirupa.com/t/annoying-preloader/286219 "2009-04-12T02:36:07Z")

</div>

Hi, I've got a master.fla the loads all the other .swf files i have for my website. Everything is working ok (with exception to a couple of things that I posted earlier)... I've decided to add a preloader to the whole …

---

## [Stop sound with ActionScript](https://forum.kirupa.com/t/stop-sound-with-actionscript/286218)

<div class="topic-metadata">

**Author:** [@Anataya](https://forum.kirupa.com/u/Anataya)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 2:34am UTC](https://forum.kirupa.com/t/stop-sound-with-actionscript/286218 "2009-04-12T02:34:34Z")

</div>

I've got a movie where there's an audio file looping throughout it (across many different scenes) and in the final scene I need it to stop playing at a particular frame. I've tried a few different things with ActionScrip…

---

## [How can I fake SystemManager?](https://forum.kirupa.com/t/how-can-i-fake-systemmanager/286215)

<div class="topic-metadata">

**Author:** [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 12:48am UTC](https://forum.kirupa.com/t/how-can-i-fake-systemmanager/286215 "2009-04-12T00:48:56Z")

</div>

I need to tell Flex compiler that my custom class is SystemManager and it has to create on it info() and create(...rest) functions. Why do I need this: - lots of additional compiler arguments are set at compile time to …

---

## [Organising a Large Game Project](https://forum.kirupa.com/t/organising-a-large-game-project/286213)

<div class="topic-metadata">

**Author:** [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 11:19pm UTC](https://forum.kirupa.com/t/organising-a-large-game-project/286213 "2009-04-11T23:19:53Z")

</div>

Hey, I really want to start work on a game idea I have using PaperVision. The largest/most complex thing in Flash I have ever made is probably my last project which is an interactive school map for my A Level http://da…

---

## [Help with Loading XML Data embeded in PHP in Flash List Component](https://forum.kirupa.com/t/help-with-loading-xml-data-embeded-in-php-in-flash-list-component/286210)

<div class="topic-metadata">

**Author:** [@southpawnigeria](https://forum.kirupa.com/u/southpawnigeria)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 10:46pm UTC](https://forum.kirupa.com/t/help-with-loading-xml-data-embeded-in-php-in-flash-list-component/286210 "2009-04-11T22:46:27Z")

</div>

Hello all, I'm trying to load xml data embeded in php into a listbox component. I have a piece of code that just loads the xml but does not display it in the list box \<code\> var yourXML:XML = new XML(); yourXML.ignor…

---

## [Can non-display objects listen for KeyboardEvents?](https://forum.kirupa.com/t/can-non-display-objects-listen-for-keyboardevents/286209)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 9:44pm UTC](https://forum.kirupa.com/t/can-non-display-objects-listen-for-keyboardevents/286209 "2009-04-11T21:44:25Z")

</div>

Can non-display objects (or display objects that are not attached to the stage) listen for KeyboardEvents? I know this question or similar questions appear all the time, but is there any official solution or answer?

---

## [Not Versed in Flash terms: Button loading external imgs problem](https://forum.kirupa.com/t/not-versed-in-flash-terms-button-loading-external-imgs-problem/286206)

<div class="topic-metadata">

**Author:** [@kinda86](https://forum.kirupa.com/u/kinda86)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 8:46pm UTC](https://forum.kirupa.com/t/not-versed-in-flash-terms-button-loading-external-imgs-problem/286206 "2009-04-11T20:46:07Z")

</div>

Hi... I tried looking around the site for something to solve my problem but wasn't able to find anything... I've got an image gallery (http://www.artengine.ca/cgervais/ click on the gallery button and any of the top ti…

---

## [Comments book issue](https://forum.kirupa.com/t/comments-book-issue/286204)

<div class="topic-metadata">

**Author:** [@g\_necionis](https://forum.kirupa.com/u/g_necionis)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 8:27pm UTC](https://forum.kirupa.com/t/comments-book-issue/286204 "2009-04-11T20:27:35Z")

</div>

Hi, I did \[COLOR=Blue\]\[this\](http://unlock.b4net.lt/komentarai/)\[/COLOR\]. It works fine on ff but on IE7 it doesn't get a new xml file from MySQL then a new message is posted... Any help would be appriciated about to mak…

---

## [Better zoom/drag technique](https://forum.kirupa.com/t/better-zoom-drag-technique/286203)

<div class="topic-metadata">

**Author:** [@kinda86](https://forum.kirupa.com/u/kinda86)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 8:07pm UTC](https://forum.kirupa.com/t/better-zoom-drag-technique/286203 "2009-04-11T20:07:49Z")

</div>

Hey all, I am new to Kirupa and kind of still beginning with flash too.. I've been working on this website http://www.artengine.ca/cgervais/ for a while now but been having trouble enhancing it... If you click on the P…

---

## [TypeError: Error #1010](https://forum.kirupa.com/t/typeerror-error-1010/286198)

<div class="topic-metadata">

**Author:** [@redmolla](https://forum.kirupa.com/u/redmolla)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 7:22pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/286198 "2009-04-11T19:22:17Z")

</div>

i receive this error in iexplorer, if i load the swf in firefox or opera i dont see this error. Please tell me how can i fix this. TypeError: Error #1010: A term is undefined and has no properties. at MethodInfo-3() …

---

## [Incorporating pre-exsting Php/Mysql into Flash](https://forum.kirupa.com/t/incorporating-pre-exsting-php-mysql-into-flash/286196)

<div class="topic-metadata">

**Author:** [@ski0404](https://forum.kirupa.com/u/ski0404)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 6:23pm UTC](https://forum.kirupa.com/t/incorporating-pre-exsting-php-mysql-into-flash/286196 "2009-04-11T18:23:46Z")

</div>

Hello all, I am trying to incorporate a php/ mysql site that is already set up, to read into my new flash site.... How ever i am new to the whole coding thing, and would love to read up on it if anyone can suggest any b…

---

## [Flash site with gradient bg](https://forum.kirupa.com/t/flash-site-with-gradient-bg/286195)

<div class="topic-metadata">

**Author:** [@sendtomjk](https://forum.kirupa.com/u/sendtomjk)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 5:54pm UTC](https://forum.kirupa.com/t/flash-site-with-gradient-bg/286195 "2009-04-11T17:54:33Z")

</div>

What do i write in the index.html file for a flash site so that the background is a gradient fill? I know this code changes the bg to a solid colour: \<body bgcolor="#1b1b1b"\> but what do I need to make a gradient l…

---

## [Where does the compiler write info from -services.xml?](https://forum.kirupa.com/t/where-does-the-compiler-write-info-from-services-xml/286194)

<div class="topic-metadata">

**Author:** [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 5:42pm UTC](https://forum.kirupa.com/t/where-does-the-compiler-write-info-from-services-xml/286194 "2009-04-11T17:42:46Z")

</div>

So, you well know you can specify -services "my\_services.xml" with compiler arguments. this "my\_services.xml" will contain the information about the WSDL location and some alias... basically. So, my question is, after yo…

---

## [CS3 align issue](https://forum.kirupa.com/t/cs3-align-issue/286192)

<div class="topic-metadata">

**Author:** [@almo](https://forum.kirupa.com/u/almo)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 5:25pm UTC](https://forum.kirupa.com/t/cs3-align-issue/286192 "2009-04-11T17:25:22Z")

</div>

So... is it my imagination, or does Flash CS3 move both the first- and second-selected objects when you do Align Horizontal Centers? I want it to align the second object to the first one's center, as I seem to remember…

---

## [Actionscript help, .swf included :)](https://forum.kirupa.com/t/actionscript-help-swf-included/286190)

<div class="topic-metadata">

**Author:** [@Fletcher](https://forum.kirupa.com/u/Fletcher)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 3:49pm UTC](https://forum.kirupa.com/t/actionscript-help-swf-included/286190 "2009-04-11T15:49:20Z")

</div>

Hey, You can play what I have made so far here, it is a 2D action/adventure shooter. http://megaswf.com/view/5bf2365be9e2261fd6bd3fb891e06911.html I have an ambition to make a good game. I've made the above piece ove…

---

## [Detect and disable a double-click](https://forum.kirupa.com/t/detect-and-disable-a-double-click/286189)

<div class="topic-metadata">

**Author:** [@Egomet](https://forum.kirupa.com/u/Egomet)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 3:48pm UTC](https://forum.kirupa.com/t/detect-and-disable-a-double-click/286189 "2009-04-11T15:48:56Z")

</div>

Hello I have a Flash application were I must ensure the user does not double-click on a hotspot or that double clicking is not enabled. I am sure or I hope at least this is simple, but I am really struggling to manag…

---

## [PNG Transparency and Button](https://forum.kirupa.com/t/png-transparency-and-button/286187)

<div class="topic-metadata">

**Author:** [@vxd](https://forum.kirupa.com/u/vxd)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 3:21pm UTC](https://forum.kirupa.com/t/png-transparency-and-button/286187 "2009-04-11T15:21:41Z")

</div>

Hi, Is there a way to make the transparent area from an png image not to register when I add with a mouse event to that image? What is happening is the rectangle around the symbol is effected by the mouse event. I'…

---

## [Mysteriously disappearing from text out of scroller and buttons you can press twice](https://forum.kirupa.com/t/mysteriously-disappearing-from-text-out-of-scroller-and-buttons-you-can-press-twice/286183)

<div class="topic-metadata">

**Author:** [@oktodes](https://forum.kirupa.com/u/oktodes)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 2:03pm UTC](https://forum.kirupa.com/t/mysteriously-disappearing-from-text-out-of-scroller-and-buttons-you-can-press-twice/286183 "2009-04-11T14:03:13Z")

</div>

\[FONT=Arial\] Hi \[/FONT\] \[FONT=Arial\] I have the weirdest problem. It’s a bit difficult to explain so I’ll add a link to the swf. \[/FONT\] \[FONT=Arial\] http://users.telenet.be/paraat/Infinite%20Horizontal%20Slide…

---

## [Create class without calling constructor](https://forum.kirupa.com/t/create-class-without-calling-constructor/286182)

<div class="topic-metadata">

**Author:** [@dataxa](https://forum.kirupa.com/u/dataxa)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 1:54pm UTC](https://forum.kirupa.com/t/create-class-without-calling-constructor/286182 "2009-04-11T13:54:56Z")

</div>

How to create new class instance without calling constructor function, meanwhile constructor function must exist and is requiring 1 parameter. var newclass:myclass = new myclass; \<- still calls function myclass in mycl…

---

## [For Loop problem](https://forum.kirupa.com/t/for-loop-problem/286181)

<div class="topic-metadata">

**Author:** [@fingermouse](https://forum.kirupa.com/u/fingermouse)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 1:16pm UTC](https://forum.kirupa.com/t/for-loop-problem/286181 "2009-04-11T13:16:12Z")

</div>

The trace action is giving the correct individual clip on rollover, and the correct frame based on the i variable but this\["button"+i\] doesn't seem to be assigning to control the instance on the goto action. Could an…

---

## [Enter Key in Browser](https://forum.kirupa.com/t/enter-key-in-browser/286179)

<div class="topic-metadata">

**Author:** [@Reinhardt](https://forum.kirupa.com/u/Reinhardt)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 12:47pm UTC](https://forum.kirupa.com/t/enter-key-in-browser/286179 "2009-04-11T12:47:04Z")

</div>

Hi there! Does anyone know how to enable the ENTER key in Flash (using AS2). In my SWF file it works fine, but once I publish it and open the HTML file, my ENTER key does not work. How it works is: At the start you h…

---

## [Creating Multiple Objects](https://forum.kirupa.com/t/creating-multiple-objects/286178)

<div class="topic-metadata">

**Author:** [@BlindCarrot](https://forum.kirupa.com/u/BlindCarrot)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 12:19pm UTC](https://forum.kirupa.com/t/creating-multiple-objects/286178 "2009-04-11T12:19:48Z")

</div>

Hi, I had a question. My goal is to create multiple objects that fall downwards. The problem now is that the object stays in the left upper corner. I've linked the object to actionscript with the name "object". Can som…

---

## [Some questions about the wonderful rectangle](https://forum.kirupa.com/t/some-questions-about-the-wonderful-rectangle/286176)

<div class="topic-metadata">

**Author:** [@geraldyeong](https://forum.kirupa.com/u/geraldyeong)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 11:31am UTC](https://forum.kirupa.com/t/some-questions-about-the-wonderful-rectangle/286176 "2009-04-11T11:31:59Z")

</div>

hihi everyone, the weak has come to ask for help ! I've stumbled upon a question, i read up something on collisions. It is a drag drop tutorial. Scenario : I have a rectangle sized : 498.9 width, 237 height. (ONLY…

---

## [Setting up Packages](https://forum.kirupa.com/t/setting-up-packages/286172)

<div class="topic-metadata">

**Author:** [@Alpha\_eX](https://forum.kirupa.com/u/Alpha_eX)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 9:01am UTC](https://forum.kirupa.com/t/setting-up-packages/286172 "2009-04-11T09:01:04Z")

</div>

I'm starting a new project and have a few classes i've wrote and want to reuse. I want to set them up with packages but tried before and failed. Can anyone help me set these up, i'm feeling really stupid not being able…

---

## [\[as3\]if.. | not working animation](https://forum.kirupa.com/t/as3-if-not-working-animation/286170)

<div class="topic-metadata">

**Author:** [@skabszo](https://forum.kirupa.com/u/skabszo)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 8:16am UTC](https://forum.kirupa.com/t/as3-if-not-working-animation/286170 "2009-04-11T08:16:16Z")

</div>

Ive got this simple code: import flash.events.MouseEvent; var myImageMovie:ImageMovie = new ImageMovie(); myImageMovie.x = 20; myImageMovie.y = 20; var myImageMovie2:a2 = new a2(); myImageMovie2.x = 20; myImageMovi…

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

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