# programming

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

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

**Page:** 237

---

## [Endless blood - no lag?](https://forum.kirupa.com/t/endless-blood-no-lag/324661)

<div class="topic-metadata">

**Author:** [@masterLaser](https://forum.kirupa.com/u/masterLaser)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 8:28pm UTC](https://forum.kirupa.com/t/endless-blood-no-lag/324661 "2011-09-01T20:28:02Z")

</div>

Hi. Im building a game where i would like the blood stains (when shooting people) to never disapear. Now i just spawn a movieclip/sprite on the map whenever a body is been hit, and just leave the stain there. The probl…

---

## [FlashBuilder - Single .as file without custom editor colors](https://forum.kirupa.com/t/flashbuilder-single-as-file-without-custom-editor-colors/324660)

<div class="topic-metadata">

**Author:** [@SharkTank](https://forum.kirupa.com/u/SharkTank)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 7:53pm UTC](https://forum.kirupa.com/t/flashbuilder-single-as-file-without-custom-editor-colors/324660 "2011-09-01T19:53:08Z")

</div>

The title pretty much says it all. The entire hierarchy obeys the custom editor colors I've set(a dark theme), except for one .as file. It is just plain white on black. Ironically it has kept two of the custom colors, si…

---

## [Require visiting certain frames before moving forward?](https://forum.kirupa.com/t/require-visiting-certain-frames-before-moving-forward/324659)

<div class="topic-metadata">

**Author:** [@lazerbrains](https://forum.kirupa.com/u/lazerbrains)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 7:49pm UTC](https://forum.kirupa.com/t/require-visiting-certain-frames-before-moving-forward/324659 "2011-09-01T19:49:11Z")

</div>

I have a site where I want to restrict the user from moving forward unless they have visited certain pages. So if you visti page 1, 2, & 3, then a button appears that lets you move forward. I have this working using butt…

---

## [AS2 to AS3 help](https://forum.kirupa.com/t/as2-to-as3-help/324658)

<div class="topic-metadata">

**Author:** [@Eterya](https://forum.kirupa.com/u/Eterya)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 7:45pm UTC](https://forum.kirupa.com/t/as2-to-as3-help/324658 "2011-09-01T19:45:43Z")

</div>

Hello. I have a script that I use for menues where a slider moves on mouse over. Example is found here: http://www.eterya.com This is a movie clip using as2. What I need is for this to work in as3. Heres the code…

---

## [How to change the code to work automatically instead of using Play button?](https://forum.kirupa.com/t/how-to-change-the-code-to-work-automatically-instead-of-using-play-button/324657)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 7:44pm UTC](https://forum.kirupa.com/t/how-to-change-the-code-to-work-automatically-instead-of-using-play-button/324657 "2011-09-01T19:44:21Z")

</div>

Hi, The following code draws a square on using Play Button. But I want it to be started drawing automatically without using the Play Button. I got the example code from searching the google. import com.greensock.\*; …

---

## [How to unload an external SWF after 15 seconds?](https://forum.kirupa.com/t/how-to-unload-an-external-swf-after-15-seconds/324656)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 5:43pm UTC](https://forum.kirupa.com/t/how-to-unload-an-external-swf-after-15-seconds/324656 "2011-09-01T17:43:32Z")

</div>

Hi, I am using the following code to load an external SWF. I want to unload it after 15 seconds. How can I unload it? Please help me in this regard. var mySwf1:SWFLoader = new SWFLoader("Clock.swf", {width:200, hei…

---

## [Just a simon game](https://forum.kirupa.com/t/just-a-simon-game/324655)

<div class="topic-metadata">

**Author:** [@Sqvirel](https://forum.kirupa.com/u/Sqvirel)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 4:52pm UTC](https://forum.kirupa.com/t/just-a-simon-game/324655 "2011-09-01T16:52:52Z")

</div>

Hello I tried making a Simon Says game using this tutorial: http://www.webdesign.org/flash-swish/flash-tutorials/simon-game.11082.html IMO it works well but I'd like to spice it up a bit by adding score, score table …

---

## [Extract data from SQL and display as XMl using PHP](https://forum.kirupa.com/t/extract-data-from-sql-and-display-as-xml-using-php/324654)

<div class="topic-metadata">

**Author:** [@billett05](https://forum.kirupa.com/u/billett05)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 4:36pm UTC](https://forum.kirupa.com/t/extract-data-from-sql-and-display-as-xml-using-php/324654 "2011-09-01T16:36:36Z")

</div>

Hi all, I have used the below code: \<?php header("Content-type: text/xml"); $host = "\*\*\*\*"; $user = "\*\*\*\*\*"; $pass = "\*\*\*\*\*"; $database = "\*\*\*\*\*\*"; $linkID = mysql\_connect($host, $user, $pass) or die("Could not c…

---

## [as3 preloader woes](https://forum.kirupa.com/t/as3-preloader-woes/324652)

<div class="topic-metadata">

**Author:** [@fonzio](https://forum.kirupa.com/u/fonzio)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 3:32pm UTC](https://forum.kirupa.com/t/as3-preloader-woes/324652 "2011-09-01T15:32:53Z")

</div>

hi all, and firstly thanks for looking I have started to write a game, the components i have so far are the main menu, help section and contact section i have found a good tutorial loading multiple swf, which i will …

---

## [AS3 Stream Problem](https://forum.kirupa.com/t/as3-stream-problem/324651)

<div class="topic-metadata">

**Author:** [@magamuga](https://forum.kirupa.com/u/magamuga)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 2:15pm UTC](https://forum.kirupa.com/t/as3-stream-problem/324651 "2011-09-01T14:15:34Z")

</div>

Hi everybody, I have a video player that doesnt have "seek from unloaded time" functionality. I want to add it now, but i am having headaches. Please help \[smile\] I sipmly load video like this; stream.play("vidurl.f…

---

## [Urgent - TFL TEXT in Loaded SWF, BUG?](https://forum.kirupa.com/t/urgent-tfl-text-in-loaded-swf-bug/324649)

<div class="topic-metadata">

**Author:** [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 11:31am UTC](https://forum.kirupa.com/t/urgent-tfl-text-in-loaded-swf-bug/324649 "2011-09-01T11:31:12Z")

</div>

Hi all, After spending 7 hours pulling my hair out trying to figure out why I can't control a loaded external SWF, I've worked out if the external SWF has TFL text boxes in it, I can't control the timeline, if I switch…

---

## [Question re: Random Movement in AS3 Tutorial](https://forum.kirupa.com/t/question-re-random-movement-in-as3-tutorial/324648)

<div class="topic-metadata">

**Author:** [@kubik](https://forum.kirupa.com/u/kubik)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 10:30am UTC](https://forum.kirupa.com/t/question-re-random-movement-in-as3-tutorial/324648 "2011-09-01T10:30:52Z")

</div>

Getting back into Flash development after a prolonged absence, I was playing around with kirupa's excellent "Random Movement in AS3" Tutorial. So far, so good. This bit of code adds the instances of blueCircle on my st…

---

## [Does a xmlsocket connection need dedicated ip?](https://forum.kirupa.com/t/does-a-xmlsocket-connection-need-dedicated-ip/324647)

<div class="topic-metadata">

**Author:** [@aminmix](https://forum.kirupa.com/u/aminmix)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 7:04am UTC](https://forum.kirupa.com/t/does-a-xmlsocket-connection-need-dedicated-ip/324647 "2011-09-01T07:04:22Z")

</div>

Hello I want to chose a sever for my xml socket based game but i don't have any experience in this case. do i need dedicated ip or i can run xml socket with shared ip address?

---

## [Rotating menu in Actionscript 3.0](https://forum.kirupa.com/t/rotating-menu-in-actionscript-3-0/324646)

<div class="topic-metadata">

**Author:** [@Flash\_flea](https://forum.kirupa.com/u/Flash_flea)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 4:38am UTC](https://forum.kirupa.com/t/rotating-menu-in-actionscript-3-0/324646 "2011-09-01T04:38:22Z")

</div>

I'm using Actionscript 3.0 for Adobe Flash CS4 for this project... (http://tutorials.flashmymind.com/2009/02/rotating-menu-via-actionscript-3/) I tried to modify the code of this tutorial a bit to have words appear ins…

---

## [Reassign class variable to a blank instance of its class](https://forum.kirupa.com/t/reassign-class-variable-to-a-blank-instance-of-its-class/324644)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [September 1, 2011, 1:47am UTC](https://forum.kirupa.com/t/reassign-class-variable-to-a-blank-instance-of-its-class/324644 "2011-09-01T01:47:32Z")

</div>

When I declare a class variable private var myVar:MyClass = new MyClass(); It creates a new instance of that class that will trace as \[Object MyClass\]. However, as soon as I assign it to something myVar = thisOt…

---

## [Why doesn't this listener get the custom event?](https://forum.kirupa.com/t/why-doesnt-this-listener-get-the-custom-event/324643)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 9:07pm UTC](https://forum.kirupa.com/t/why-doesnt-this-listener-get-the-custom-event/324643 "2011-08-31T21:07:52Z")

</div>

I'm very confused about why one of my event listeners does not catch a custom event while all of the others do. I have this in my FLA: function runP5():void { p5 = new P5\_SMS(); addChild(p5); p5.addEventLi…

---

## [Movig car from number](https://forum.kirupa.com/t/movig-car-from-number/324641)

<div class="topic-metadata">

**Author:** [@stuw](https://forum.kirupa.com/u/stuw)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 7:05pm UTC](https://forum.kirupa.com/t/movig-car-from-number/324641 "2011-08-31T19:05:00Z")

</div>

I am trying to animate a scoreboard of sorts where you put in the scores and the first car to reach the finish wins, but i need some help doing it. I want to have a text box, where you type in the score and this moves th…

---

## [Peer to Peer in Flash, is Java the answer?](https://forum.kirupa.com/t/peer-to-peer-in-flash-is-java-the-answer/324639)

<div class="topic-metadata">

**Author:** [@wMattD](https://forum.kirupa.com/u/wMattD)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 2:26pm UTC](https://forum.kirupa.com/t/peer-to-peer-in-flash-is-java-the-answer/324639 "2011-08-31T14:26:02Z")

</div>

Disclaimer: I'm still learning Flash, and while I've had a few college courses over Java, they were years ago (ie, I've forgotten almost everything) and they never covered network connections. So, by asking this questio…

---

## [AS3 youtube question](https://forum.kirupa.com/t/as3-youtube-question/324638)

<div class="topic-metadata">

**Author:** [@kstv\_chttrj](https://forum.kirupa.com/u/kstv_chttrj)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 1:20pm UTC](https://forum.kirupa.com/t/as3-youtube-question/324638 "2011-08-31T13:20:16Z")

</div>

Hello. I have one question please excuse me if its stupid. Is Developers key still needed to embed youtube on flash? I am not talking about chromeless one. If yes then can anyone guide me, where to put the develo…

---

## [How to call a function dynamically?](https://forum.kirupa.com/t/how-to-call-a-function-dynamically/324635)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 6:39am UTC](https://forum.kirupa.com/t/how-to-call-a-function-dynamically/324635 "2011-08-31T06:39:44Z")

</div>

Say I have this: function f1():void { if (!paused) { // animate something // start timer and when it's done execute f2() } else { ?? } } function f2(te:TimerEvent):void { …

---

## [EBOOK Reviews](https://forum.kirupa.com/t/ebook-reviews/324633)

<div class="topic-metadata">

**Author:** [@sheila1985](https://forum.kirupa.com/u/sheila1985)\
**Replies:** 0\
**Last updated:** [August 31, 2011, 6:03am UTC](https://forum.kirupa.com/t/ebook-reviews/324633 "2011-08-31T06:03:27Z")

</div>

Let me start with... "ASHLAD and his Good Helpers" 9 out of 10 Norwegian Fairytale (for ipad only) -Great for kids! -Lots of Adventures! (no intention of promoting this app) how bout u? say something bout your fav …

---

## [Embedded video keeps looping](https://forum.kirupa.com/t/embedded-video-keeps-looping/324627)

<div class="topic-metadata">

**Author:** [@Lawrence\_Smith](https://forum.kirupa.com/u/Lawrence_Smith)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 11:48pm UTC](https://forum.kirupa.com/t/embedded-video-keeps-looping/324627 "2011-08-30T23:48:56Z")

</div>

So i have been working on a project, its a digital portfolio. Now I have the Host Movie and and then I have a submovie which is loaded into the Host movie. That all works fine! Here is my problem... I have embedded a v…

---

## [Update dynamic textfields from xml at runtime](https://forum.kirupa.com/t/update-dynamic-textfields-from-xml-at-runtime/324625)

<div class="topic-metadata">

**Author:** [@Rundevo](https://forum.kirupa.com/u/Rundevo)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 10:07pm UTC](https://forum.kirupa.com/t/update-dynamic-textfields-from-xml-at-runtime/324625 "2011-08-30T22:07:07Z")

</div>

Hey guys! It´s been awhile, so lets not waste anymore time! \[smile\] The problem I´m having is that I can´t update the information that I get from my XML file at runtime. I have some static textfields that updates jus…

---

## [Flash tiled map using spacial averaging. (AS2)](https://forum.kirupa.com/t/flash-tiled-map-using-spacial-averaging-as2/324623)

<div class="topic-metadata">

**Author:** [@Sam\_Ingram](https://forum.kirupa.com/u/Sam_Ingram)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 8:00pm UTC](https://forum.kirupa.com/t/flash-tiled-map-using-spacial-averaging-as2/324623 "2011-08-30T20:00:37Z")

</div>

I'm trying to make a tiled flash mapping programme using spatial averaging in AS2. I have a function that fills the screen with random tiles. I presumed that by running a second check where each tile checks its surro…

---

## [Changing a movieclip's color](https://forum.kirupa.com/t/changing-a-movieclips-color/324622)

<div class="topic-metadata">

**Author:** [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 5:19pm UTC](https://forum.kirupa.com/t/changing-a-movieclips-color/324622 "2011-08-30T17:19:44Z")

</div>

I have a problem, no I already have the code and here is what im using (MC is the original movieclip on the stage while MC1 and MC2 are child movieclips within MC) var ob1color = new color("\_root.MC.MC1"); var ob2colo…

---

## [Access global object with another global object of a different class - Please Help :S](https://forum.kirupa.com/t/access-global-object-with-another-global-object-of-a-different-class-please-help-s/324621)

<div class="topic-metadata">

**Author:** [@Taloton](https://forum.kirupa.com/u/Taloton)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 5:16pm UTC](https://forum.kirupa.com/t/access-global-object-with-another-global-object-of-a-different-class-please-help-s/324621 "2011-08-30T17:16:23Z")

</div>

Hello, I would appreciate any help that I can receive with my issue. I will explain the circumstances then ask what to do. I have 2 classes: bullet class:Extends MovieClip and stores information about bullets while…

---

## [Duplicate a movie clip in original movie clip position](https://forum.kirupa.com/t/duplicate-a-movie-clip-in-original-movie-clip-position/324618)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 1:19pm UTC](https://forum.kirupa.com/t/duplicate-a-movie-clip-in-original-movie-clip-position/324618 "2011-08-30T13:19:40Z")

</div>

I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one wil…

---

## [Singleton Class ArrayCollection within Flashbuilder (Mobile) empty?](https://forum.kirupa.com/t/singleton-class-arraycollection-within-flashbuilder-mobile-empty/324615)

<div class="topic-metadata">

**Author:** [@anix](https://forum.kirupa.com/u/anix)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 9:45am UTC](https://forum.kirupa.com/t/singleton-class-arraycollection-within-flashbuilder-mobile-empty/324615 "2011-08-30T09:45:53Z")

</div>

I am currently trying to implememnt a Singleton Class in order to store a ArrayCollection of items that I can then access and manipulate across the lifecycle of my app. I have created the below Singleton Class that is de…

---

## [Background movement for shooting game](https://forum.kirupa.com/t/background-movement-for-shooting-game/324614)

<div class="topic-metadata">

**Author:** [@eternity22](https://forum.kirupa.com/u/eternity22)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 8:46am UTC](https://forum.kirupa.com/t/background-movement-for-shooting-game/324614 "2011-08-30T08:46:50Z")

</div>

Hi I'm doing the shooting game. In that character should move left and right by using the arrow keys. The background is movieClip with image. The character is walking very slow sometimes. And the zombies will come au…

---

## [Why is there no way to REMOVE but not replace a character in a string?](https://forum.kirupa.com/t/why-is-there-no-way-to-remove-but-not-replace-a-character-in-a-string/324610)

<div class="topic-metadata">

**Author:** [@sogj](https://forum.kirupa.com/u/sogj)\
**Replies:** 0\
**Last updated:** [August 30, 2011, 1:03am UTC](https://forum.kirupa.com/t/why-is-there-no-way-to-remove-but-not-replace-a-character-in-a-string/324610 "2011-08-30T01:03:23Z")

</div>

I have an array of characters that for some reason is adding commas in between all it's characters. So if: array\[0\] = undefined; array\[1\] = "b"; array\[2\] = "a"; array\[3\] = undefined; Then myArray.toString(); return…

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

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