# flash

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

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

**Page:** 320

---

## [I am too stupid to write a conditional statement](https://forum.kirupa.com/t/i-am-too-stupid-to-write-a-conditional-statement/310943)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:53pm UTC](https://forum.kirupa.com/t/i-am-too-stupid-to-write-a-conditional-statement/310943 "2010-06-23T16:53:59Z")

</div>

The code below links to an xml file (currentData). There are three candidates running in an election. The counties (aButtons array) on a state map need to change colors depending on which candidate has the highest percen…

---

## [Error creating Avatar using MyAvatarEditor](https://forum.kirupa.com/t/error-creating-avatar-using-myavatareditor/310942)

<div class="topic-metadata">

**Author:** [@adove](https://forum.kirupa.com/u/adove)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:46pm UTC](https://forum.kirupa.com/t/error-creating-avatar-using-myavatareditor/310942 "2010-06-23T16:46:36Z")

</div>

I am using MyAvatarEditor downloaded from http://www.myavatareditor.com/ however, when I compile the \[COLOR=blue\]\[COLOR=blue ! important\]\[COLOR=blue ! important\]application\[/COLOR\]\[/COLOR\]\[/COLOR\] I get runtime errors…

---

## [How to access MC's creating in a custom class?](https://forum.kirupa.com/t/how-to-access-mcs-creating-in-a-custom-class/310940)

<div class="topic-metadata">

**Author:** [@Cablestein](https://forum.kirupa.com/u/Cablestein)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:26pm UTC](https://forum.kirupa.com/t/how-to-access-mcs-creating-in-a-custom-class/310940 "2010-06-23T16:26:21Z")

</div>

I have a custom class which creates a new MC using a library MC. The library MC contains a dynamic textfield called productName. The custom class object gets created fine and is displaying on the stage. It's also holdi…

---

## [Dispatching and receiving events](https://forum.kirupa.com/t/dispatching-and-receiving-events/310938)

<div class="topic-metadata">

**Author:** [@wolcotter](https://forum.kirupa.com/u/wolcotter)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 3:27pm UTC](https://forum.kirupa.com/t/dispatching-and-receiving-events/310938 "2010-06-23T15:27:40Z")

</div>

I am attempting to dispatch an event on the click of any of the buttons in a button array in the document class of my application. The intent is to have an external object receive this dispatch so as to remove a listener…

---

## [FLV player problem](https://forum.kirupa.com/t/flv-player-problem/310934)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 10:46am UTC](https://forum.kirupa.com/t/flv-player-problem/310934 "2010-06-23T10:46:41Z")

</div>

I'm building a custom flv player using the FLVPlayback component. I'm looking for a way to catch an event when the movie enters a new frame (in the flv and not on the timeline). So I tried changing the playheadUpdate…

---

## [How i can add PNG image in custom component?](https://forum.kirupa.com/t/how-i-can-add-png-image-in-custom-component/310930)

<div class="topic-metadata">

**Author:** [@JaxNa](https://forum.kirupa.com/u/JaxNa)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:31am UTC](https://forum.kirupa.com/t/how-i-can-add-png-image-in-custom-component/310930 "2010-06-23T09:31:15Z")

</div>

Hi Guys, This is my custom Component. \<components:EmployeeDisplay imageFile="abrilliam.\[COLOR=#FF0000\]png\[/COLOR\]"/\> Can you help me please how to add png format image. when i add png format image that time this ima…

---

## [How to distort a bitmap between the known points](https://forum.kirupa.com/t/how-to-distort-a-bitmap-between-the-known-points/310929)

<div class="topic-metadata">

**Author:** [@artoix](https://forum.kirupa.com/u/artoix)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 9:08am UTC](https://forum.kirupa.com/t/how-to-distort-a-bitmap-between-the-known-points/310929 "2010-06-23T09:08:12Z")

</div>

I have four points and I need to draw a bitmap between these points. Points coordinates constantly change uniformly so the bitmap must be distorted so its vertices have the same coordinates as the points (see attached im…

---

## [Menu item selection error](https://forum.kirupa.com/t/menu-item-selection-error/310925)

<div class="topic-metadata">

**Author:** [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 5:42am UTC](https://forum.kirupa.com/t/menu-item-selection-error/310925 "2010-06-23T05:42:34Z")

</div>

I tried with some codes but I couldn't do the following in the popup I need to select items when I click I need change the filter effects or colors After selecting item in each category that filter effect won't go. mo…

---

## [\[Flash CS3 AS2\] External SWF Tween can't unload after loaded! HELP!](https://forum.kirupa.com/t/flash-cs3-as2-external-swf-tween-cant-unload-after-loaded-help/310924)

<div class="topic-metadata">

**Author:** [@johnsonjjj](https://forum.kirupa.com/u/johnsonjjj)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 4:54am UTC](https://forum.kirupa.com/t/flash-cs3-as2-external-swf-tween-cant-unload-after-loaded-help/310924 "2010-06-23T04:54:11Z")

</div>

Hi all, I have a gallery with tween effect which allows the photos to change size. However, after loaded photos work but i can't unload it! If i change the 1 to \_mc, it's able to unload but then tween won't work.:e…

---

## [Creating Dynamic Var Names](https://forum.kirupa.com/t/creating-dynamic-var-names/310922)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 1:28am UTC](https://forum.kirupa.com/t/creating-dynamic-var-names/310922 "2010-06-23T01:28:38Z")

</div>

Is there a way to make dynamic var names? Cant remember how to do this. Something like: NameCount = 1; Obj.eval("Item" + NameCount)) = "hello world"; Obj.Item1 // trace "hello world"

---

## [Nested If Else](https://forum.kirupa.com/t/nested-if-else/310921)

<div class="topic-metadata">

**Author:** [@naa233](https://forum.kirupa.com/u/naa233)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 11:29pm UTC](https://forum.kirupa.com/t/nested-if-else/310921 "2010-06-22T23:29:39Z")

</div>

Forgive me for my lack of as3 vocabulary. I'm working on an image viewer that contains 14 projects, each being their own external swf. I am determined to get a functioning invisible next button that takes you to the ne…

---

## [Flash Christmas eCard cs3 or 4](https://forum.kirupa.com/t/flash-christmas-ecard-cs3-or-4/310919)

<div class="topic-metadata">

**Author:** [@jelly46](https://forum.kirupa.com/u/jelly46)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 10:26pm UTC](https://forum.kirupa.com/t/flash-christmas-ecard-cs3-or-4/310919 "2010-06-22T22:26:55Z")

</div>

I am kind of new to flash As i am a web developer i have been asked to develop an e-card Description: A Christmas Card Animated kids drawing that opens up and into a card that the user that write a message Do y…

---

## [Reliable AS3 multiple keypress](https://forum.kirupa.com/t/reliable-as3-multiple-keypress/310916)

<div class="topic-metadata">

**Author:** [@bhnh](https://forum.kirupa.com/u/bhnh)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:56pm UTC](https://forum.kirupa.com/t/reliable-as3-multiple-keypress/310916 "2010-06-22T20:56:36Z")

</div>

I recently finished a Flash game under a bone-crushing deadline. I was writing it in AS3 and realized that the good ol' \[COLOR=royalblue\]if(Key.isDown())\[/COLOR\] method was no longer with us. Upon scouting around I fou…

---

## [Getting Movie Clip from Library in AS class](https://forum.kirupa.com/t/getting-movie-clip-from-library-in-as-class/310915)

<div class="topic-metadata">

**Author:** [@blakem](https://forum.kirupa.com/u/blakem)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:15pm UTC](https://forum.kirupa.com/t/getting-movie-clip-from-library-in-as-class/310915 "2010-06-22T20:15:45Z")

</div>

I am working on a flash game that I am building in Flash Builder 4. I have a library of movieclips in the FLA file and need to create instances of these movieclips within objects of a custom class. I am unsure how to ref…

---

## [Dynamic htmlText - Unable to center it](https://forum.kirupa.com/t/dynamic-htmltext-unable-to-center-it/310914)

<div class="topic-metadata">

**Author:** [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:06pm UTC](https://forum.kirupa.com/t/dynamic-htmltext-unable-to-center-it/310914 "2010-06-22T20:06:03Z")

</div>

Hi I need to be center htmlText loaded from XML into an autosize textfield. I've already tried to edit format, autosize center, but it stay at left. Here is my code, can you help ? var myFont2:Font = new Font2(); te…

---

## [\[AS1.0 Flash CS5\] Text form only accepting certain characters](https://forum.kirupa.com/t/as1-0-flash-cs5-text-form-only-accepting-certain-characters/310913)

<div class="topic-metadata">

**Author:** [@bryantjcoffey](https://forum.kirupa.com/u/bryantjcoffey)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 8:00pm UTC](https://forum.kirupa.com/t/as1-0-flash-cs5-text-form-only-accepting-certain-characters/310913 "2010-06-22T20:00:54Z")

</div>

Hey I just recently got Flash CS5 and am in process of customizing a templated flash website. I went in and as I was completing a mailto form I tested the movie and the text fields only accept the characters: 9, a, m, n…

---

## [removeChild on an MC from my library](https://forum.kirupa.com/t/removechild-on-an-mc-from-my-library/310909)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 6:27pm UTC](https://forum.kirupa.com/t/removechild-on-an-mc-from-my-library/310909 "2010-06-22T18:27:02Z")

</div>

Hi, I have an MC that is called from my library when there is a specific error in my movie. My problem is that I cant manage to remove the movie clip when it is on the screen. I have a errorclose\_mc button in the err…

---

## [MC's holding custom variables](https://forum.kirupa.com/t/mcs-holding-custom-variables/310907)

<div class="topic-metadata">

**Author:** [@Cablestein](https://forum.kirupa.com/u/Cablestein)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 6:18pm UTC](https://forum.kirupa.com/t/mcs-holding-custom-variables/310907 "2010-06-22T18:18:26Z")

</div>

Hi Having a bunch of dynamically-created MC's, what is the best way to store custom variables for each MC? Do I just make a hidden textfield inside each MC to hold the data? For example I have MC's called: -Apple1 -…

---

## [Stage Size — MX 04 7.0](https://forum.kirupa.com/t/stage-size-mx-04-7-0/310906)

<div class="topic-metadata">

**Author:** [@oscartellez](https://forum.kirupa.com/u/oscartellez)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 6:13pm UTC](https://forum.kirupa.com/t/stage-size-mx-04-7-0/310906 "2010-06-22T18:13:28Z")

</div>

i am using MX 2004 7.0. the stage size i have is 336 x 280. when i export to .swf i open in browser and flash blows up to fit the browser window. I dont want that. I want the .swf file to ope at 336 x 280. HELP PLEASE!

---

## [AMF vs. XML -- not any smaller?](https://forum.kirupa.com/t/amf-vs-xml-not-any-smaller/310905)

<div class="topic-metadata">

**Author:** [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 6:06pm UTC](https://forum.kirupa.com/t/amf-vs-xml-not-any-smaller/310905 "2010-06-22T18:06:11Z")

</div>

Edit: HEY, I'm dumb. Make sure you call bytes.compress() if you want compression. Lolz. I'm testing out AMF to see if I can save some file size, so I wrote a quick AIR2 test to see what the size difference is like b…

---

## [How could I refine this script with only one Graphic var](https://forum.kirupa.com/t/how-could-i-refine-this-script-with-only-one-graphic-var/310902)

<div class="topic-metadata">

**Author:** [@As\_quot\_g\_quot](https://forum.kirupa.com/u/As_quot_g_quot)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 5:20pm UTC](https://forum.kirupa.com/t/how-could-i-refine-this-script-with-only-one-graphic-var/310902 "2010-06-22T17:20:08Z")

</div>

I want to create 1 variable for the Graphic's instead of the current script wit 4. I've been using an array with loop but t no avail....Here is the working version: var buttons:Sprite = new Sprite(); var gr4:Graph…

---

## [Returning Multiple Objects from Function?](https://forum.kirupa.com/t/returning-multiple-objects-from-function/310900)

<div class="topic-metadata">

**Author:** [@as3ohh](https://forum.kirupa.com/u/as3ohh)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 4:53pm UTC](https://forum.kirupa.com/t/returning-multiple-objects-from-function/310900 "2010-06-22T16:53:06Z")

</div>

Hey Friends, I have a function that returns an object full of data pulled when an XML file gets parsed. But I also need to use an array object with additional data. That array also gets built in the same function. Is the…

---

## [Video has no audio after importing](https://forum.kirupa.com/t/video-has-no-audio-after-importing/310899)

<div class="topic-metadata">

**Author:** [@jpearson311](https://forum.kirupa.com/u/jpearson311)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 4:37pm UTC](https://forum.kirupa.com/t/video-has-no-audio-after-importing/310899 "2010-06-22T16:37:10Z")

</div>

Using Flash CS4, I've imported a .mov video, went through the import video steps (i.e., choosing a file path, skin, etc.) and then published the swf. It looks and plays great, but I'm not getting any audio. Any idea wh…

---

## [Blog Roll problem](https://forum.kirupa.com/t/blog-roll-problem/310898)

<div class="topic-metadata">

**Author:** [@adalast](https://forum.kirupa.com/u/adalast)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 4:14pm UTC](https://forum.kirupa.com/t/blog-roll-problem/310898 "2010-06-22T16:14:26Z")

</div>

I am trying to make a blog roll program that will put the titles of a client’s blog on their homepage. i ran through a tutorial that got most of it working, but when i went to move from the tutorial to the client’s prog…

---

## [Duplicating dynamically generated MovieClip](https://forum.kirupa.com/t/duplicating-dynamically-generated-movieclip/310895)

<div class="topic-metadata">

**Author:** [@jabarwaki](https://forum.kirupa.com/u/jabarwaki)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 3:05pm UTC](https://forum.kirupa.com/t/duplicating-dynamically-generated-movieclip/310895 "2010-06-22T15:05:23Z")

</div>

\[FONT=Verdana\]Hi, I am loading several images from XML to dynamically generated movieclips (mc\_1, mc\_2, mc\_3...etc.). Then adding all of them into a parent MovieClip - imageContainerMc. So now, imageContainerMc holds m…

---

## [Error #2044: Unhandled skinError:. text=Error #2121: Security sandbox violation](https://forum.kirupa.com/t/error-2044-unhandled-skinerror-text-error-2121-security-sandbox-violation/310893)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 3:00pm UTC](https://forum.kirupa.com/t/error-2044-unhandled-skinerror-text-error-2121-security-sandbox-violation/310893 "2010-06-22T15:00:21Z")

</div>

Hello, I'm getting a security error while trying to load a custom skin to my player from my server. I've already tried placing the allowDomain with "\*" wildcard, and still it doesn't work. \*\* Here's the error:\*\* \*Err…

---

## [Real Life Color Mixing](https://forum.kirupa.com/t/real-life-color-mixing/310890)

<div class="topic-metadata">

**Author:** [@dewey](https://forum.kirupa.com/u/dewey)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 2:11pm UTC](https://forum.kirupa.com/t/real-life-color-mixing/310890 "2010-06-22T14:11:08Z")

</div>

Hey Everyone... I'm curious if anyone has ever worked enough with the ColorTransform (or any other) classes in AS3 that would allow you to mix colors as they would mix in real life... I'm not sure if there is a proper …

---

## [Flash bug: img in textField not linking](https://forum.kirupa.com/t/flash-bug-img-in-textfield-not-linking/310886)

<div class="topic-metadata">

**Author:** [@johnnymeerkat](https://forum.kirupa.com/u/johnnymeerkat)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 12:35pm UTC](https://forum.kirupa.com/t/flash-bug-img-in-textfield-not-linking/310886 "2010-06-22T12:35:51Z")

</div>

Yesterday I spotted what seemed to be a minor issue with having a linked image in a dynamic textField. That minor issue has turned into a massive headache. Basically, this doesn't work as expected: myField.htmlText …

---

## [Steel Company Website](https://forum.kirupa.com/t/steel-company-website/310885)

<div class="topic-metadata">

**Author:** [@kmarnob](https://forum.kirupa.com/u/kmarnob)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 9:16am UTC](https://forum.kirupa.com/t/steel-company-website/310885 "2010-06-22T09:16:02Z")

</div>

Hi Every one, Could you please help me to provide URL of best Steel company website? Flash based will be great... Thank you.

---

## [What is this thing I sometimes use?](https://forum.kirupa.com/t/what-is-this-thing-i-sometimes-use/310884)

<div class="topic-metadata">

**Author:** [@e\_owen](https://forum.kirupa.com/u/e_owen)\
**Replies:** 0\
**Last updated:** [June 22, 2010, 9:11am UTC](https://forum.kirupa.com/t/what-is-this-thing-i-sometimes-use/310884 "2010-06-22T09:11:27Z")

</div>

I sometimes use a statement(?) that I have today forgotten how to write and now I can't find it on Google because I don't know what to look for... It looks something like the below and is like a shorthand if.. else (…

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

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