# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=159

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

**Page:** 160

---

## [Switch function with Comparison Operators inside Cases](https://forum.kirupa.com/t/switch-function-with-comparison-operators-inside-cases/322183)

<div class="topic-metadata">

**Author:** [@Emile7](https://forum.kirupa.com/u/Emile7)\
**Replies:** 0\
**Last updated:** [May 13, 2011, 8:25am UTC](https://forum.kirupa.com/t/switch-function-with-comparison-operators-inside-cases/322183 "2011-05-13T08:25:00Z")

</div>

Hi everyone, I'm having difficulties with my switch script. Below is the code: public function resultValue():void { switch (\_calcSwitch) { case 0: break; case 1: for(var q:int; q \< queryArray.…

---

## [AS3 health bar](https://forum.kirupa.com/t/as3-health-bar/322179)

<div class="topic-metadata">

**Author:** [@robotronic](https://forum.kirupa.com/u/robotronic)\
**Replies:** 0\
**Last updated:** [May 13, 2011, 1:59am UTC](https://forum.kirupa.com/t/as3-health-bar/322179 "2011-05-13T01:59:54Z")

</div>

Ive seen a lot of tutorials but none are really what im looking for. I have a square right now which is saved as troop1\_mc. Inside that MC i have a green bar called healthBar\_mc. Pretty much how can I get healthBar…

---

## [Question for stage.focus](https://forum.kirupa.com/t/question-for-stage-focus/322177)

<div class="topic-metadata">

**Author:** [@celestale](https://forum.kirupa.com/u/celestale)\
**Replies:** 0\
**Last updated:** [May 13, 2011, 1:31am UTC](https://forum.kirupa.com/t/question-for-stage-focus/322177 "2011-05-13T01:31:55Z")

</div>

Hello! stage.focus = txt\_firstnameEdit; I need to make the blinking cursor at the txt\_firstnameEdit when i enter the stage. but the blinking cursor appeared infront of string\_0. string\_0 is pre-entered in the textbox…

---

## [Urgent Help with Image Gallery](https://forum.kirupa.com/t/urgent-help-with-image-gallery/322176)

<div class="topic-metadata">

**Author:** [@jennyg3011](https://forum.kirupa.com/u/jennyg3011)\
**Replies:** 0\
**Last updated:** [May 13, 2011, 12:10am UTC](https://forum.kirupa.com/t/urgent-help-with-image-gallery/322176 "2011-05-13T00:10:18Z")

</div>

Hi, I really need help with an image gallery i have created. Cannot think of a resolution So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider) The issu…

---

## [Tile based game lags](https://forum.kirupa.com/t/tile-based-game-lags/322174)

<div class="topic-metadata">

**Author:** [@John4213](https://forum.kirupa.com/u/John4213)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 11:27pm UTC](https://forum.kirupa.com/t/tile-based-game-lags/322174 "2011-05-12T23:27:44Z")

</div>

Hello, in a tile based game I'm making around 1300 different blocks are used for each level, as you can probably imagine this lags like crazy, so I used the following actionscript inside of each tile: \*onEnterFrame = f…

---

## [Hit Detection question](https://forum.kirupa.com/t/hit-detection-question/322173)

<div class="topic-metadata">

**Author:** [@designCannon](https://forum.kirupa.com/u/designCannon)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 9:53pm UTC](https://forum.kirupa.com/t/hit-detection-question/322173 "2011-05-12T21:53:52Z")

</div>

I'm making an educational side-scrolling game where basically one animal "eats" other aquatic animals on the stage. Right now, it counts as a hit when anywhere on the entire movieclip for the character ("char") touches o…

---

## [AS3 And TweenLite CPU Optimization](https://forum.kirupa.com/t/as3-and-tweenlite-cpu-optimization/322171)

<div class="topic-metadata">

**Author:** [@rtplol](https://forum.kirupa.com/u/rtplol)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 8:36pm UTC](https://forum.kirupa.com/t/as3-and-tweenlite-cpu-optimization/322171 "2011-05-12T20:36:42Z")

</div>

Hi There, I'm currently working on a game where every "Step" - defined by a global time modifier - everything on screen calculates where it's next position will be, then uses tweenlite to animate itself to that locatio…

---

## [SWC question](https://forum.kirupa.com/t/swc-question/322169)

<div class="topic-metadata">

**Author:** [@heiny99](https://forum.kirupa.com/u/heiny99)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 7:27pm UTC](https://forum.kirupa.com/t/swc-question/322169 "2011-05-12T19:27:39Z")

</div>

Right now I have a .swf file I'm using to hold some fonts that I later upload and embed in a different project file. I know nothing about SWC files except that you can export them into your components folder for use. I…

---

## [Php And Flash](https://forum.kirupa.com/t/php-and-flash/322168)

<div class="topic-metadata">

**Author:** [@nickname](https://forum.kirupa.com/u/nickname)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 7:22pm UTC](https://forum.kirupa.com/t/php-and-flash/322168 "2011-05-12T19:22:29Z")

</div>

Hi! My problem is communication between php and flash. Im trying to load values from php to flash textfield. Heres problem simplified: \[INDENT\]\[U\]t\_field-textField name\[/U\] \[U\]r\_val-received value from php script\[/U\] …

---

## [CS5 Explode Animation](https://forum.kirupa.com/t/cs5-explode-animation/322167)

<div class="topic-metadata">

**Author:** [@Gemixin](https://forum.kirupa.com/u/Gemixin)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 6:53pm UTC](https://forum.kirupa.com/t/cs5-explode-animation/322167 "2011-05-12T18:53:34Z")

</div>

Hi there I have a boulder/rock image that I have turned in to a MovieClip. What I want to do is, have it explode (upon impact with a bullet) so I need to make an explosion animation within the timeline. I have trie…

---

## [External movie preload problem](https://forum.kirupa.com/t/external-movie-preload-problem/322165)

<div class="topic-metadata">

**Author:** [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 4:36pm UTC](https://forum.kirupa.com/t/external-movie-preload-problem/322165 "2011-05-12T16:36:58Z")

</div>

Hi I've a function to check the preloading of external SWF files. The code is below. function checkStat (){ tracker.onEnterFrame = function() { loadingStatus.\_visible = true; var l = holder.getBytesLoaded();…

---

## [Inconsistent framerate](https://forum.kirupa.com/t/inconsistent-framerate/322164)

<div class="topic-metadata">

**Author:** [@mono\_eric3](https://forum.kirupa.com/u/mono_eric3)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 4:35pm UTC](https://forum.kirupa.com/t/inconsistent-framerate/322164 "2011-05-12T16:35:55Z")

</div>

Hello everyone! I am having some serious issues with the framerate in my game and I'm wondering if anyone can help. I am trying to create a game where a character runs from the left side to the right side of a large…

---

## [3D Tool, Vector \> Bitmap](https://forum.kirupa.com/t/3d-tool-vector-bitmap/322163)

<div class="topic-metadata">

**Author:** [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 4:31pm UTC](https://forum.kirupa.com/t/3d-tool-vector-bitmap/322163 "2011-05-12T16:31:51Z")

</div>

When I use the 3d tool, my vector image looks/becomes a bitmap image. Is there a way I can still show it as vector when I publish it?

---

## [Help with "attaching" variables to objects](https://forum.kirupa.com/t/help-with-attaching-variables-to-objects/322162)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 2:58pm UTC](https://forum.kirupa.com/t/help-with-attaching-variables-to-objects/322162 "2011-05-12T14:58:41Z")

</div>

Not sure that attach is the correct name for this. What I am trying to do is set variables associated with objects and then access those variables from a class file. But I am getting an "undefined" error. The highlit…

---

## [Following my Character](https://forum.kirupa.com/t/following-my-character/322161)

<div class="topic-metadata">

**Author:** [@FlashByDefault](https://forum.kirupa.com/u/FlashByDefault)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 2:28pm UTC](https://forum.kirupa.com/t/following-my-character/322161 "2011-05-12T14:28:30Z")

</div>

Hello all, I have a basic concept on how I will do this, but I just would like to hear some other point of views on it. No this isn't a simple following the mouse or AI going near your character, it is, another movie…

---

## [Can several SWF's talk to each other ? please help](https://forum.kirupa.com/t/can-several-swfs-talk-to-each-other-please-help/322160)

<div class="topic-metadata">

**Author:** [@serazoo](https://forum.kirupa.com/u/serazoo)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 2:21pm UTC](https://forum.kirupa.com/t/can-several-swfs-talk-to-each-other-please-help/322160 "2011-05-12T14:21:26Z")

</div>

Hello ALL, I have a small dilemma, I hope someone can shed a light on this \[smile\] I have 3 SWF's, A, B and C, on a webpage. I would like movie C, to be the "bully" and order movie B to load itself into the highe…

---

## [Changing scene (timer event)](https://forum.kirupa.com/t/changing-scene-timer-event/322158)

<div class="topic-metadata">

**Author:** [@deFacto](https://forum.kirupa.com/u/deFacto)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 1:52pm UTC](https://forum.kirupa.com/t/changing-scene-timer-event/322158 "2011-05-12T13:52:40Z")

</div>

What could be the possible reasons for ArgumentError: Error #2109: Frame label off over not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop()This code appears after my timer has finished and is supposed…

---

## [Reading XML attribues dynamically](https://forum.kirupa.com/t/reading-xml-attribues-dynamically/322157)

<div class="topic-metadata">

**Author:** [@supersaj](https://forum.kirupa.com/u/supersaj)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 1:12pm UTC](https://forum.kirupa.com/t/reading-xml-attribues-dynamically/322157 "2011-05-12T13:12:59Z")

</div>

Can anyine help with this problem, I'm new to flash and maybe I'm just missing the obvious. I have the following XML code: \<item1\> \<height1\> \<width800\>60 \</width800\> \<width900\>65 \</width900\> \<width1000\>69 \</widt…

---

## [addChild method](https://forum.kirupa.com/t/addchild-method/322153)

<div class="topic-metadata">

**Author:** [@virtuoz69](https://forum.kirupa.com/u/virtuoz69)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 11:12am UTC](https://forum.kirupa.com/t/addchild-method/322153 "2011-05-12T11:12:07Z")

</div>

hi guys, i'm very new in AS3 and i'm still in process of learning and i have question, which is probably very simple. Situation is next, i have two movie clips and both are rectangle shape, one is for background , and …

---

## [Same Callback Function on different ty of EventHandler](https://forum.kirupa.com/t/same-callback-function-on-different-ty-of-eventhandler/322152)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 8:26am UTC](https://forum.kirupa.com/t/same-callback-function-on-different-ty-of-eventhandler/322152 "2011-05-12T08:26:03Z")

</div>

I have 2 event listener in my document class. One is for a TimerEvent.TIMER and another is for VideoEvent.COMPLETE. Now my question is can i assign a single callback function for both of them? vdo.addEventListener(V…

---

## [How do I check for no keyboard button pressed?](https://forum.kirupa.com/t/how-do-i-check-for-no-keyboard-button-pressed/322145)

<div class="topic-metadata">

**Author:** [@celestale](https://forum.kirupa.com/u/celestale)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 2:12am UTC](https://forum.kirupa.com/t/how-do-i-check-for-no-keyboard-button-pressed/322145 "2011-05-12T02:12:39Z")

</div>

Hello, how do I check for no keyboard pressed for 10secs?

---

## [Can someone recommend me a nice animation studio in France?](https://forum.kirupa.com/t/can-someone-recommend-me-a-nice-animation-studio-in-france/322144)

<div class="topic-metadata">

**Author:** [@DancingKim](https://forum.kirupa.com/u/DancingKim)\
**Replies:** 0\
**Last updated:** [May 12, 2011, 1:21am UTC](https://forum.kirupa.com/t/can-someone-recommend-me-a-nice-animation-studio-in-france/322144 "2011-05-12T01:21:15Z")

</div>

Hi, i'm a professional dancer. i want to make a showreel regarding my promotions. I also wish to use some animation. Can someone suggest me an excellent animation studio, but not really very expensive? I'm here for 3 mon…

---

## [Flash CS4: Had 7 errors now 2 - HELP!](https://forum.kirupa.com/t/flash-cs4-had-7-errors-now-2-help/322142)

<div class="topic-metadata">

**Author:** [@Scotty13](https://forum.kirupa.com/u/Scotty13)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 9:45pm UTC](https://forum.kirupa.com/t/flash-cs4-had-7-errors-now-2-help/322142 "2011-05-11T21:45:30Z")

</div>

Working with Flash CS4 - and a Newbie to actionscript. Heres my Compiler Errors…. (description & source) 1. Description.... 1120: Access of undefined property locator\_txt. Go to source.... variables.loca = …

---

## [Best way to varify input](https://forum.kirupa.com/t/best-way-to-varify-input/322138)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 7:13pm UTC](https://forum.kirupa.com/t/best-way-to-varify-input/322138 "2011-05-11T19:13:14Z")

</div>

Hello, I am making a simple tool for use around the office that takes up to maybe up to 8 inputs (text, combo box, t/f, etc) What is the best way to make sure that each field has something entered or selected? I am n…

---

## [How to embed an SWF inside a fla](https://forum.kirupa.com/t/how-to-embed-an-swf-inside-a-fla/322136)

<div class="topic-metadata">

**Author:** [@jaxz](https://forum.kirupa.com/u/jaxz)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 3:08pm UTC](https://forum.kirupa.com/t/how-to-embed-an-swf-inside-a-fla/322136 "2011-05-11T15:08:46Z")

</div>

Hi all, can you pls advise me on the exact syntax for how to embed a compiled FLA (ie an SWF file) into a FLA. pls advice, Jaxz

---

## [3d Triangle Maths](https://forum.kirupa.com/t/3d-triangle-maths/322135)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 2:44pm UTC](https://forum.kirupa.com/t/3d-triangle-maths/322135 "2011-05-11T14:44:58Z")

</div>

Hoi' guys In my quest to build a terrain with proper collision detection, I've reached another stalemate. What I need is to be able to find the normal(x,y,z) for a 3d Triangle. I've looked quite thoroughly for as3 so…

---

## [Event Listener to replace images](https://forum.kirupa.com/t/event-listener-to-replace-images/322134)

<div class="topic-metadata">

**Author:** [@jennyg3011](https://forum.kirupa.com/u/jennyg3011)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 2:24pm UTC](https://forum.kirupa.com/t/event-listener-to-replace-images/322134 "2011-05-11T14:24:37Z")

</div>

Hi I have a flash file made up of 2 components really.....an image slider at the top and when i click on the images it loads a new set of images into a container below. What i want to do is go further and when i clic…

---

## [How to make a new instance of a movie clip](https://forum.kirupa.com/t/how-to-make-a-new-instance-of-a-movie-clip/322133)

<div class="topic-metadata">

**Author:** [@etherol](https://forum.kirupa.com/u/etherol)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 1:55pm UTC](https://forum.kirupa.com/t/how-to-make-a-new-instance-of-a-movie-clip/322133 "2011-05-11T13:55:15Z")

</div>

Hello there! I have an issue while trying to create an instance of a movie clip, in order to rotate it dynamically. How can I have a variable of type myMovieClip in which I can invoke the \_rotate method? Thanks a lot.

---

## [Function Saving](https://forum.kirupa.com/t/function-saving/322131)

<div class="topic-metadata">

**Author:** [@gopik3](https://forum.kirupa.com/u/gopik3)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 11:59am UTC](https://forum.kirupa.com/t/function-saving/322131 "2011-05-11T11:59:34Z")

</div>

Am creating my Flash Games in cs3 using As2.Its an hidden object game.Am linking my games with scene navigation,the game flow in return condition.am navigating my game without finishing my scene frame when am return to s…

---

## [GC simple question](https://forum.kirupa.com/t/gc-simple-question/322130)

<div class="topic-metadata">

**Author:** [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Replies:** 0\
**Last updated:** [May 11, 2011, 11:59am UTC](https://forum.kirupa.com/t/gc-simple-question/322130 "2011-05-11T11:59:02Z")

</div>

I'm adding and removing Sprites on screen but collecting names of Sprites in array Does it prevent Sprites from GC?

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=158)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=160)
