# programming

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

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

**Page:** 847

---

## [Pacman source code :)](https://forum.kirupa.com/t/pacman-source-code/286461)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 8:19pm UTC](https://forum.kirupa.com/t/pacman-source-code/286461 "2009-04-15T20:19:49Z")

</div>

Anybody has it ?? :hugegrin::hugegrin::hugegrin:

---

## [Help with code drag an drop](https://forum.kirupa.com/t/help-with-code-drag-an-drop/286460)

<div class="topic-metadata">

**Author:** [@rboyart](https://forum.kirupa.com/u/rboyart)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 7:40pm UTC](https://forum.kirupa.com/t/help-with-code-drag-an-drop/286460 "2009-04-15T19:40:38Z")

</div>

Hello! I'm trying to do a "drag and drop" with an array, but i can only move everything at the same time, and i'll like to move each element of the array separately. this is my code, and i have a movieclip in the lib…

---

## [Complete Newbie here come to blow your mind](https://forum.kirupa.com/t/complete-newbie-here-come-to-blow-your-mind/286459)

<div class="topic-metadata">

**Author:** [@repticon](https://forum.kirupa.com/u/repticon)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 7:35pm UTC](https://forum.kirupa.com/t/complete-newbie-here-come-to-blow-your-mind/286459 "2009-04-15T19:35:01Z")

</div>

Hey all. I am trying to use if and else statements and failing. I am either completely missing their purpose, or just not writing the correct code. Scenario: I have designed a gallery that consists of animation in movi…

---

## [Animated Stopwatch Pie](https://forum.kirupa.com/t/animated-stopwatch-pie/286454)

<div class="topic-metadata">

**Author:** [@whsu](https://forum.kirupa.com/u/whsu)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 6:51pm UTC](https://forum.kirupa.com/t/animated-stopwatch-pie/286454 "2009-04-15T18:51:59Z")

</div>

Hey there, I'm making a stopwatch. The stopwatch works, so now I want to be able to start the stopwatch at any point, then as the second hand sweeps across clockwise, it creates a pie behind it. So say you did a 10 sec…

---

## [Question to getColorBoundsRect](https://forum.kirupa.com/t/question-to-getcolorboundsrect/286453)

<div class="topic-metadata">

**Author:** [@TZP](https://forum.kirupa.com/u/TZP)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 6:28pm UTC](https://forum.kirupa.com/t/question-to-getcolorboundsrect/286453 "2009-04-15T18:28:11Z")

</div>

Good day to you. I´m working with BitmapData.getColorBoundsRect and it works so far fine for me. But what if I want to find more rectangles with the same color? For example: I got a BitmapData with 3 red rectangles. If…

---

## [TileList with MovieClips for cells (Custom Cell Renderer)](https://forum.kirupa.com/t/tilelist-with-movieclips-for-cells-custom-cell-renderer/286452)

<div class="topic-metadata">

**Author:** [@rocking](https://forum.kirupa.com/u/rocking)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 6:05pm UTC](https://forum.kirupa.com/t/tilelist-with-movieclips-for-cells-custom-cell-renderer/286452 "2009-04-15T18:05:16Z")

</div>

I want to add to the stage a MovieClip with a tilelist with cells that are filled with MovieClips. I have tried everything but just can not get the cells to show up. I can only see a dark skin of TopMovie that I have cus…

---

## [Stop Play Button](https://forum.kirupa.com/t/stop-play-button/286451)

<div class="topic-metadata">

**Author:** [@dannywilkins777](https://forum.kirupa.com/u/dannywilkins777)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 6:04pm UTC](https://forum.kirupa.com/t/stop-play-button/286451 "2009-04-15T18:04:52Z")

</div>

Hi there I am going out of my mind. I am trying to get a play/stop function to work in one button. I know how to stop the play head and start it again with two separate buttons but can't do it with one button that togg…

---

## [Flash player crashing on Macs?](https://forum.kirupa.com/t/flash-player-crashing-on-macs/286450)

<div class="topic-metadata">

**Author:** [@test1](https://forum.kirupa.com/u/test1)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 5:28pm UTC](https://forum.kirupa.com/t/flash-player-crashing-on-macs/286450 "2009-04-15T17:28:47Z")

</div>

Recently I've had an issue with one of my swf files causing the flash player to crash both safari and firefox on a mac. As far as I can tell it only effects some versions of the flash 9 player and to make matters worse i…

---

## [Problem in getting data from .net in flash](https://forum.kirupa.com/t/problem-in-getting-data-from-net-in-flash/286446)

<div class="topic-metadata">

**Author:** [@Trupti](https://forum.kirupa.com/u/Trupti)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 3:32pm UTC](https://forum.kirupa.com/t/problem-in-getting-data-from-net-in-flash/286446 "2009-04-15T15:32:41Z")

</div>

I am loading an aspx file to get the string of some url's like this: shopLink1=http://www.herdershop24.de/index.php?cl=details&cnid=1791048&anid=1804358&campaign=book2look^shopLink2=http://www.google.co.in/search?hl=en&…

---

## [\[AS2 / CS4\] iPhone like kinetic navigation w/ physics](https://forum.kirupa.com/t/as2-cs4-iphone-like-kinetic-navigation-w-physics/286445)

<div class="topic-metadata">

**Author:** [@estralow](https://forum.kirupa.com/u/estralow)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 3:28pm UTC](https://forum.kirupa.com/t/as2-cs4-iphone-like-kinetic-navigation-w-physics/286445 "2009-04-15T15:28:27Z")

</div>

I'm looking to build a fairly simple photo gallery. The rub being that I'd like to navigate between photos with a 'click, drag and throw' / click-to-stop sort of kinetic movement w/ physics similar to how one navigates …

---

## [RE: Loading Techniques: Flash 5 & Flash MX written by ilyas usal a.k.a. pom](https://forum.kirupa.com/t/re-loading-techniques-flash-5-flash-mx-written-by-ilyas-usal-a-k-a-pom/286442)

<div class="topic-metadata">

**Author:** [@moonbase2](https://forum.kirupa.com/u/moonbase2)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 3:19pm UTC](https://forum.kirupa.com/t/re-loading-techniques-flash-5-flash-mx-written-by-ilyas-usal-a-k-a-pom/286442 "2009-04-15T15:19:44Z")

</div>

Hi Everyone, I'm having trouble with this tutorial that I found here. I've had no trouble getting this to work on my machine, locally, however even with the same folder structure, once it hits the server, it tanks...…

---

## [Redesign this site](https://forum.kirupa.com/t/redesign-this-site/286441)

<div class="topic-metadata">

**Author:** [@fotilx470](https://forum.kirupa.com/u/fotilx470)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 3:02pm UTC](https://forum.kirupa.com/t/redesign-this-site/286441 "2009-04-15T15:02:14Z")

</div>

Hello I am trying to recreate the following website except using different graphics but with the same navigation elements and the same motion and tweening and animation effects going on in the stage.http://www.leerone.co…

---

## [Applying Filters to an MC with Alpha 0](https://forum.kirupa.com/t/applying-filters-to-an-mc-with-alpha-0/286440)

<div class="topic-metadata">

**Author:** [@tester123](https://forum.kirupa.com/u/tester123)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 2:53pm UTC](https://forum.kirupa.com/t/applying-filters-to-an-mc-with-alpha-0/286440 "2009-04-15T14:53:15Z")

</div>

I'm running into a little bit of an issue, I have an MC that I'm using TweenMax to manipulate filters on. I want to alpha the clip to 0 but have the outerglow remain, almost like a stroke, does anyone have any ideas on h…

---

## [How to remove numbers from a string](https://forum.kirupa.com/t/how-to-remove-numbers-from-a-string/286439)

<div class="topic-metadata">

**Author:** [@FlexWannabe](https://forum.kirupa.com/u/FlexWannabe)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 2:33pm UTC](https://forum.kirupa.com/t/how-to-remove-numbers-from-a-string/286439 "2009-04-15T14:33:46Z")

</div>

I'm trying to replace numbers in a person's name, but cannot seem to get the syntax correct. Can someone help? Below is what I thought would work. var name:String = "BabeRuth27"; var regEx:RegExp = new RegExp("/\[0-9\]/…

---

## [External XML works loaded offline, not loaded online](https://forum.kirupa.com/t/external-xml-works-loaded-offline-not-loaded-online/286437)

<div class="topic-metadata">

**Author:** [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 1:44pm UTC](https://forum.kirupa.com/t/external-xml-works-loaded-offline-not-loaded-online/286437 "2009-04-15T13:44:04Z")

</div>

Can someone tell me what I am doing wrong: var slideNo:Number; slideNo = 0; var xmlLoader:URLLoader = new URLLoader(); xmlLoader.addEventListener(Event.COMPLETE, showXML); xmlLoader.load(new URLRequest("jackpots.xml")…

---

## [CS3 Movie Clip Position on Stage](https://forum.kirupa.com/t/cs3-movie-clip-position-on-stage/286436)

<div class="topic-metadata">

**Author:** [@johnb2](https://forum.kirupa.com/u/johnb2)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 1:42pm UTC](https://forum.kirupa.com/t/cs3-movie-clip-position-on-stage/286436 "2009-04-15T13:42:59Z")

</div>

Hello, I've built a simple XML image viewer in Flash using AS2, fullscreen (noScale). You can view it here - http://www.adamwooden.com/clients/johnbb/imgviewr/ What I'm looking for is help with 2 things. I was lookin…

---

## [How can I do this calculation with actionscript 3.0?](https://forum.kirupa.com/t/how-can-i-do-this-calculation-with-actionscript-3-0/286435)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 1:26pm UTC](https://forum.kirupa.com/t/how-can-i-do-this-calculation-with-actionscript-3-0/286435 "2009-04-15T13:26:29Z")

</div>

\[FONT=Calibri\] Hi, \[/FONT\] \[FONT=Calibri\] How hard would that be to calculate how many time will object “B” fit in object “A” using actionscript 3.0. \[/FONT\] \[FONT=Calibri\] What I want to do is to calculate how…

---

## [FLARToolkit timeline script](https://forum.kirupa.com/t/flartoolkit-timeline-script/286432)

<div class="topic-metadata">

**Author:** [@Dahaka](https://forum.kirupa.com/u/Dahaka)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 12:22pm UTC](https://forum.kirupa.com/t/flartoolkit-timeline-script/286432 "2009-04-15T12:22:07Z")

</div>

Hi all, I'm tying to convert the FLARToolkit class Lee showed in his tutorial for timeline scripting.(i.a. copied the whole damn thing, and put it on a actions layer) So far so good, I cleared out all the class relate…

---

## [Control Delicacy Control](https://forum.kirupa.com/t/control-delicacy-control/286431)

<div class="topic-metadata">

**Author:** [@The\_X](https://forum.kirupa.com/u/The_X)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 12:06pm UTC](https://forum.kirupa.com/t/control-delicacy-control/286431 "2009-04-15T12:06:24Z")

</div>

So, I have a basic Tetris game, which runs quite happily at 15 fps. However, the controls are slightly too sensitive at the moment, as you'll probably see here. Is there anyway way to make the controls less sensitive (sp…

---

## ["new frame label" event?](https://forum.kirupa.com/t/new-frame-label-event/286430)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 12:05pm UTC](https://forum.kirupa.com/t/new-frame-label-event/286430 "2009-04-15T12:05:17Z")

</div>

Is there a way to detect that the playing movieclip's current frame label has changed?

---

## [URL in AS3](https://forum.kirupa.com/t/url-in-as3/286428)

<div class="topic-metadata">

**Author:** [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 10:51am UTC](https://forum.kirupa.com/t/url-in-as3/286428 "2009-04-15T10:51:11Z")

</div>

I am using below code for URL in AS3 but its not running in browser i.e., when I click on the button it is not opening http://www.kirupa.com function gotoPage(event:MouseEvent):void { var targetURL:URLRequest=new U…

---

## [Compiler issue - 1086: Syntax error](https://forum.kirupa.com/t/compiler-issue-1086-syntax-error/286426)

<div class="topic-metadata">

**Author:** [@cardi777](https://forum.kirupa.com/u/cardi777)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 10:41am UTC](https://forum.kirupa.com/t/compiler-issue-1086-syntax-error/286426 "2009-04-15T10:41:35Z")

</div>

When I try to run this code, I get an error /\* EXAMPLE-CHANNELS \*/ var chans = new Array();//\[title,ip:port;stream.nsv,description\] var chans\[0\] = \["Radio #1", "http://s2.viastreaming.net:7130;stream.nsv", "Latest hit…

---

## [Shaving game](https://forum.kirupa.com/t/shaving-game/286420)

<div class="topic-metadata">

**Author:** [@jnsjohansson](https://forum.kirupa.com/u/jnsjohansson)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:24am UTC](https://forum.kirupa.com/t/shaving-game/286420 "2009-04-15T09:24:05Z")

</div>

Hey, I've almost finished making a game where you shave the surface inside the borders. It's a bit slow.. So I was hoping you could suggest which parts are the most demanding ones, for the shave-part i use CopyPixels a…

---

## [Volume Slider Tutorial!](https://forum.kirupa.com/t/volume-slider-tutorial/286419)

<div class="topic-metadata">

**Author:** [@Jimmy\_James](https://forum.kirupa.com/u/Jimmy_James)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:19am UTC](https://forum.kirupa.com/t/volume-slider-tutorial/286419 "2009-04-15T09:19:09Z")

</div>

I followed Kirupa's Volume Slider tutorial and recreated it on to my page and it all works fine, the only thing I would like to change about this is when your press play I want the volume to start at 50% not 0%, understa…

---

## [Event.ENTER\_FRAME skipped to the end](https://forum.kirupa.com/t/event-enter-frame-skipped-to-the-end/286418)

<div class="topic-metadata">

**Author:** [@darnpunk](https://forum.kirupa.com/u/darnpunk)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:15am UTC](https://forum.kirupa.com/t/event-enter-frame-skipped-to-the-end/286418 "2009-04-15T09:15:17Z")

</div>

Hi all, I am facing a problem where I have a listener listening to Event.ENTER\_FRAME: public function showAnimation():void { var character:MovieClip = new Character(); character.setAnimation("jump"…

---

## [Problem converting procedural script to a class file](https://forum.kirupa.com/t/problem-converting-procedural-script-to-a-class-file/286417)

<div class="topic-metadata">

**Author:** [@way2web](https://forum.kirupa.com/u/way2web)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 8:58am UTC](https://forum.kirupa.com/t/problem-converting-procedural-script-to-a-class-file/286417 "2009-04-15T08:58:35Z")

</div>

Hello, I've unsuccessfully tried to convert a procedural script into a class file, there's no (no more ) errors but the desired effect you can see in the original file doesn't work ! I don't see where I've been wrong s…

---

## [Flash 8 AS2 dynamic text scroller with easing](https://forum.kirupa.com/t/flash-8-as2-dynamic-text-scroller-with-easing/286416)

<div class="topic-metadata">

**Author:** [@criszero](https://forum.kirupa.com/u/criszero)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 8:57am UTC](https://forum.kirupa.com/t/flash-8-as2-dynamic-text-scroller-with-easing/286416 "2009-04-15T08:57:00Z")

</div>

Hi all I've looked and looked until I'm blue in the face but I can't find what I need! Can anyone let me know how to add easing to a text pane which loads dynamic text? Claudio's text scroller is great (http://www.kiru…

---

## [Clipping sprites/movie clips against an arbitrary rect](https://forum.kirupa.com/t/clipping-sprites-movie-clips-against-an-arbitrary-rect/286413)

<div class="topic-metadata">

**Author:** [@ZappyAd](https://forum.kirupa.com/u/ZappyAd)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 7:58am UTC](https://forum.kirupa.com/t/clipping-sprites-movie-clips-against-an-arbitrary-rect/286413 "2009-04-15T07:58:14Z")

</div>

I have been having a problem getting sprites to clip nicely against a screen border. As an example I have a stage that is 600x400 and there are lots of sprites moving around inside it. When they go outside the 600x600…

---

## [Button AS3 Help](https://forum.kirupa.com/t/button-as3-help/286412)

<div class="topic-metadata">

**Author:** [@broome](https://forum.kirupa.com/u/broome)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 7:21am UTC](https://forum.kirupa.com/t/button-as3-help/286412 "2009-04-15T07:21:11Z")

</div>

I have an MC "homeBtn" that I'm using as an animated button. The "homeBtn" is made of 2 mirroring MC's named "topMC" and "bottomMC" since they mirror and function the same I will be addressing only the "topMC" Inside "to…

---

## [Pause within a FOR loop](https://forum.kirupa.com/t/pause-within-a-for-loop/286407)

<div class="topic-metadata">

**Author:** [@sarumitai](https://forum.kirupa.com/u/sarumitai)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 4:54am UTC](https://forum.kirupa.com/t/pause-within-a-for-loop/286407 "2009-04-15T04:54:07Z")

</div>

How can I pause within a for loop? Not do some other function or pause the playhead, just: for (i=0;i\<=10;i++) { trace(i); wait for 1 second; trace(i); wait for another second; } I can't make i…

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

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