# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=648

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

**Page:** 649

---

## [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…

---

## [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…

---

## [Getting problem to Give URL in the Button](https://forum.kirupa.com/t/getting-problem-to-give-url-in-the-button/286168)

<div class="topic-metadata">

**Author:** [@wt345](https://forum.kirupa.com/u/wt345)\
**Replies:** 0\
**Last updated:** [April 11, 2009, 5:10am UTC](https://forum.kirupa.com/t/getting-problem-to-give-url-in-the-button/286168 "2009-04-11T05:10:07Z")

</div>

Hi, I am web designer rite now I am making a banner in which I need to give URL for that if somebody click on it so the particular site will open. How cn i make plz help!!!!!

---

## [keyLocation.LEFT / .RIGHT won't work on a Mac keyboard](https://forum.kirupa.com/t/keylocation-left-right-wont-work-on-a-mac-keyboard/286160)

<div class="topic-metadata">

**Author:** [@warek](https://forum.kirupa.com/u/warek)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 10:57pm UTC](https://forum.kirupa.com/t/keylocation-left-right-wont-work-on-a-mac-keyboard/286160 "2009-04-10T22:57:27Z")

</div>

I want to differentiate the LEFT SHIFT key on the keyboard from the RIGHT SHIFT key. The code below will do that on my PC Laptop but not on my Macbook Pro. Someone knows a workaround or the reason why? Thanks! -Marek (…

---

## [MX Slider Tutorial](https://forum.kirupa.com/t/mx-slider-tutorial/286157)

<div class="topic-metadata">

**Author:** [@visibleman](https://forum.kirupa.com/u/visibleman)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 10:26pm UTC](https://forum.kirupa.com/t/mx-slider-tutorial/286157 "2009-04-10T22:26:47Z")

</div>

Hi all, been building a slider (based on the Kirupa tutorial \> HERE \<) in MX for the volume control of the Sound() object, but i've noticed once you click the slider the onEnterFrame continues to run even after you've 'r…

---

## [AS3: accessing swfObject variable within Flash, help!](https://forum.kirupa.com/t/as3-accessing-swfobject-variable-within-flash-help/286154)

<div class="topic-metadata">

**Author:** [@wuzzi2ya](https://forum.kirupa.com/u/wuzzi2ya)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 9:07pm UTC](https://forum.kirupa.com/t/as3-accessing-swfobject-variable-within-flash-help/286154 "2009-04-10T21:07:13Z")

</div>

...

---

## [Dynamically Assign Layer to loaded movie with AS3](https://forum.kirupa.com/t/dynamically-assign-layer-to-loaded-movie-with-as3/286153)

<div class="topic-metadata">

**Author:** [@Egomet](https://forum.kirupa.com/u/Egomet)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 9:03pm UTC](https://forum.kirupa.com/t/dynamically-assign-layer-to-loaded-movie-with-as3/286153 "2009-04-10T21:03:32Z")

</div>

Hello I am loading a swf in my main timeline in Flash CS4 using the AS3. However the movie appears on top of everything else, while I need it to be below everything else. What is the way to specify a layer or order…

---

## [How to play animation only once for return visitors?](https://forum.kirupa.com/t/how-to-play-animation-only-once-for-return-visitors/286151)

<div class="topic-metadata">

**Author:** [@fatPluto](https://forum.kirupa.com/u/fatPluto)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 8:31pm UTC](https://forum.kirupa.com/t/how-to-play-animation-only-once-for-return-visitors/286151 "2009-04-10T20:31:33Z")

</div>

Hi, I'm not sure how to go about this: I'm building an animation on the home page of a site that I think people shouldn't have to watch more than once. So, if they've already been on the home page and now they've click…

---

## [Stage Align for Display Objects](https://forum.kirupa.com/t/stage-align-for-display-objects/286147)

<div class="topic-metadata">

**Author:** [@aspivey](https://forum.kirupa.com/u/aspivey)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 7:15pm UTC](https://forum.kirupa.com/t/stage-align-for-display-objects/286147 "2009-04-10T19:15:38Z")

</div>

I've been putting off asking this question and have tried to resolve it myself since it would seem to be so basic; however after much frustration :bu: , here goes: Can a display object (ie an instance of a class loaded…

---

## [External urls don't work](https://forum.kirupa.com/t/external-urls-dont-work/286145)

<div class="topic-metadata">

**Author:** [@heymajor](https://forum.kirupa.com/u/heymajor)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 7:09pm UTC](https://forum.kirupa.com/t/external-urls-dont-work/286145 "2009-04-10T19:09:30Z")

</div>

Deleted.

---

## [Intrinsic classes](https://forum.kirupa.com/t/intrinsic-classes/286143)

<div class="topic-metadata">

**Author:** [@darnpunk](https://forum.kirupa.com/u/darnpunk)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 6:32pm UTC](https://forum.kirupa.com/t/intrinsic-classes/286143 "2009-04-10T18:32:51Z")

</div>

Hi, I need advice on development process that involves using intrinsic classes. The intrinsic classes allow them to see the properties and methods offered by the class but not the inner workings and also prevent edit…

---

## [Auto Insert Frames for Audio](https://forum.kirupa.com/t/auto-insert-frames-for-audio/286142)

<div class="topic-metadata">

**Author:** [@halian](https://forum.kirupa.com/u/halian)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 5:50pm UTC](https://forum.kirupa.com/t/auto-insert-frames-for-audio/286142 "2009-04-10T17:50:34Z")

</div>

Hey all, I'm looking for a way to automatically insert enough frames to span the length of embedded audio. Currently, when you add audio to the timeline in a frame, it doesn't expand the frames. Is there a way to do so…

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=647)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=649)
