# flash

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

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

**Page:** 238

---

## [addElement vs. addChild](https://forum.kirupa.com/t/addelement-vs-addchild/316792)

<div class="topic-metadata">

**Author:** [@tcoulson](https://forum.kirupa.com/u/tcoulson)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:35pm UTC](https://forum.kirupa.com/t/addelement-vs-addchild/316792 "2010-12-02T14:35:09Z")

</div>

http://savagelook.com/blog/actionscript3/flash-builder-4-addelement-instead-of-addchild This article seems to say that all Flex 4 elements are now being added to a project using addElement() instead of addChild(). So m…

---

## [Bullet and enemy push-back](https://forum.kirupa.com/t/bullet-and-enemy-push-back/316791)

<div class="topic-metadata">

**Author:** [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:20pm UTC](https://forum.kirupa.com/t/bullet-and-enemy-push-back/316791 "2010-12-02T14:20:58Z")

</div>

Hey everyone. I’m creating a Zombie game. I’m trying to code an effect, that will push the enemy back when hit. It has to be pushed in the same direction, as the bullet is flying. Something like: Enemy.x -= Bullet.rotat…

---

## [Air Stage Shenanigans](https://forum.kirupa.com/t/air-stage-shenanigans/316788)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:13pm UTC](https://forum.kirupa.com/t/air-stage-shenanigans/316788 "2010-12-02T14:13:38Z")

</div>

Hey'o, How do I access the actual window size of my air app? I mean the resolution i get if I make the app fullscreen.

---

## [Setting multiple movieclip properties via a for loop](https://forum.kirupa.com/t/setting-multiple-movieclip-properties-via-a-for-loop/316787)

<div class="topic-metadata">

**Author:** [@dt01](https://forum.kirupa.com/u/dt01)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 12:23pm UTC](https://forum.kirupa.com/t/setting-multiple-movieclip-properties-via-a-for-loop/316787 "2010-12-02T12:23:24Z")

</div>

Hi, I have 35 movieclips, named s1, s2, s3 etc, depending on the value of currentDisplay, I would like to set a movieclip visible property to true while the others are set to false, I have tried the following: for (…

---

## [AS3 Click bttn to play movieclip and then pause on desired frame help!](https://forum.kirupa.com/t/as3-click-bttn-to-play-movieclip-and-then-pause-on-desired-frame-help/316786)

<div class="topic-metadata">

**Author:** [@jimbob300966](https://forum.kirupa.com/u/jimbob300966)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 11:16am UTC](https://forum.kirupa.com/t/as3-click-bttn-to-play-movieclip-and-then-pause-on-desired-frame-help/316786 "2010-12-02T11:16:23Z")

</div>

Hey, Ive had a search through quite a few forums and message boards but havent quite been able to pin down what I need to do. I'm working in flash cs5 and using AS3 I have a button (bttn1) which when clicked plays a …

---

## [How to use this site](https://forum.kirupa.com/t/how-to-use-this-site/316783)

<div class="topic-metadata">

**Author:** [@bizkit01](https://forum.kirupa.com/u/bizkit01)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 8:59am UTC](https://forum.kirupa.com/t/how-to-use-this-site/316783 "2010-12-02T08:59:11Z")

</div>

Sorry I'm a newbie, but I go to the Flash tutorials on this site and start watching them from the beginning, and I realize they're out of order. http://www.kirupa.com/developer/flash/index.htm I started with Developer …

---

## [Matching pattern algorithm](https://forum.kirupa.com/t/matching-pattern-algorithm/316782)

<div class="topic-metadata">

**Author:** [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 8:56am UTC](https://forum.kirupa.com/t/matching-pattern-algorithm/316782 "2010-12-02T08:56:03Z")

</div>

// So I've got an array consisting of unique, four digit String numbers (0,1,2 only). var patterns:Array = \["1111", "2212", "1121", "2222", "1011", "2022", "2021", "1012", "1022", "2012", "1021", "2011", "0022", "0011",…

---

## [Editing Script](https://forum.kirupa.com/t/editing-script/316773)

<div class="topic-metadata">

**Author:** [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 5:12am UTC](https://forum.kirupa.com/t/editing-script/316773 "2010-12-02T05:12:12Z")

</div>

Hi, I have a flash file in that the script is there almost on every frame... Basically this script is calling images by providing image numbers.. like Frame 1-3: img=1 like Frame 3-5: img=2 and so on.. So now i ha…

---

## [Flash 10.1 in browser multitouch on Android?](https://forum.kirupa.com/t/flash-10-1-in-browser-multitouch-on-android/316771)

<div class="topic-metadata">

**Author:** [@pcehnaids](https://forum.kirupa.com/u/pcehnaids)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 4:51am UTC](https://forum.kirupa.com/t/flash-10-1-in-browser-multitouch-on-android/316771 "2010-12-02T04:51:11Z")

</div>

I am having trouble finding information on how to create in browser, flash games which utilize touch controls in Android. I have implemented several examples I found online, but when I test them on my EVO, the touch co…

---

## [Changing a global variable on a frame](https://forum.kirupa.com/t/changing-a-global-variable-on-a-frame/316769)

<div class="topic-metadata">

**Author:** [@Garb](https://forum.kirupa.com/u/Garb)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:23am UTC](https://forum.kirupa.com/t/changing-a-global-variable-on-a-frame/316769 "2010-12-02T02:23:48Z")

</div>

Hi! I was wondering how in AS2 you change change, lets say the variable \_global.speed = 12, which is placed on a main timelime frame and make it so on a specific frame of a movie clip the variable changes. How can i do…

---

## [Text Box Value and Timer](https://forum.kirupa.com/t/text-box-value-and-timer/316768)

<div class="topic-metadata">

**Author:** [@na\_il](https://forum.kirupa.com/u/na_il)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 1:56am UTC](https://forum.kirupa.com/t/text-box-value-and-timer/316768 "2010-12-02T01:56:17Z")

</div>

var txt\_1 = txt2.text; var txt\_2 = txt3.text; txt4.text = (txt\_2 - txt\_1); What is the alternative way of doing this??? Seeing the text in the txt boxes are numbers correlative to a timer constantly going. Here is the …

---

## [Movie that pans horizontal and vertical using mouse](https://forum.kirupa.com/t/movie-that-pans-horizontal-and-vertical-using-mouse/316766)

<div class="topic-metadata">

**Author:** [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 12:39am UTC](https://forum.kirupa.com/t/movie-that-pans-horizontal-and-vertical-using-mouse/316766 "2010-12-02T00:39:01Z")

</div>

I have a movie that is around 2000+ pixels wide and 1000+ pixels high. I want to be able to move around the screen with the mouse on the x and y. Hopefully will work properly at 100% on any browser. Thats what I am try…

---

## [Take a snapshot from a streaming video](https://forum.kirupa.com/t/take-a-snapshot-from-a-streaming-video/316765)

<div class="topic-metadata">

**Author:** [@mramses](https://forum.kirupa.com/u/mramses)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 12:28am UTC](https://forum.kirupa.com/t/take-a-snapshot-from-a-streaming-video/316765 "2010-12-02T00:28:47Z")

</div>

Hello all. This is my first post to this forum, so if I've posted in the wrong section, I apologize. I've set up Red5 on one of my servers. I've created a "caster" flash app and a "viewer" flash app. Basically this is …

---

## [Sort array of colors](https://forum.kirupa.com/t/sort-array-of-colors/316762)

<div class="topic-metadata">

**Author:** [@infect](https://forum.kirupa.com/u/infect)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 10:50pm UTC](https://forum.kirupa.com/t/sort-array-of-colors/316762 "2010-12-01T22:50:28Z")

</div>

I have an array of colors that i want to sort from light to dark. currently I am reading them in as uints and sorting the array decending using colors.sort(Array.DESCENDING); It almost works the way I want it to but the…

---

## [Crazy Movement Problem](https://forum.kirupa.com/t/crazy-movement-problem/316760)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 8:53pm UTC](https://forum.kirupa.com/t/crazy-movement-problem/316760 "2010-12-01T20:53:25Z")

</div>

I'm trying to get a ship to move with a thruster and retain its velocity here's the code package { import flash.display.Sprite; public class Ship extends Sprite { ; var thrust:Number…

---

## [Need help with XML and new line](https://forum.kirupa.com/t/need-help-with-xml-and-new-line/316755)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 6:07pm UTC](https://forum.kirupa.com/t/need-help-with-xml-and-new-line/316755 "2010-12-01T18:07:27Z")

</div>

Hello, I am in the process of making an animation that takes text from an XML document and displays it in a scrollPane. I had this working when I was just using string variables. Now with XML it seems to ignore the new…

---

## [Dynamic button and parameter](https://forum.kirupa.com/t/dynamic-button-and-parameter/316754)

<div class="topic-metadata">

**Author:** [@cavanhaki](https://forum.kirupa.com/u/cavanhaki)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 6:07pm UTC](https://forum.kirupa.com/t/dynamic-button-and-parameter/316754 "2010-12-01T18:07:20Z")

</div>

Hi, how is possible passing parameter inside button. Sample. for(var i:Number = 0; i\<totalArray-1; i++) { var item\_mc = mc.attach.attachMovie("boxEven", "boxEven" + i, i); item\_mc.title.htmlText = item\_mc; ite…

---

## [CSS tag name from Mouseover](https://forum.kirupa.com/t/css-tag-name-from-mouseover/316752)

<div class="topic-metadata">

**Author:** [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 4:17pm UTC](https://forum.kirupa.com/t/css-tag-name-from-mouseover/316752 "2010-12-01T16:17:15Z")

</div>

I have some external dynamic html text and and external css style being imported and applied to a TextField. Does anyone know of a way for when you mouse over a url to retrieve the css tag name that is being applied to …

---

## [colorTransform return to original state (please help)](https://forum.kirupa.com/t/colortransform-return-to-original-state-please-help/316751)

<div class="topic-metadata">

**Author:** [@cmathison](https://forum.kirupa.com/u/cmathison)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 3:53pm UTC](https://forum.kirupa.com/t/colortransform-return-to-original-state-please-help/316751 "2010-12-01T15:53:25Z")

</div>

Hello All! I am trying to have colorTransform work on MouseOver and MouseOut I can get it to work problem is I want it to go back to the original state of the button, not to another color can someone help me please? …

---

## [Really Simple Loop HELP!](https://forum.kirupa.com/t/really-simple-loop-help/316748)

<div class="topic-metadata">

**Author:** [@pykieh](https://forum.kirupa.com/u/pykieh)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 2:00pm UTC](https://forum.kirupa.com/t/really-simple-loop-help/316748 "2010-12-01T14:00:34Z")

</div>

Hello all you Flash geniuses! I would really appreciate some help with what will probably be a simple simple task. Basically I've made an animated christmas card in After Effects and exported this as a Flash File. I…

---

## [Apple iphone 4 32gb black -$320/HTC Desire HD $300/Blackberry Torch 9800 $310](https://forum.kirupa.com/t/apple-iphone-4-32gb-black-320-htc-desire-hd-300-blackberry-torch-9800-310/316744)

<div class="topic-metadata">

**Author:** [@fabian22](https://forum.kirupa.com/u/fabian22)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 12:52pm UTC](https://forum.kirupa.com/t/apple-iphone-4-32gb-black-320-htc-desire-hd-300-blackberry-torch-9800-310/316744 "2010-12-01T12:52:57Z")

</div>

We Sell all kinds of Mobile phone such as iPhones , Nokia , Samsung , Sony Erickson , Toshiba, Blackberry and many more all unlocked with the complete accessories in original factory sealed box 100% original and comes wi…

---

## [Disable a button](https://forum.kirupa.com/t/disable-a-button/316742)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 11:12am UTC](https://forum.kirupa.com/t/disable-a-button/316742 "2010-12-01T11:12:19Z")

</div>

I have a button which on press will go to next frame. I want to disable this button by on press another button. Please fill the blank for me. btn.onPress=function(){disable button A;}

---

## [Play movie based on IF condition](https://forum.kirupa.com/t/play-movie-based-on-if-condition/316741)

<div class="topic-metadata">

**Author:** [@MAKDXB](https://forum.kirupa.com/u/MAKDXB)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 11:03am UTC](https://forum.kirupa.com/t/play-movie-based-on-if-condition/316741 "2010-12-01T11:03:52Z")

</div>

Hi, I trying to play different movies based on the day detected by script. Script works fine and plays right movie. But as soon as i insert any graphics / animation from library; script stops working. Is there any kn…

---

## [Event.DEACTIAVE and wmode](https://forum.kirupa.com/t/event-deactiave-and-wmode/316734)

<div class="topic-metadata">

**Author:** [@Orya](https://forum.kirupa.com/u/Orya)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 8:22am UTC](https://forum.kirupa.com/t/event-deactiave-and-wmode/316734 "2010-12-01T08:22:26Z")

</div>

Hi. Short question: If I want to use my flash apps with certain navigation parts over them at times or kinda hiding them sometimes or whatever, I have to set the wmode to "transparent" or "opaque". If I set it to "window…

---

## [Get RGB of each pixel and transform it?](https://forum.kirupa.com/t/get-rgb-of-each-pixel-and-transform-it/316733)

<div class="topic-metadata">

**Author:** [@iluvAS](https://forum.kirupa.com/u/iluvAS)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 8:13am UTC](https://forum.kirupa.com/t/get-rgb-of-each-pixel-and-transform-it/316733 "2010-12-01T08:13:05Z")

</div>

I'm making a matrix effect thing using AS3. Everything is going good except for color transitions. Basically i have two bitmap images, one is where the leading white letters are falling, another is where the letters ar…

---

## [\[question\] using addChild?](https://forum.kirupa.com/t/question-using-addchild/316726)

<div class="topic-metadata">

**Author:** [@Pelevet](https://forum.kirupa.com/u/Pelevet)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 5:05am UTC](https://forum.kirupa.com/t/question-using-addchild/316726 "2010-12-01T05:05:35Z")

</div>

I am not having fully knowledge about ObjectDisplay abstract class. i have a timer class that i instantiate to use in my 'my menu' interface to do some action like when i press button it runs 30 secs then when its …

---

## [Can i become a good flash developer?](https://forum.kirupa.com/t/can-i-become-a-good-flash-developer/316723)

<div class="topic-metadata">

**Author:** [@sunder\_raasi](https://forum.kirupa.com/u/sunder_raasi)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 4:24am UTC](https://forum.kirupa.com/t/can-i-become-a-good-flash-developer/316723 "2010-12-01T04:24:14Z")

</div>

Feel great, i found a good forum site today. \[worried\] I have been a php developer for 4 years. I am fluent in programming and i have no doubt on that part. I got bored with my life with php and i got interest in Fla…

---

## [Help with events and listeners](https://forum.kirupa.com/t/help-with-events-and-listeners/316721)

<div class="topic-metadata">

**Author:** [@Smokey\_Da\_Funk](https://forum.kirupa.com/u/Smokey_Da_Funk)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 1:51am UTC](https://forum.kirupa.com/t/help-with-events-and-listeners/316721 "2010-12-01T01:51:25Z")

</div>

Hi, I'm a noob who was suddenly thrusted into programming in flash for a school project, and many of the answers that have gotten me thus far were found in kirupa one way or another, but I've run into a snag that I can't…

---

## [Keeping sound turned off when movie loops‎ back to beginning](https://forum.kirupa.com/t/keeping-sound-turned-off-when-movie-loops-back-to-beginning/316720)

<div class="topic-metadata">

**Author:** [@derekpoon](https://forum.kirupa.com/u/derekpoon)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 1:12am UTC](https://forum.kirupa.com/t/keeping-sound-turned-off-when-movie-loops-back-to-beginning/316720 "2010-12-01T01:12:49Z")

</div>

I'm working on a Flash movie that includes a simple on/off audio player. At the end of the movie it loops back to the beginning and plays again. The problem is... if the viewer hits the sound off button it will turn the…

---

## [Need help with importing images](https://forum.kirupa.com/t/need-help-with-importing-images/316719)

<div class="topic-metadata">

**Author:** [@Marc\_Anthony](https://forum.kirupa.com/u/Marc_Anthony)\
**Replies:** 0\
**Last updated:** [November 30, 2010, 10:33pm UTC](https://forum.kirupa.com/t/need-help-with-importing-images/316719 "2010-11-30T22:33:08Z")

</div>

I have a sample code from another person which shows how to use a movie clip and duplicate it for a multi touch computer. The problem is that I want to be able to use my own images from an XML file or even put them into …

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

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