# programming

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

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

**Page:** 723

---

## [Connect 4 Game Help](https://forum.kirupa.com/t/connect-4-game-help/294562)

<div class="topic-metadata">

**Author:** [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 6:45pm UTC](https://forum.kirupa.com/t/connect-4-game-help/294562 "2009-08-16T18:45:48Z")

</div>

hello. im making a connect 4 game but cant seem to figure out a way that i can make a block that is a special block that with match to any other kind of block. currently i use a if statment to check if blocks 'var myTy…

---

## [How do I play to a certain frame, stop then gotoandstop](https://forum.kirupa.com/t/how-do-i-play-to-a-certain-frame-stop-then-gotoandstop/294559)

<div class="topic-metadata">

**Author:** [@flashman2](https://forum.kirupa.com/u/flashman2)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 6:08pm UTC](https://forum.kirupa.com/t/how-do-i-play-to-a-certain-frame-stop-then-gotoandstop/294559 "2009-08-16T18:08:13Z")

</div>

hello it's an easy problem i can't seem to solve, i'm using AS.2.0 i need to gotoAndPlay then gotoFrame and stop at frame EXAMPLE: gotoAndplay from frame 2 then when it reaches frame 10, i want it to go to the Pare…

---

## [Please Help a newbie (about loading images in to movieclip array)](https://forum.kirupa.com/t/please-help-a-newbie-about-loading-images-in-to-movieclip-array/294557)

<div class="topic-metadata">

**Author:** [@bahy](https://forum.kirupa.com/u/bahy)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 4:11pm UTC](https://forum.kirupa.com/t/please-help-a-newbie-about-loading-images-in-to-movieclip-array/294557 "2009-08-16T16:11:24Z")

</div>

This is a project for studying, and I am close to the end but now i am having no solution for doing this. I read the image gallery from a xml file. then add the thumbnail images of the gallery into a moviclips I call…

---

## [Instance name of dynamically added MCs?](https://forum.kirupa.com/t/instance-name-of-dynamically-added-mcs/294556)

<div class="topic-metadata">

**Author:** [@fjckls](https://forum.kirupa.com/u/fjckls)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 2:46pm UTC](https://forum.kirupa.com/t/instance-name-of-dynamically-added-mcs/294556 "2009-08-16T14:46:22Z")

</div>

here is my code: var sp:Sprite = new Sprite(); sp.x = sp.y = 40; addChild(sp); for (var i:int = 0; i \< 5; i++){ var btn:MovieClip = new Button(); btn.name = "btn" + i; btn.x = 0; btn.y = i\* (btn.height + 3); btn.…

---

## [Flex for ActionScript 3.0 problem](https://forum.kirupa.com/t/flex-for-actionscript-3-0-problem/294550)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 11:38am UTC](https://forum.kirupa.com/t/flex-for-actionscript-3-0-problem/294550 "2009-08-16T11:38:24Z")

</div>

Sorry for this stupid question but I have a little problem I have installed yesterday Flex Builder 3 trial and when working in AS project, I couldn't use such simple import as flash.geom.Matrix3D (Matrix is in there), do…

---

## [addEventListener to what exactly?](https://forum.kirupa.com/t/addeventlistener-to-what-exactly/294547)

<div class="topic-metadata">

**Author:** [@lope](https://forum.kirupa.com/u/lope)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 9:53am UTC](https://forum.kirupa.com/t/addeventlistener-to-what-exactly/294547 "2009-08-16T09:53:38Z")

</div>

i want to affect childMC movieClip, but any of these will give me the same rezults, or at least i think \[smiley\] addEventListener(Event.ENTER\_FRAME, onEFrame); stage.addEventListener(Event.ENTER\_FRAME, onEFrame); paren…

---

## [Firefox blocking URLRequest](https://forum.kirupa.com/t/firefox-blocking-urlrequest/294545)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 7:47am UTC](https://forum.kirupa.com/t/firefox-blocking-urlrequest/294545 "2009-08-16T07:47:26Z")

</div>

I've created a client that communicates with a server via XML-RPC through a network using the URLRequest object to contact the server. When activating the client through flashplayer, explorer or chrome, the xml-rpc me…

---

## [Deep Zoom Compser](https://forum.kirupa.com/t/deep-zoom-compser/294544)

<div class="topic-metadata">

**Author:** [@amodi](https://forum.kirupa.com/u/amodi)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 6:32am UTC](https://forum.kirupa.com/t/deep-zoom-compser/294544 "2009-08-16T06:32:43Z")

</div>

\*\*Hello Friends, \*\* I want to use internal links in deep zoom composer, i did what ever said in the following link: http://blog.sunnypixels.com/?p=226 I exported(in deep zoom) as Output type …

---

## [Advice about working on Open Source files](https://forum.kirupa.com/t/advice-about-working-on-open-source-files/294543)

<div class="topic-metadata">

**Author:** [@gloopy](https://forum.kirupa.com/u/gloopy)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 6:24am UTC](https://forum.kirupa.com/t/advice-about-working-on-open-source-files/294543 "2009-08-16T06:24:48Z")

</div>

Sorry if this post is in the wrong forum. I'm trying to learn more about flash, and have found a couple of useful sites. However, I'm having trouble working out how to use their source files, and wondered if anyone h…

---

## [Help on 3D Walkthrough](https://forum.kirupa.com/t/help-on-3d-walkthrough/294542)

<div class="topic-metadata">

**Author:** [@edbtzy](https://forum.kirupa.com/u/edbtzy)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 2:45am UTC](https://forum.kirupa.com/t/help-on-3d-walkthrough/294542 "2009-08-16T02:45:38Z")

</div>

Im not NEW to flash but i know what im doing... I am trying to create a 3D walkthrough (like a virtual walk through a house) using FLASH. I have multiple pictures that i inserted into the library which will be used for t…

---

## [Loading a pic into a movieclip](https://forum.kirupa.com/t/loading-a-pic-into-a-movieclip/294539)

<div class="topic-metadata">

**Author:** [@Joselito31](https://forum.kirupa.com/u/Joselito31)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 12:30am UTC](https://forum.kirupa.com/t/loading-a-pic-into-a-movieclip/294539 "2009-08-16T00:30:09Z")

</div>

Hi there, I need to load a image into a movieclip that occupies a certain width and height (it' s a resizable movieclip). How do achieve it? Thanks...

---

## [Crashes/errors/instability](https://forum.kirupa.com/t/crashes-errors-instability/294537)

<div class="topic-metadata">

**Author:** [@General\_Tso](https://forum.kirupa.com/u/General_Tso)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 12:18am UTC](https://forum.kirupa.com/t/crashes-errors-instability/294537 "2009-08-16T00:18:14Z")

</div>

I'm pretty new to Flash. I have slowly built up an .fla file to its current size of 44MB. It is in AS3 (CS4) and has numerous jpegs imported into it with animated masks over each. I am now experiencing multiple issues …

---

## [OnClip Event to timeline as](https://forum.kirupa.com/t/onclip-event-to-timeline-as/294536)

<div class="topic-metadata">

**Author:** [@firewheel](https://forum.kirupa.com/u/firewheel)\
**Replies:** 0\
**Last updated:** [August 16, 2009, 12:13am UTC](https://forum.kirupa.com/t/onclip-event-to-timeline-as/294536 "2009-08-16T00:13:03Z")

</div>

I'm trying to have an animation occur on a timeline and not on Enter frame, so instead of it doing a continuous loop it just does the animation twice then stops. Currently this code is on the movie clip itself and I want…

---

## [Movieclips visible/invisible](https://forum.kirupa.com/t/movieclips-visible-invisible/294533)

<div class="topic-metadata">

**Author:** [@Centifolia](https://forum.kirupa.com/u/Centifolia)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 9:22pm UTC](https://forum.kirupa.com/t/movieclips-visible-invisible/294533 "2009-08-15T21:22:27Z")

</div>

HI - I'm pretty new to Flash and I could need some help. Here is what I want to do. I have a hand animation counting from 1-5. Next to each finger appears a word which acts as a button. As soon as I click on a button ano…

---

## [ComboBox prevents browser scrolling](https://forum.kirupa.com/t/combobox-prevents-browser-scrolling/294532)

<div class="topic-metadata">

**Author:** [@tsclan](https://forum.kirupa.com/u/tsclan)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 9:16pm UTC](https://forum.kirupa.com/t/combobox-prevents-browser-scrolling/294532 "2009-08-15T21:16:24Z")

</div>

Hi, I have noticed that whenever I include a combo box within my Flash project I can no longer use my mouse wheel to scroll the page when my mouse cursor is within the Flash. At the moment this only happens in Firefox.…

---

## [Buttons in Mc Not working](https://forum.kirupa.com/t/buttons-in-mc-not-working/294529)

<div class="topic-metadata">

**Author:** [@ThatsSavage](https://forum.kirupa.com/u/ThatsSavage)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 7:14pm UTC](https://forum.kirupa.com/t/buttons-in-mc-not-working/294529 "2009-08-15T19:14:16Z")

</div>

K so i started this flash site and made buttons that open little sliders underneath them that load subcategory's. the problem is i cant get the buttons on the little slider to load a external swf file in a loader on my f…

---

## [Ghostbusters engine test](https://forum.kirupa.com/t/ghostbusters-engine-test/294525)

<div class="topic-metadata">

**Author:** [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 5:06pm UTC](https://forum.kirupa.com/t/ghostbusters-engine-test/294525 "2009-08-15T17:06:48Z")

</div>

Playing the 360 game recently inspired me to emulate the proton stream they've created, because it looks excellent, I really like how they've done it. My version is 2D, but I wanted the overall look and movement to be …

---

## [Passing Variable from Root Timeline into MC](https://forum.kirupa.com/t/passing-variable-from-root-timeline-into-mc/294524)

<div class="topic-metadata">

**Author:** [@jxmckenzie](https://forum.kirupa.com/u/jxmckenzie)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 3:44pm UTC](https://forum.kirupa.com/t/passing-variable-from-root-timeline-into-mc/294524 "2009-08-15T15:44:55Z")

</div>

I'm guessing this is pretty simple, I just can't find the solution through my google searches. Bascially I created a variable and gave it a value in the first frame of my main timeline. Now I just want to pass that v…

---

## [THICK line-line intersection](https://forum.kirupa.com/t/thick-line-line-intersection/294520)

<div class="topic-metadata">

**Author:** [@BeerOclock](https://forum.kirupa.com/u/BeerOclock)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 2:06pm UTC](https://forum.kirupa.com/t/thick-line-line-intersection/294520 "2009-08-15T14:06:23Z")

</div>

Finding the intersection point of 2 line segments is easy enough. But now I need to test wether a line with thickness intersects another (non-thick) line. My idea is to actually perform 2 tests, one at the top and b…

---

## [Dynamic text not seen in some users' computers](https://forum.kirupa.com/t/dynamic-text-not-seen-in-some-users-computers/294515)

<div class="topic-metadata">

**Author:** [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 10:55am UTC](https://forum.kirupa.com/t/dynamic-text-not-seen-in-some-users-computers/294515 "2009-08-15T10:55:22Z")

</div>

I ve made this website http://www.nicodesign.dk as part of a college assignement. There is a menu navigation on the bottom of the page (portfolio, events, etc.) built from an external XML file. The fact is I get complain…

---

## [XML and dynamically creating buttons](https://forum.kirupa.com/t/xml-and-dynamically-creating-buttons/294514)

<div class="topic-metadata">

**Author:** [@samm](https://forum.kirupa.com/u/samm)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 10:44am UTC](https://forum.kirupa.com/t/xml-and-dynamically-creating-buttons/294514 "2009-08-15T10:44:09Z")

</div>

First of all, I'm sorry if this has been answered in part or in whole elsewhere - I've been looking and I can't find anything directly related. So I have this loop generating buttons based upon how many entries there …

---

## [Adding text infront of loaded .txt file](https://forum.kirupa.com/t/adding-text-infront-of-loaded-txt-file/294513)

<div class="topic-metadata">

**Author:** [@Bq86](https://forum.kirupa.com/u/Bq86)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 10:26am UTC](https://forum.kirupa.com/t/adding-text-infront-of-loaded-txt-file/294513 "2009-08-15T10:26:40Z")

</div>

Hi, I want to load a txt/dat file into flash - the file looks like this: \<p\>testujemyTRESC\</p\> Now, loading this text by loadText i need it to begin with “n=”. Is it possible to add for example “n=” in front of the t…

---

## [MP3 looping help](https://forum.kirupa.com/t/mp3-looping-help/294511)

<div class="topic-metadata">

**Author:** [@Ravyn](https://forum.kirupa.com/u/Ravyn)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 8:48am UTC](https://forum.kirupa.com/t/mp3-looping-help/294511 "2009-08-15T08:48:15Z")

</div>

I used to have a single MP3 that would continuously loop on my website with the following actionscript: x = new Sound(); x.loadSound("WITHOUT INST.mp3", true); x.onSoundComplete = function() { x.loadSound("WITHOUT…

---

## [Output XHML with PHP](https://forum.kirupa.com/t/output-xhml-with-php/294505)

<div class="topic-metadata">

**Author:** [@jupityjupe](https://forum.kirupa.com/u/jupityjupe)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 5:45am UTC](https://forum.kirupa.com/t/output-xhml-with-php/294505 "2009-08-15T05:45:37Z")

</div>

Hi folks, using the tutorial on this web site I have managed to get most of the script to work but I am stuck with a pair of brackets. Can anyone point out where I am going wrong. Here is my code $query = "SELECT idno…

---

## [Flash 8: Loading swf into swf](https://forum.kirupa.com/t/flash-8-loading-swf-into-swf/294503)

<div class="topic-metadata">

**Author:** [@newtome](https://forum.kirupa.com/u/newtome)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 4:59am UTC](https://forum.kirupa.com/t/flash-8-loading-swf-into-swf/294503 "2009-08-15T04:59:08Z")

</div>

The loading works fine but some of the resulting behavior is curious. level 0 - login.swf level 1 - menu level 2 - transactionA Menu consists of buttons which launch load swf's (transaction screens). If I launch tr…

---

## [Gun rotation according to mouse](https://forum.kirupa.com/t/gun-rotation-according-to-mouse/294502)

<div class="topic-metadata">

**Author:** [@dilpreet](https://forum.kirupa.com/u/dilpreet)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 4:26am UTC](https://forum.kirupa.com/t/gun-rotation-according-to-mouse/294502 "2009-08-15T04:26:47Z")

</div>

Hey I have done the rotation bit, but now i want to limit the rotation but i can't do it this is my code - stage.addEventListener(Event.ENTER\_FRAME, moveArm) function moveArm(e:Event):void { //Grab the angle var a…

---

## [How can I make this calculation in actionscript 3.0](https://forum.kirupa.com/t/how-can-i-make-this-calculation-in-actionscript-3-0/294501)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 3:02am UTC](https://forum.kirupa.com/t/how-can-i-make-this-calculation-in-actionscript-3-0/294501 "2009-08-15T03:02:46Z")

</div>

Hi, I have a question that honestly I cannot figure out without any help. What I want to create is a calculator, which is going to calculate how many times “B” can fit into object “A” and as you can see in the illustr…

---

## [Prototype: call method from another method](https://forum.kirupa.com/t/prototype-call-method-from-another-method/294499)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [August 15, 2009, 1:30am UTC](https://forum.kirupa.com/t/prototype-call-method-from-another-method/294499 "2009-08-15T01:30:15Z")

</div>

I'm using the Prototype JS library to make classes. var myClass = Class.create({ initialize: function() { this.myValue = 5; }, returnHello: function() { return 'hello'; }, explainYourself: f…

---

## [Matrix3D and Vertex3D](https://forum.kirupa.com/t/matrix3d-and-vertex3d/294496)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [August 14, 2009, 11:56pm UTC](https://forum.kirupa.com/t/matrix3d-and-vertex3d/294496 "2009-08-14T23:56:39Z")

</div>

\[FONT=Courier New\]Hi Guys, I have a question about Matrix3D and Vertex3D classes. I want to rotate each of this 3 points around center (0, 0, 0): v1 = \*\*\[COLOR=Blue\]vertex3D\[/COLOR\]\*\*(-100, 0, 0) v2 = \*\*\[C…

---

## [Noob here - Mouse Down](https://forum.kirupa.com/t/noob-here-mouse-down/294490)

<div class="topic-metadata">

**Author:** [@zm15](https://forum.kirupa.com/u/zm15)\
**Replies:** 0\
**Last updated:** [August 14, 2009, 8:23pm UTC](https://forum.kirupa.com/t/noob-here-mouse-down/294490 "2009-08-14T20:23:39Z")

</div>

I am trying to use a "if else" statement, and i am missing something. I want the movieclip to be transparent when the mouse is clicked on it. Here is my code i have: box.stop(); box.buttonMode=true; box.addEventLi…

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

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