# programming

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

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

**Page:** 521

---

## [Problem in having AI respond - Card Game](https://forum.kirupa.com/t/problem-in-having-ai-respond-card-game/307494)

<div class="topic-metadata">

**Author:** [@conquer001](https://forum.kirupa.com/u/conquer001)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 6:16pm UTC](https://forum.kirupa.com/t/problem-in-having-ai-respond-card-game/307494 "2010-04-04T18:16:47Z")

</div>

Hi all, I'm having a problem with the supposed AI that I've created for a card game that I'm making. The purpose is to have the function meant for 'player 2' to run after the human player has put down a card. What the …

---

## [Noob trouble--drag and drop quiz/hitTest](https://forum.kirupa.com/t/noob-trouble-drag-and-drop-quiz-hittest/307493)

<div class="topic-metadata">

**Author:** [@Courtez](https://forum.kirupa.com/u/Courtez)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 5:29pm UTC](https://forum.kirupa.com/t/noob-trouble-drag-and-drop-quiz-hittest/307493 "2010-04-04T17:29:59Z")

</div>

Hello, everyone! I am having trouble with a drag-and-drop quiz. The concept goes like this: 30 icon movieclips in 6 different categories, each with corresponding target movieclips, also arranged into the same 6 categ…

---

## [Problem with UL tag in my CSS document](https://forum.kirupa.com/t/problem-with-ul-tag-in-my-css-document/307484)

<div class="topic-metadata">

**Author:** [@nvidia](https://forum.kirupa.com/u/nvidia)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:54pm UTC](https://forum.kirupa.com/t/problem-with-ul-tag-in-my-css-document/307484 "2010-04-04T15:54:57Z")

</div>

Hi, i am trying to create a navigation bar using the UL element tag, i've created my links fine, but whenever i click on my links, it some how pushes my page downwards. Can somebody tell me why it does this please. …

---

## [addChild(); using array](https://forum.kirupa.com/t/addchild-using-array/307482)

<div class="topic-metadata">

**Author:** [@radbourn3](https://forum.kirupa.com/u/radbourn3)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:12pm UTC](https://forum.kirupa.com/t/addchild-using-array/307482 "2010-04-04T15:12:31Z")

</div>

Hi forum Can anyone help me add a child to each movieclip in the array below? I want the code in bold to increment with the wObj movieclips. e.g. wObj1 contains a loader called wObjIcon1 loading an image from wIconUR…

---

## [Passing Stage to another class](https://forum.kirupa.com/t/passing-stage-to-another-class/307481)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 2:48pm UTC](https://forum.kirupa.com/t/passing-stage-to-another-class/307481 "2010-04-04T14:48:08Z")

</div>

I am having the tuffest of times doing this. I have my FLA with a Document Class. I also have one other class, that doesn't extend anything. I am trying to pass the stage from the FLA on to my non-Document class. Ob…

---

## [mysql\_fetch\_array, not displaying data](https://forum.kirupa.com/t/mysql-fetch-array-not-displaying-data/307480)

<div class="topic-metadata">

**Author:** [@crayzee](https://forum.kirupa.com/u/crayzee)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 1:16pm UTC](https://forum.kirupa.com/t/mysql-fetch-array-not-displaying-data/307480 "2010-04-04T13:16:44Z")

</div>

I've written this basic script below in order to match the password entered to a password from the database. When I run this conditional statement below my browser (safari 4.0.4) displays the "results returned" String, b…

---

## [Mouse recentering](https://forum.kirupa.com/t/mouse-recentering/307479)

<div class="topic-metadata">

**Author:** [@Vand2](https://forum.kirupa.com/u/Vand2)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 12:21pm UTC](https://forum.kirupa.com/t/mouse-recentering/307479 "2010-04-04T12:21:38Z")

</div>

Hello, How can i recenter the mouse from Actionscript 3? Force it back to the middle of the screen to avoid losing it?

---

## [Roulette Wheel Selection](https://forum.kirupa.com/t/roulette-wheel-selection/307478)

<div class="topic-metadata">

**Author:** [@danielsvane](https://forum.kirupa.com/u/danielsvane)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 12:01pm UTC](https://forum.kirupa.com/t/roulette-wheel-selection/307478 "2010-04-04T12:01:25Z")

</div>

Hey Kirupians I've been reading some stuff on neural networks, and I'm now trying to implement it in AS3. One thing thats giving me a hard time, is the way the individuals with the best fitness, has a probability of ge…

---

## [Passing variables - Movie clip & Accordion component](https://forum.kirupa.com/t/passing-variables-movie-clip-accordion-component/307476)

<div class="topic-metadata">

**Author:** [@merinv](https://forum.kirupa.com/u/merinv)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 6:57am UTC](https://forum.kirupa.com/t/passing-variables-movie-clip-accordion-component/307476 "2010-04-04T06:57:01Z")

</div>

I am new to actionscript and flash developing. I am trying to build a Calculator used in health circles to project next year's profit and loss etc. I am using flash cs3 and actionscript2. My flash project is based on a…

---

## [CS4 Tutorials not working](https://forum.kirupa.com/t/cs4-tutorials-not-working/307473)

<div class="topic-metadata">

**Author:** [@luvzlife](https://forum.kirupa.com/u/luvzlife)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 4:17am UTC](https://forum.kirupa.com/t/cs4-tutorials-not-working/307473 "2010-04-04T04:17:20Z")

</div>

I'm a newbie here but I have followed the instructions to the T so many times on the ColorfulCircle and Snowflake tutorials and they never work 100% for me. Maybe I'm doing something wrong but here is what I get. In …

---

## [Accessing stage from non-Document class](https://forum.kirupa.com/t/accessing-stage-from-non-document-class/307472)

<div class="topic-metadata">

**Author:** [@couto607](https://forum.kirupa.com/u/couto607)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:46am UTC](https://forum.kirupa.com/t/accessing-stage-from-non-document-class/307472 "2010-04-04T03:46:59Z")

</div>

How would I got about doing this? I've got 3 classes, the document class(Main.as), the Main Menu Class (TitleScreen.as) and the gameplay class(GameScreen.as). I'm trying to add movement to the GameScreen.as class using e…

---

## [TypeError 1009 & addEventListener](https://forum.kirupa.com/t/typeerror-1009-addeventlistener/307471)

<div class="topic-metadata">

**Author:** [@couto607](https://forum.kirupa.com/u/couto607)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:38am UTC](https://forum.kirupa.com/t/typeerror-1009-addeventlistener/307471 "2010-04-04T03:38:34Z")

</div>

I'm fairly new to Actionscript 3.0, and I'm having some trouble with this error. I'm currently setting up a small Space Shooter game and am stuck at this error. All was working fine until I started to code the movement c…

---

## [Delaying execution of multiple functions](https://forum.kirupa.com/t/delaying-execution-of-multiple-functions/307470)

<div class="topic-metadata">

**Author:** [@dada78](https://forum.kirupa.com/u/dada78)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:28am UTC](https://forum.kirupa.com/t/delaying-execution-of-multiple-functions/307470 "2010-04-04T03:28:19Z")

</div>

Hi, I have 3 functions that I need to execute delayed by x seconds. For instance on my first frame I have: //Panel1Frame1 function panel1End() { panel1.gotoAndPlay("out"); } //Panel2Frame1 function panel2End() { …

---

## [Random Swf with no repeat](https://forum.kirupa.com/t/random-swf-with-no-repeat/307469)

<div class="topic-metadata">

**Author:** [@rsquaredpgh](https://forum.kirupa.com/u/rsquaredpgh)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:16am UTC](https://forum.kirupa.com/t/random-swf-with-no-repeat/307469 "2010-04-04T03:16:56Z")

</div>

In AS 2.0, I have an array of swfs that I'd like to play randomly end to end. With the following code I can make the swfs random without a repeat of the same swf back to back. What I'd like to do is have all the swfs pla…

---

## [How to determine which is the value for xz](https://forum.kirupa.com/t/how-to-determine-which-is-the-value-for-xz/307465)

<div class="topic-metadata">

**Author:** [@Mrki](https://forum.kirupa.com/u/Mrki)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 10:39pm UTC](https://forum.kirupa.com/t/how-to-determine-which-is-the-value-for-xz/307465 "2010-04-03T22:39:10Z")

</div>

I am building the town map for my site and I am using the javascript within the html to move the map on the predefined locations but I don't know how to determine the exact values for the location eg \<select style="m…

---

## [Audio player works but no sound](https://forum.kirupa.com/t/audio-player-works-but-no-sound/307462)

<div class="topic-metadata">

**Author:** [@gpinzino](https://forum.kirupa.com/u/gpinzino)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 8:52pm UTC](https://forum.kirupa.com/t/audio-player-works-but-no-sound/307462 "2010-04-03T20:52:45Z")

</div>

\[FONT=Times New Roman\] I created a simple audio player based on Todd Perkins’ design on Lynda.com. The player is extremely simple. It has only a stop button. It is designed to start automatically on page load and to st…

---

## [\[HELP!\] Swapdepths with an External MC](https://forum.kirupa.com/t/help-swapdepths-with-an-external-mc/307455)

<div class="topic-metadata">

**Author:** [@anticlimacus](https://forum.kirupa.com/u/anticlimacus)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 6:18pm UTC](https://forum.kirupa.com/t/help-swapdepths-with-an-external-mc/307455 "2010-04-03T18:18:46Z")

</div>

I currently have a player mc, and a background mc. The player is surrounded by 4 rectangles that on hit move background mc (therefore creating a scrolling map). background mc is a compilation of smaller mc's. I want to…

---

## [Stretch error when using 3D rotation](https://forum.kirupa.com/t/stretch-error-when-using-3d-rotation/307453)

<div class="topic-metadata">

**Author:** [@asNewb01](https://forum.kirupa.com/u/asNewb01)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 5:42pm UTC](https://forum.kirupa.com/t/stretch-error-when-using-3d-rotation/307453 "2010-04-03T17:42:46Z")

</div>

I have this problem when using "itemsname.rotationY" in as3: In order to get around the blurring problem when using text with this function, I have made a 200% bigger version of what's needed, and afterwards used a 50%…

---

## [Random rotated texture (math question)](https://forum.kirupa.com/t/random-rotated-texture-math-question/307450)

<div class="topic-metadata">

**Author:** [@ShawnJC](https://forum.kirupa.com/u/ShawnJC)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 4:11pm UTC](https://forum.kirupa.com/t/random-rotated-texture-math-question/307450 "2010-04-03T16:11:07Z")

</div>

Ok, let's see if I can explain what I'm trying to do... I have an image I am using for a texture that is 600x800 and a tile clip I would like to randomly apply part of the image to as a texture. The tile clip is 100x40. …

---

## [Problem with ranking users](https://forum.kirupa.com/t/problem-with-ranking-users/307449)

<div class="topic-metadata">

**Author:** [@keithjarrett](https://forum.kirupa.com/u/keithjarrett)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 4:05pm UTC](https://forum.kirupa.com/t/problem-with-ranking-users/307449 "2010-04-03T16:05:30Z")

</div>

Hi, I want to rank my users for a high score. I tried putting this query in MySQL: $sql = 'SELECT \* FROM users ORDER BY points DESC, username ASC LIMIT 20'; but got this reply: #1064 - You have an error in your …

---

## [Need a flash to jpg script!](https://forum.kirupa.com/t/need-a-flash-to-jpg-script/307448)

<div class="topic-metadata">

**Author:** [@Mindless](https://forum.kirupa.com/u/Mindless)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 3:49pm UTC](https://forum.kirupa.com/t/need-a-flash-to-jpg-script/307448 "2010-04-03T15:49:06Z")

</div>

I know there are many of these around, i have tested a few but most of them dont work. Can somebody link me to a good flash to jpg script where it outputs the image as good quality. Basically im going to eventually…

---

## [ALpha problem](https://forum.kirupa.com/t/alpha-problem/307445)

<div class="topic-metadata">

**Author:** [@tic](https://forum.kirupa.com/u/tic)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 12:25pm UTC](https://forum.kirupa.com/t/alpha-problem/307445 "2010-04-03T12:25:19Z")

</div>

Hi, I have a textfield with a alpha of 0.7 in my app. So you can see the background behind it. Now this works fine when I test it and everything. But when i try to run my app trough the .swf file somehow everything in…

---

## [Bookmark and Share! Edit/Delete Message You are subscribed to this thread AS3 - Drag](https://forum.kirupa.com/t/bookmark-and-share-edit-delete-message-you-are-subscribed-to-this-thread-as3-drag/307442)

<div class="topic-metadata">

**Author:** [@bhf](https://forum.kirupa.com/u/bhf)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 11:05am UTC](https://forum.kirupa.com/t/bookmark-and-share-edit-delete-message-you-are-subscribed-to-this-thread-as3-drag/307442 "2010-04-03T11:05:51Z")

</div>

wrong title...sorry

---

## [Invoking AS3 class from MXML](https://forum.kirupa.com/t/invoking-as3-class-from-mxml/307441)

<div class="topic-metadata">

**Author:** [@Inco](https://forum.kirupa.com/u/Inco)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 10:48am UTC](https://forum.kirupa.com/t/invoking-as3-class-from-mxml/307441 "2010-04-03T10:48:38Z")

</div>

Hi, Can anyone explain why the following code doesn't work and how to fix it? (it produces no output on the stage). I'm using Flex SDK & FlashDevelop. Cheers. MXML: \<?xml version="1.0" encoding="utf-8"?\> \<mx:Appl…

---

## [Hot tub time machine \[2010\] free movie download hq](https://forum.kirupa.com/t/hot-tub-time-machine-2010-free-movie-download-hq/307431)

<div class="topic-metadata">

**Author:** [@pwilliams160](https://forum.kirupa.com/u/pwilliams160)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 4:33am UTC](https://forum.kirupa.com/t/hot-tub-time-machine-2010-free-movie-download-hq/307431 "2010-04-03T04:33:57Z")

</div>

\[color=#008000\]Please note:All our Movies are in High Definition Crisp quality.\[/color\] If it were not so, we’d rather not offer such a service. Our movies are well catered for, captured and maintained by a team of top l…

---

## [How to display images in center in xml slide show](https://forum.kirupa.com/t/how-to-display-images-in-center-in-xml-slide-show/307429)

<div class="topic-metadata">

**Author:** [@access\_ideas](https://forum.kirupa.com/u/access_ideas)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 4:03am UTC](https://forum.kirupa.com/t/how-to-display-images-in-center-in-xml-slide-show/307429 "2010-04-03T04:03:16Z")

</div>

I have created a flash animation using tutorial on kirupa.com http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm The problem I am facing is my images are of different size, so how to display images in cent…

---

## [Help: How to ignore mouse events from children](https://forum.kirupa.com/t/help-how-to-ignore-mouse-events-from-children/307428)

<div class="topic-metadata">

**Author:** [@iakiak](https://forum.kirupa.com/u/iakiak)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 2:18am UTC](https://forum.kirupa.com/t/help-how-to-ignore-mouse-events-from-children/307428 "2010-04-03T02:18:53Z")

</div>

Hi, I am having a problem with mouse events which I would appreciate any help with: In my game there is a podium which at some point can have people on it which are added as children. There is a mouseover event listene…

---

## [Does PHP autoloading significantly affect performance of an application?](https://forum.kirupa.com/t/does-php-autoloading-significantly-affect-performance-of-an-application/307427)

<div class="topic-metadata">

**Author:** [@lorren\_biffin](https://forum.kirupa.com/u/lorren_biffin)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 2:17am UTC](https://forum.kirupa.com/t/does-php-autoloading-significantly-affect-performance-of-an-application/307427 "2010-04-03T02:17:46Z")

</div>

I'm specifically interested in PHP 5.3.2.. Articles I've read are back and forth on the subject. Some say it's faster and more efficient, others say it should be avoided like the plague for reasons of speed and memory. A…

---

## [Stage mouse\_out function error](https://forum.kirupa.com/t/stage-mouse-out-function-error/307426)

<div class="topic-metadata">

**Author:** [@jameslittle2104](https://forum.kirupa.com/u/jameslittle2104)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 2:09am UTC](https://forum.kirupa.com/t/stage-mouse-out-function-error/307426 "2010-04-03T02:09:42Z")

</div>

Hi guys. I've added a MOUSE\_OUT event listener to the stage on a Flash app. The problem is that the function runs on mouse\_out of the buttons on the stage, even if the mouse is still on the stage. Code... //\_\_\_\_\_\_\_…

---

## [.fl transitions](https://forum.kirupa.com/t/fl-transitions/307420)

<div class="topic-metadata">

**Author:** [@dekock](https://forum.kirupa.com/u/dekock)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 12:13am UTC](https://forum.kirupa.com/t/fl-transitions/307420 "2010-04-03T00:13:01Z")

</div>

Hello! I have animation I’ve put together and it is linking to an external .jpg image - I’m new to the .fl transitions so I was hoping there’s a way to add a .fl transition fade to ‘fade’ in the external jpg in the .fla…

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

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