# programming

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

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

**Page:** 388

---

## [What to use ( variable?)](https://forum.kirupa.com/t/what-to-use-variable/315693)

<div class="topic-metadata">

**Author:** [@xelaxam](https://forum.kirupa.com/u/xelaxam)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 4:55am UTC](https://forum.kirupa.com/t/what-to-use-variable/315693 "2010-11-02T04:55:32Z")

</div>

I maked a gallery for a tutorial on the web. Here's the result. http://www.pingouincreation.com/plabelle/flash/pcarousel.swf What I want to do is simple. When you click on a thumbnail the big picture apperar but i nee…

---

## [addEventListener to all in Array as3](https://forum.kirupa.com/t/addeventlistener-to-all-in-array-as3/315691)

<div class="topic-metadata">

**Author:** [@NekoAthena](https://forum.kirupa.com/u/NekoAthena)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 4:13am UTC](https://forum.kirupa.com/t/addeventlistener-to-all-in-array-as3/315691 "2010-11-02T04:13:10Z")

</div>

okay, i am trying to use arrays to add and remove event listeners to some drag and drop items, and keep getting the Error #1009: Cannot access a property or method of a null object reference. here's what i got: var …

---

## [Table issues](https://forum.kirupa.com/t/table-issues/315687)

<div class="topic-metadata">

**Author:** [@GOLDfish\_74](https://forum.kirupa.com/u/GOLDfish_74)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 2:37am UTC](https://forum.kirupa.com/t/table-issues/315687 "2010-11-02T02:37:25Z")

</div>

I have recently changed this page from using a floating div on the right to a table so the page's size would adjust dependent on the amount of context in the div. But alas for some reason it still appears to be floating …

---

## [gotoAndPlay with movie clips](https://forum.kirupa.com/t/gotoandplay-with-movie-clips/315686)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [November 2, 2010, 1:41am UTC](https://forum.kirupa.com/t/gotoandplay-with-movie-clips/315686 "2010-11-02T01:41:37Z")

</div>

All, I have some sendAndLoad code which works good. Instead of outputting something to a text box I'd like to go to a different place in my movie. I've got quite a few embedded movie clips and the path is the following: …

---

## [Issue with gotoAndStop and listener response](https://forum.kirupa.com/t/issue-with-gotoandstop-and-listener-response/315685)

<div class="topic-metadata">

**Author:** [@danthebeliever](https://forum.kirupa.com/u/danthebeliever)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 10:56pm UTC](https://forum.kirupa.com/t/issue-with-gotoandstop-and-listener-response/315685 "2010-11-01T22:56:56Z")

</div>

Hello, I am currently writing a little fishing game just for fun. I made a menu screen and now my listeners don't respond after i gotoAndStop() (unless I click, which is pointless). Here's my code: This is frame 1 …

---

## [Javascript - storing multiple strings into a variable](https://forum.kirupa.com/t/javascript-storing-multiple-strings-into-a-variable/315683)

<div class="topic-metadata">

**Author:** [@Andy\_Smith](https://forum.kirupa.com/u/Andy_Smith)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 9:59pm UTC](https://forum.kirupa.com/t/javascript-storing-multiple-strings-into-a-variable/315683 "2010-11-01T21:59:47Z")

</div>

Hey, I was just wondering how I would go about storing multiple strings (from an output alert box) into a single variable? Much appreciated Andy

---

## [UILoader](https://forum.kirupa.com/t/uiloader/315682)

<div class="topic-metadata">

**Author:** [@mpr](https://forum.kirupa.com/u/mpr)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 9:27pm UTC](https://forum.kirupa.com/t/uiloader/315682 "2010-11-01T21:27:56Z")

</div>

I dropped a UILoader onto a stage so an external .swf file will play within it (let's call it "external.swf"). I can see "external.swf" and all in my movie, but it doesn't maintain its original width and height; it cover…

---

## [How can i waving this flag without clicking on it?](https://forum.kirupa.com/t/how-can-i-waving-this-flag-without-clicking-on-it/315681)

<div class="topic-metadata">

**Author:** [@gayandproud](https://forum.kirupa.com/u/gayandproud)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 7:45pm UTC](https://forum.kirupa.com/t/how-can-i-waving-this-flag-without-clicking-on-it/315681 "2010-11-01T19:45:16Z")

</div>

Hello, this project is created in FlashDevelop. It is a waving a flag by clicking on it,but, how I can make the flag flown directly when i execute the swf?. Here's the code: package { import com.innerdrivestudi…

---

## [How to make sound loop in as3](https://forum.kirupa.com/t/how-to-make-sound-loop-in-as3/315680)

<div class="topic-metadata">

**Author:** [@rnw](https://forum.kirupa.com/u/rnw)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 6:38pm UTC](https://forum.kirupa.com/t/how-to-make-sound-loop-in-as3/315680 "2010-11-01T18:38:49Z")

</div>

Hello, I created some music background for a website, but the problem is that when it finishes playing, the sound stops. I want it to start over when it's complete. I tried a few things I found on the internet, but it…

---

## [What would check to see what frame I'm on?](https://forum.kirupa.com/t/what-would-check-to-see-what-frame-im-on/315679)

<div class="topic-metadata">

**Author:** [@Thrillhou](https://forum.kirupa.com/u/Thrillhou)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 6:29pm UTC](https://forum.kirupa.com/t/what-would-check-to-see-what-frame-im-on/315679 "2010-11-01T18:29:51Z")

</div>

I have a problem with a header I've been working on. It's four frames, each loading an external swf into a movieclip, that can be navigated through back and forth using arrow buttons on either side, or autoloads every ei…

---

## [Connect to MySQL using php](https://forum.kirupa.com/t/connect-to-mysql-using-php/315675)

<div class="topic-metadata">

**Author:** [@freshy](https://forum.kirupa.com/u/freshy)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 4:12pm UTC](https://forum.kirupa.com/t/connect-to-mysql-using-php/315675 "2010-11-01T16:12:55Z")

</div>

I have the following php code: \<?php $host="localhost"; $db="kirupa"; $user=""; $pass=""; $connect=mysql\_connect($host,$user,$pass) or die (mysql\_error()); mysql\_select\_db($db,$connect); ?\> I type in the browser : htt…

---

## [Getting a pre-drawn shape into AS3](https://forum.kirupa.com/t/getting-a-pre-drawn-shape-into-as3/315674)

<div class="topic-metadata">

**Author:** [@SenseiTG](https://forum.kirupa.com/u/SenseiTG)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 4:01pm UTC](https://forum.kirupa.com/t/getting-a-pre-drawn-shape-into-as3/315674 "2010-11-01T16:01:05Z")

</div>

Hey all! I've got a little problem that I've not really found a good solution for. I have a symbol containing a moderately complex shape (a few fills and bunch of curves). Instead of animating this symbol I want to…

---

## [Random number between 1 & 16?](https://forum.kirupa.com/t/random-number-between-1-16/315673)

<div class="topic-metadata">

**Author:** [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 3:32pm UTC](https://forum.kirupa.com/t/random-number-between-1-16/315673 "2010-11-01T15:32:39Z")

</div>

Hello all. I need to create a variable that holds a random number between 1 & 16. Any idea how I can do this? This is the way the variable looks right now: var randomTurkey:Number = Math.floor(Math.random()\*100);

---

## [Bounding circle](https://forum.kirupa.com/t/bounding-circle/315671)

<div class="topic-metadata">

**Author:** [@civictjai](https://forum.kirupa.com/u/civictjai)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 2:34pm UTC](https://forum.kirupa.com/t/bounding-circle/315671 "2010-11-01T14:34:35Z")

</div>

Hi, Is it possible to make a bounding circle instead of a bounding box? The objects should bounce INSIDE the circle. I have now a bounding box outside the circle, but the objects exceeds the circle at the corners. …

---

## [sendAndLoad - Response issues!](https://forum.kirupa.com/t/sendandload-response-issues/315670)

<div class="topic-metadata">

**Author:** [@jnewbie](https://forum.kirupa.com/u/jnewbie)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 2:03pm UTC](https://forum.kirupa.com/t/sendandload-response-issues/315670 "2010-11-01T14:03:23Z")

</div>

Hey - really hoping someone can help me here after a few hours trawling several forums and posts.. I am stumped. I have a fairly simple form built in as2 using an input text box that users can enter text, edit and save…

---

## [Using threshold() to change colours in a bitmap](https://forum.kirupa.com/t/using-threshold-to-change-colours-in-a-bitmap/315667)

<div class="topic-metadata">

**Author:** [@aniac](https://forum.kirupa.com/u/aniac)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 12:33pm UTC](https://forum.kirupa.com/t/using-threshold-to-change-colours-in-a-bitmap/315667 "2010-11-01T12:33:15Z")

</div>

Hi guys, I'm trying to use threshold to change the colours in a bitmap image according to a lookup table. I've tried the following line of code to convert each colour to another, but without any luck: bmd.threshol…

---

## [Strange IE problem with flash video player](https://forum.kirupa.com/t/strange-ie-problem-with-flash-video-player/315664)

<div class="topic-metadata">

**Author:** [@rai\_kane3](https://forum.kirupa.com/u/rai_kane3)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 12:19pm UTC](https://forum.kirupa.com/t/strange-ie-problem-with-flash-video-player/315664 "2010-11-01T12:19:11Z")

</div>

I have built a flash video player everything very very straight forward however in IE if you refresh the page or navigate away and return the video player is smaller with no controls and like its just streaming the flv. …

---

## [Multiple SWF's in AS3](https://forum.kirupa.com/t/multiple-swfs-in-as3/315661)

<div class="topic-metadata">

**Author:** [@Sander\_666](https://forum.kirupa.com/u/Sander_666)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 8:05am UTC](https://forum.kirupa.com/t/multiple-swfs-in-as3/315661 "2010-11-01T08:05:01Z")

</div>

Hey everyone, this is my first post here so please be gentle :d: Thing is... I've got four swf containing AS3, I want them to display in a row on full-screen mode. I can do this in AS2 bij loading them (other swf's wit…

---

## [Rollercoaster game](https://forum.kirupa.com/t/rollercoaster-game/315659)

<div class="topic-metadata">

**Author:** [@josedaniel](https://forum.kirupa.com/u/josedaniel)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 7:24am UTC](https://forum.kirupa.com/t/rollercoaster-game/315659 "2010-11-01T07:24:47Z")

</div>

Hi, I would like to know what is the easier way to make a Rollercoaster game, for example use physics engine, use motion guide programmatically, etc. Any ideas, pointers, suggestions... Thanks in advance!

---

## [Button Conditional?](https://forum.kirupa.com/t/button-conditional/315656)

<div class="topic-metadata">

**Author:** [@RHayabusa](https://forum.kirupa.com/u/RHayabusa)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 4:44am UTC](https://forum.kirupa.com/t/button-conditional/315656 "2010-11-01T04:44:45Z")

</div>

Hey guys/gals I was wondering if you could please help me with an AS3 problem? I have a button that currently when pressed will show an instance object on screen, however what I would like for it to do WHEN PRESSED AGAIN…

---

## [Image Grid Gallery XML](https://forum.kirupa.com/t/image-grid-gallery-xml/315652)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [November 1, 2010, 1:44am UTC](https://forum.kirupa.com/t/image-grid-gallery-xml/315652 "2010-11-01T01:44:43Z")

</div>

All, Does anyone know of any good free AS2 XML image grid galleries? I did look at this site and found this one: http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm This one would work great but I'd lik…

---

## [Flash 3D API (Molehill)](https://forum.kirupa.com/t/flash-3d-api-molehill/315650)

<div class="topic-metadata">

**Author:** [@rosyTown](https://forum.kirupa.com/u/rosyTown)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 11:32pm UTC](https://forum.kirupa.com/t/flash-3d-api-molehill/315650 "2010-10-31T23:32:04Z")

</div>

Not sure if anyone has seen this yet. http://tv.adobe.com/watch/adc-presents/molehill-3d-apis/ 1920x1080 @ 60fps == Really exciting stuff! More sweet demos here: http://www.youtube.com/user/alternativaplatform#p/…

---

## [Annoying handling of function pointers in AS3](https://forum.kirupa.com/t/annoying-handling-of-function-pointers-in-as3/315649)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 11:17pm UTC](https://forum.kirupa.com/t/annoying-handling-of-function-pointers-in-as3/315649 "2010-10-31T23:17:50Z")

</div>

I'm not sure if you've noticed this, probably not, but function pointers in AS3 run much, much slower than calling the function directly. It's a recent finding, and an annoying one. I use function pointers a lot. An …

---

## [AS2 - Drag and rotate problem!](https://forum.kirupa.com/t/as2-drag-and-rotate-problem/315648)

<div class="topic-metadata">

**Author:** [@eriklindahl](https://forum.kirupa.com/u/eriklindahl)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 10:57pm UTC](https://forum.kirupa.com/t/as2-drag-and-rotate-problem/315648 "2010-10-31T22:57:42Z")

</div>

Hi, I have a code snippet that I got from the net, for dragging and rotating a circle. I changed it so that you can click anywhere on the border of the circle, and drag to rotate it. It works great except one thing; - i…

---

## [XML Feed From Another Server Calendar](https://forum.kirupa.com/t/xml-feed-from-another-server-calendar/315646)

<div class="topic-metadata">

**Author:** [@svimp](https://forum.kirupa.com/u/svimp)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 7:42pm UTC](https://forum.kirupa.com/t/xml-feed-from-another-server-calendar/315646 "2010-10-31T19:42:51Z")

</div>

Hello all Can you tell me what are the basic steps to make a xml calendar like this from second screen on the right? all I know is the xml is on a diferent server. Thanks.

---

## [Convert chlid nodes to var](https://forum.kirupa.com/t/convert-chlid-nodes-to-var/315645)

<div class="topic-metadata">

**Author:** [@sebswed](https://forum.kirupa.com/u/sebswed)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 7:29pm UTC](https://forum.kirupa.com/t/convert-chlid-nodes-to-var/315645 "2010-10-31T19:29:42Z")

</div>

Hi, I tried the last 3 hours to convert child nodes to variables. I followed the tutorial on http://www.kirupa.com/developer/flashcs3/using\_xml\_as3\_pg1.htm I use the following (working) code: var xmlLoader:URLLo…

---

## [Variabel value doesn't get stored](https://forum.kirupa.com/t/variabel-value-doesnt-get-stored/315644)

<div class="topic-metadata">

**Author:** [@tomii01](https://forum.kirupa.com/u/tomii01)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 7:16pm UTC](https://forum.kirupa.com/t/variabel-value-doesnt-get-stored/315644 "2010-10-31T19:16:42Z")

</div>

Hi! I'm making a small animation with clickable elements for a friend and I'm having some problems. The "inv" variable is set to 0 from the beginning, and when it changes to 1, a movieclip named "key" is supposed to …

---

## [CSS dropdown menu](https://forum.kirupa.com/t/css-dropdown-menu/315642)

<div class="topic-metadata">

**Author:** [@gajulasidhu](https://forum.kirupa.com/u/gajulasidhu)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 6:20pm UTC](https://forum.kirupa.com/t/css-dropdown-menu/315642 "2010-10-31T18:20:29Z")

</div>

HI All, I have problem with css dropdwon menu, when hover the tab how can i remove black like See attached image Here is my css and HTML code \<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/…

---

## [Google Map AS3 error. 1046](https://forum.kirupa.com/t/google-map-as3-error-1046/315641)

<div class="topic-metadata">

**Author:** [@Bark\_Off](https://forum.kirupa.com/u/Bark_Off)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 4:32pm UTC](https://forum.kirupa.com/t/google-map-as3-error-1046/315641 "2010-10-31T16:32:20Z")

</div>

http://www.kirupa.com/developer/as3/flash\_as3\_google\_maps\_api\_pg2.htm 1046: Type was not found or was not a compile-time constant: DirectionsEvent. I highlighted the line with error in RED. The code is as follows: import…

---

## [Some Question About Maze hitTest](https://forum.kirupa.com/t/some-question-about-maze-hittest/315640)

<div class="topic-metadata">

**Author:** [@knight1989](https://forum.kirupa.com/u/knight1989)\
**Replies:** 0\
**Last updated:** [October 31, 2010, 11:03am UTC](https://forum.kirupa.com/t/some-question-about-maze-hittest/315640 "2010-10-31T11:03:17Z")

</div>

Solved

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

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