# programming

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

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

**Page:** 97

---

## [Remove everything except substrings in string](https://forum.kirupa.com/t/remove-everything-except-substrings-in-string/332501)

<div class="topic-metadata">

**Author:** [@Food1234](https://forum.kirupa.com/u/Food1234)\
**Replies:** 0\
**Last updated:** [July 4, 2014, 11:50am UTC](https://forum.kirupa.com/t/remove-everything-except-substrings-in-string/332501 "2014-07-04T11:50:11Z")

</div>

Hi, I'd like to be able to remove everything in a String EXCEPT predefined substrings, so something like; var substring1 = "\<bullet\>" var substring2 = "\<img\>" var myString = "\<bullet\>\<img\>some text\<bullet\>\<img\>some…

---

## [Efficient Nutrition Plan For Bodybuilders Is Vital](https://forum.kirupa.com/t/efficient-nutrition-plan-for-bodybuilders-is-vital/332500)

<div class="topic-metadata">

**Author:** [@amotramarik99](https://forum.kirupa.com/u/amotramarik99)\
**Replies:** 0\
**Last updated:** [July 4, 2014, 1:58am UTC](https://forum.kirupa.com/t/efficient-nutrition-plan-for-bodybuilders-is-vital/332500 "2014-07-04T01:58:09Z")

</div>

To be a made bodybuilder, you moldiness use a nutrition design that is effective to get the wanted resultant. You testament be placing your embody under often higher than practice corporal punctuate with weight activity. …

---

## [Array MovieClip Mames](https://forum.kirupa.com/t/array-movieclip-mames/332498)

<div class="topic-metadata">

**Author:** [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Replies:** 0\
**Last updated:** [July 3, 2014, 3:14pm UTC](https://forum.kirupa.com/t/array-movieclip-mames/332498 "2014-07-03T15:14:02Z")

</div>

hi \[smile\] so simple I cant figure it out ... must have been because I had a hypo last night :/ anyways why doesn't this work if all the MovieClips are on the stage? var menuArray:Array = \[ aboutBtn\_MC, …

---

## [Need help with rendering performance - simple game](https://forum.kirupa.com/t/need-help-with-rendering-performance-simple-game/332497)

<div class="topic-metadata">

**Author:** [@BeerOclock](https://forum.kirupa.com/u/BeerOclock)\
**Replies:** 0\
**Last updated:** [July 3, 2014, 1:54pm UTC](https://forum.kirupa.com/t/need-help-with-rendering-performance-simple-game/332497 "2014-07-03T13:54:12Z")

</div>

I'm working on a game thats graphically very simple. There are some hexagons in the background for walls. All the enemies are circles, and all the bullets and projectiles are smaller circles. Granted, sometimes there are…

---

## [Jumping to frame labels with keyboard input](https://forum.kirupa.com/t/jumping-to-frame-labels-with-keyboard-input/332495)

<div class="topic-metadata">

**Author:** [@Nuclear\_Cactus](https://forum.kirupa.com/u/Nuclear_Cactus)\
**Replies:** 0\
**Last updated:** [July 2, 2014, 5:13pm UTC](https://forum.kirupa.com/t/jumping-to-frame-labels-with-keyboard-input/332495 "2014-07-02T17:13:54Z")

</div>

Hai there. So I have bunch of animations on the main timeline, for example one of them starts at frame 51 and ends at 100, another one starts at 101 and ends at 150, and another one starts at 151 and ends at 200. I g…

---

## [AS3 - using JSON and other external classes inside external classes](https://forum.kirupa.com/t/as3-using-json-and-other-external-classes-inside-external-classes/332493)

<div class="topic-metadata">

**Author:** [@Nofar\_Shaked](https://forum.kirupa.com/u/Nofar_Shaked)\
**Replies:** 0\
**Last updated:** [July 2, 2014, 5:34am UTC](https://forum.kirupa.com/t/as3-using-json-and-other-external-classes-inside-external-classes/332493 "2014-07-02T05:34:15Z")

</div>

Hey, I have a main project in Flash CS6 using external classes. Inside one of the classes I created (located in C:\\com\\classes\\classTestManager.as) I use other class such as JSON (located in C:\\com\\adobe\\serialization…

---

## [AS3 Timeline Animation Refuses to Loop](https://forum.kirupa.com/t/as3-timeline-animation-refuses-to-loop/332492)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [July 1, 2014, 8:48pm UTC](https://forum.kirupa.com/t/as3-timeline-animation-refuses-to-loop/332492 "2014-07-01T20:48:39Z")

</div>

This is a weird one. I have a run animation for a player with four states labeled on the timeline: idle (one frame with a stop(); call in the frame), start (which has no scripting in any frames), run (which has a gotoAn…

---

## [A3 Arrays of movieClips](https://forum.kirupa.com/t/a3-arrays-of-movieclips/332488)

<div class="topic-metadata">

**Author:** [@Cinquil](https://forum.kirupa.com/u/Cinquil)\
**Replies:** 0\
**Last updated:** [June 27, 2014, 8:14am UTC](https://forum.kirupa.com/t/a3-arrays-of-movieclips/332488 "2014-06-27T08:14:44Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]AS3.0\] I'm currently working on my graduation diploma and I have a problem with managing movieClips with the same instance name..sort of. I'm creating an array of objects with this Class an Arr…

---

## [If statment help for mutiple selected radio buttons](https://forum.kirupa.com/t/if-statment-help-for-mutiple-selected-radio-buttons/332487)

<div class="topic-metadata">

**Author:** [@Josh\_Medina](https://forum.kirupa.com/u/Josh_Medina)\
**Replies:** 0\
**Last updated:** [June 26, 2014, 11:34pm UTC](https://forum.kirupa.com/t/if-statment-help-for-mutiple-selected-radio-buttons/332487 "2014-06-26T23:34:32Z")

</div>

Hello fellow flashers, I need some help with if statements. I'm building a flash banner with CS6/AS2 that has 4 radio buttons that once the user rolls over, they mark with a checkmark. I want the user to only be able …

---

## [Drag Drop Rotate](https://forum.kirupa.com/t/drag-drop-rotate/332485)

<div class="topic-metadata">

**Author:** [@The\_Mort](https://forum.kirupa.com/u/The_Mort)\
**Replies:** 0\
**Last updated:** [June 26, 2014, 8:59am UTC](https://forum.kirupa.com/t/drag-drop-rotate/332485 "2014-06-26T08:59:59Z")

</div>

I am trying to get different movie clips to drag and rotate independently on the stage I have found code on the internet which has just one movie in it and does just what I want but when I add a second movie they drag …

---

## [Get Free Xbox Live Gold Membership and Save Money](https://forum.kirupa.com/t/get-free-xbox-live-gold-membership-and-save-money/332484)

<div class="topic-metadata">

**Author:** [@auratheoran](https://forum.kirupa.com/u/auratheoran)\
**Replies:** 0\
**Last updated:** [June 26, 2014, 4:09am UTC](https://forum.kirupa.com/t/get-free-xbox-live-gold-membership-and-save-money/332484 "2014-06-26T04:09:11Z")

</div>

Xbox 360 which is a support recreation product from Microsoft after Xbox which includes more new features which could compound the recreation experience of the gamers. Xbox live code generator smoldering is among the mo…

---

## [Scrolling the Game Breaks my Collision Detection](https://forum.kirupa.com/t/scrolling-the-game-breaks-my-collision-detection/332483)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [June 25, 2014, 2:50pm UTC](https://forum.kirupa.com/t/scrolling-the-game-breaks-my-collision-detection/332483 "2014-06-25T14:50:40Z")

</div>

I am working on a side-scrolling platformer and I just added scrolling, which broke my collision detection. I have no idea WHY collision detection no longer works, so I thought I'd see if anyone here can help me. I kno…

---

## [PHP Form Not getting values](https://forum.kirupa.com/t/php-form-not-getting-values/332481)

<div class="topic-metadata">

**Author:** [@fumegx](https://forum.kirupa.com/u/fumegx)\
**Replies:** 0\
**Last updated:** [June 25, 2014, 1:10pm UTC](https://forum.kirupa.com/t/php-form-not-getting-values/332481 "2014-06-25T13:10:22Z")

</div>

\[TABLE\] \[TR\] \[TD="class: votecell"\]\[/TD\] \[TD="class: postcell"\] I´m having a problem in a complex form built in PHP. The form and the process are in the same page, because it loads in bootstrap modal, an…

---

## [AS3 Unloading external SWF piling up problem](https://forum.kirupa.com/t/as3-unloading-external-swf-piling-up-problem/332478)

<div class="topic-metadata">

**Author:** [@Tosif](https://forum.kirupa.com/u/Tosif)\
**Replies:** 0\
**Last updated:** [June 24, 2014, 12:31pm UTC](https://forum.kirupa.com/t/as3-unloading-external-swf-piling-up-problem/332478 "2014-06-24T12:31:03Z")

</div>

I have two buttons on main SWF what loads and Unload two external SWFs back and forth. Also one timer function is calling external Screen saver SWF and unload the existing one when no interaction found. I am using …

---

## [added\_to\_stage event not firing](https://forum.kirupa.com/t/added-to-stage-event-not-firing/332477)

<div class="topic-metadata">

**Author:** [@nikel](https://forum.kirupa.com/u/nikel)\
**Replies:** 0\
**Last updated:** [June 24, 2014, 3:31am UTC](https://forum.kirupa.com/t/added-to-stage-event-not-firing/332477 "2014-06-24T03:31:59Z")

</div>

I've a class file named MainGraphics. In my class file I've an eventlistener but it's not firing. package { import flash.events.Event; import flash.events.KeyboardEvent; import flash.text.TextField; …

---

## [How to Call a Variable from a Class to Fla?](https://forum.kirupa.com/t/how-to-call-a-variable-from-a-class-to-fla/332474)

<div class="topic-metadata">

**Author:** [@nikel](https://forum.kirupa.com/u/nikel)\
**Replies:** 0\
**Last updated:** [June 22, 2014, 9:21pm UTC](https://forum.kirupa.com/t/how-to-call-a-variable-from-a-class-to-fla/332474 "2014-06-22T21:21:10Z")

</div>

Hello, I've class file named Meters.as I need call an array variable from the Meters.as to main fla. My class file is located at here: http://sudrap.org/paste/text/336578/ Here's my code: var meterArr:Meters = new M…

---

## [RSLs - Very different behavior depending on publish method](https://forum.kirupa.com/t/rsls-very-different-behavior-depending-on-publish-method/332473)

<div class="topic-metadata">

**Author:** [@cakepizza](https://forum.kirupa.com/u/cakepizza)\
**Replies:** 0\
**Last updated:** [June 22, 2014, 6:01pm UTC](https://forum.kirupa.com/t/rsls-very-different-behavior-depending-on-publish-method/332473 "2014-06-22T18:01:37Z")

</div>

Using cs5.5 I have RSLs A,B, and C. In the publish settings, they are listed as RSL libraries in that order. On first frame they load, one at a time, and after each one loads, it traces out that it loaded onto a textFi…

---

## [Parabolic Motion](https://forum.kirupa.com/t/parabolic-motion/332470)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [June 20, 2014, 6:53am UTC](https://forum.kirupa.com/t/parabolic-motion/332470 "2014-06-20T06:53:15Z")

</div>

I've looked around for a while trying to find a good way to go about doing parabolic motion but I'm still having trouble. The idea is that I have a starting point, and ending point, and then either an initial angle or m…

---

## [Audio issues haunting me](https://forum.kirupa.com/t/audio-issues-haunting-me/332466)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 0\
**Last updated:** [June 19, 2014, 2:54am UTC](https://forum.kirupa.com/t/audio-issues-haunting-me/332466 "2014-06-19T02:54:05Z")

</div>

Hey All, I'm being haunted by this lingering audio and it's driving my nucking futs. I've been developing AS3 for years now but this particular issues has always seemed to be a thorn in my side. I have a swf file…

---

## [Class Help AS3](https://forum.kirupa.com/t/class-help-as3/332464)

<div class="topic-metadata">

**Author:** [@jackinder88](https://forum.kirupa.com/u/jackinder88)\
**Replies:** 0\
**Last updated:** [June 18, 2014, 1:03am UTC](https://forum.kirupa.com/t/class-help-as3/332464 "2014-06-18T01:03:23Z")

</div>

Getting this error ArgumentError: Error #2109: Frame label menus not found in scene menus. at flash.display::MovieClip/gotoAndStop() at mainM/clicked() my frame 2 is names menus and below is my class, I assigned a c…

---

## [Dynamic imagies from xml](https://forum.kirupa.com/t/dynamic-imagies-from-xml/332463)

<div class="topic-metadata">

**Author:** [@princemurphy](https://forum.kirupa.com/u/princemurphy)\
**Replies:** 0\
**Last updated:** [June 17, 2014, 3:25am UTC](https://forum.kirupa.com/t/dynamic-imagies-from-xml/332463 "2014-06-17T03:25:43Z")

</div>

I'm very new to as3 so excuse me if i'm not using the correct terms. I have an xml file that i periodically update with the file name of different images. I'm able to get my dynamic text from the xml file loaded fine, bu…

---

## [Accelerometer function issue](https://forum.kirupa.com/t/accelerometer-function-issue/332462)

<div class="topic-metadata">

**Author:** [@rworsl](https://forum.kirupa.com/u/rworsl)\
**Replies:** 0\
**Last updated:** [June 16, 2014, 1:33pm UTC](https://forum.kirupa.com/t/accelerometer-function-issue/332462 "2014-06-16T13:33:42Z")

</div>

Hi guys, I'm very new to flash and AS3 and I'm getting an annoying issue. I'm currently trying to make a simple game using accelerometer controls, and it works fine for the first level, but as soon as it tries to jump …

---

## [Enter Key Listener AS3 HELP!](https://forum.kirupa.com/t/enter-key-listener-as3-help/332461)

<div class="topic-metadata">

**Author:** [@Mia\_Couch](https://forum.kirupa.com/u/Mia_Couch)\
**Replies:** 0\
**Last updated:** [June 16, 2014, 7:05am UTC](https://forum.kirupa.com/t/enter-key-listener-as3-help/332461 "2014-06-16T07:05:39Z")

</div>

The Code: myTextField.addEventListener(KeyboardEvent.KEY\_DOWN, KeyDownFunc); function KeyDownFunc(event){ \* if(event.keyCode == Keyboard.ENTER){\* \* trace("Enter");\* \* }\* \*} \*\*\*The Problem: \*\* I have Co…

---

## [Simple Loop Help](https://forum.kirupa.com/t/simple-loop-help/332459)

<div class="topic-metadata">

**Author:** [@TAves](https://forum.kirupa.com/u/TAves)\
**Replies:** 0\
**Last updated:** [June 16, 2014, 2:22am UTC](https://forum.kirupa.com/t/simple-loop-help/332459 "2014-06-16T02:22:58Z")

</div>

this.addEventListener(Event.ENTER\_FRAME, loop); function loop(e:Event):void{ //check x and y position of each piece and //see if they are within the correct range. for (var i = 0; i \< puzzle…

---

## [AS2 - Embedding flv](https://forum.kirupa.com/t/as2-embedding-flv/332455)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [June 13, 2014, 5:45pm UTC](https://forum.kirupa.com/t/as2-embedding-flv/332455 "2014-06-13T17:45:00Z")

</div>

I'm building a new website for the place I work and we are putting up three animations which I've converted from .wmv's to .flv's. For some reason that escapes me, they won't behave consistently. Sometimes one will play …

---

## [Text Formatting Problem](https://forum.kirupa.com/t/text-formatting-problem/332454)

<div class="topic-metadata">

**Author:** [@Blablob](https://forum.kirupa.com/u/Blablob)\
**Replies:** 0\
**Last updated:** [June 12, 2014, 12:58pm UTC](https://forum.kirupa.com/t/text-formatting-problem/332454 "2014-06-12T12:58:19Z")

</div>

Hi there. I don't know if this issue can be fixed directly through AS3, but I'll take a shot at it. Anyways, I have this game I've been working on for the last few months, and my family recently gave me this new laptop f…

---

## [Automatic Save the complete Site](https://forum.kirupa.com/t/automatic-save-the-complete-site/332452)

<div class="topic-metadata">

**Author:** [@getzlaw](https://forum.kirupa.com/u/getzlaw)\
**Replies:** 0\
**Last updated:** [June 12, 2014, 8:04am UTC](https://forum.kirupa.com/t/automatic-save-the-complete-site/332452 "2014-06-12T08:04:53Z")

</div>

Hey, ive got a problem and i hope that somebody may got an idea. My Problem: I´m working with Highcharts. If the user (i only got one User) refresh or come back to the Page see the same zoom? Cause my Highcharts ref…

---

## [Array Equivelant to SELECT Query](https://forum.kirupa.com/t/array-equivelant-to-select-query/332450)

<div class="topic-metadata">

**Author:** [@DMB](https://forum.kirupa.com/u/DMB)\
**Replies:** 0\
**Last updated:** [June 11, 2014, 1:10pm UTC](https://forum.kirupa.com/t/array-equivelant-to-select-query/332450 "2014-06-11T13:10:20Z")

</div>

What is the equivalent of this SQL statement with a "multidimensional" array (\[id\]\[name\]): SELECT name WHERE id="6"; The id being a unique primary key, not in any numerical order.

---

## [ExternalInterface addCallBack not working please help](https://forum.kirupa.com/t/externalinterface-addcallback-not-working-please-help/332445)

<div class="topic-metadata">

**Author:** [@adBuryD](https://forum.kirupa.com/u/adBuryD)\
**Replies:** 0\
**Last updated:** [June 10, 2014, 12:13pm UTC](https://forum.kirupa.com/t/externalinterface-addcallback-not-working-please-help/332445 "2014-06-10T12:13:36Z")

</div>

hi, I have tried almost everything I know about ExtrenalInterface.But the addCallBack is not working. It just keeps giving me the below error this.getFlashMovie().sendToActionScript is not a function. This is my flash c…

---

## [Memory Leaks - Object References](https://forum.kirupa.com/t/memory-leaks-object-references/332444)

<div class="topic-metadata">

**Author:** [@DMB](https://forum.kirupa.com/u/DMB)\
**Replies:** 0\
**Last updated:** [June 10, 2014, 9:49am UTC](https://forum.kirupa.com/t/memory-leaks-object-references/332444 "2014-06-10T09:49:01Z")

</div>

Recently I've noticed memory leak/s in my application and have been looking at ways to patch them, so far I've applied: - Weak event listeners - removeEventListener - object = null What I haven't done yet is remove all…

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

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