# flash

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

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

**Page:** 627

---

## [EventListener and user control](https://forum.kirupa.com/t/eventlistener-and-user-control/287856)

<div class="topic-metadata">

**Author:** [@warren](https://forum.kirupa.com/u/warren)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 2:28am UTC](https://forum.kirupa.com/t/eventlistener-and-user-control/287856 "2009-05-07T02:28:16Z")

</div>

Hello all. Thank you for the help! I call an mc1 (rg1, mb1) of 48 frames. Once the 48 frames cycles through once, it stops as designed (no looping). Q: How do I return control back to the user? For example, doubl…

---

## ["if" statement - Was wondering if anyone knew how to simplify this](https://forum.kirupa.com/t/if-statement-was-wondering-if-anyone-knew-how-to-simplify-this/287853)

<div class="topic-metadata">

**Author:** [@maxflash](https://forum.kirupa.com/u/maxflash)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 1:38am UTC](https://forum.kirupa.com/t/if-statement-was-wondering-if-anyone-knew-how-to-simplify-this/287853 "2009-05-07T01:38:26Z")

</div>

I've been developing a project where when six buttons (out of 28) are clicked it determines which animation will then play (there are 16 animations in total eg: Fanimation, FWanimation, FEanimation, FAanimation, Wanimati…

---

## [Reading and writing xml](https://forum.kirupa.com/t/reading-and-writing-xml/287847)

<div class="topic-metadata">

**Author:** [@jkirkerx](https://forum.kirupa.com/u/jkirkerx)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 11:36pm UTC](https://forum.kirupa.com/t/reading-and-writing-xml/287847 "2009-05-06T23:36:08Z")

</div>

I've been searching all morning for some samples on how to read and write xml files. Here's what I have so far. My XML File called Call2Action.xml \<?xml version="1.0" encoding="utf-8"?\> \<Call2Action version="1.0" creat…

---

## [How do I pull a variable from php (or XML) into dynamic textbox?](https://forum.kirupa.com/t/how-do-i-pull-a-variable-from-php-or-xml-into-dynamic-textbox/287846)

<div class="topic-metadata">

**Author:** [@brellis](https://forum.kirupa.com/u/brellis)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 11:21pm UTC](https://forum.kirupa.com/t/how-do-i-pull-a-variable-from-php-or-xml-into-dynamic-textbox/287846 "2009-05-06T23:21:28Z")

</div>

OK, I have my php and MySQL working fine. I'm pulling the data. I found how to format the data that is returned in the php as XML. My problem is I can't get my Flash textbox to load the variable from the php file. Like m…

---

## [Manipulating instances from external class](https://forum.kirupa.com/t/manipulating-instances-from-external-class/287845)

<div class="topic-metadata">

**Author:** [@Stubbs](https://forum.kirupa.com/u/Stubbs)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 10:56pm UTC](https://forum.kirupa.com/t/manipulating-instances-from-external-class/287845 "2009-05-06T22:56:33Z")

</div>

Hey, I've got an image slider that I'm trying to convert to external classes (OOP and everything). I've got four bars on stage (bar1, bar2, etc.) and I'm shifting them left and right from a "Shifter" class through libra…

---

## [Unloading image in loader on thumb click](https://forum.kirupa.com/t/unloading-image-in-loader-on-thumb-click/287838)

<div class="topic-metadata">

**Author:** [@danEdmonds](https://forum.kirupa.com/u/danEdmonds)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 9:35pm UTC](https://forum.kirupa.com/t/unloading-image-in-loader-on-thumb-click/287838 "2009-05-06T21:35:37Z")

</div>

Alright. I finally found a tutorial that works for what I am trying to do. The thumbs load on a grid and when I click on the thumb they load in the loader. Now I am having trouble removing them. The tutorial has the remo…

---

## [Not Centering Correctly!](https://forum.kirupa.com/t/not-centering-correctly/287836)

<div class="topic-metadata">

**Author:** [@split67](https://forum.kirupa.com/u/split67)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 9:12pm UTC](https://forum.kirupa.com/t/not-centering-correctly/287836 "2009-05-06T21:12:50Z")

</div>

I've attached a screen capture of what is going on. Why is the below code not working properly? I've looked everywhere and everything is the same for centering a video on the stage. For some reason, it's moving the top l…

---

## [Update Libary Item, All Instances Reduced to 25% of Normal Size](https://forum.kirupa.com/t/update-libary-item-all-instances-reduced-to-25-of-normal-size/287833)

<div class="topic-metadata">

**Author:** [@DrZoop](https://forum.kirupa.com/u/DrZoop)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 8:32pm UTC](https://forum.kirupa.com/t/update-libary-item-all-instances-reduced-to-25-of-normal-size/287833 "2009-05-06T20:32:54Z")

</div>

\--Back Story-- After much procrastination, I had to bite the bullet and get back to work on a pre-existing Flash game. The artists have given me hundreds of new images. I told the artists to keep all the file names t…

---

## [Iterate Through Library](https://forum.kirupa.com/t/iterate-through-library/287832)

<div class="topic-metadata">

**Author:** [@DrZoop](https://forum.kirupa.com/u/DrZoop)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 8:20pm UTC](https://forum.kirupa.com/t/iterate-through-library/287832 "2009-05-06T20:20:39Z")

</div>

\---Question-- I am curious if there is a way to "iterate through the library." Meaning, write a for loop that goes through each item in the library. If there is such a thing, it would probably only include linked it…

---

## [Load html Text file](https://forum.kirupa.com/t/load-html-text-file/287830)

<div class="topic-metadata">

**Author:** [@cortezcreations](https://forum.kirupa.com/u/cortezcreations)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 8:09pm UTC](https://forum.kirupa.com/t/load-html-text-file/287830 "2009-05-06T20:09:56Z")

</div>

Hello all hoping someone can help out here. I'm trying to setup a WYSIWYG text editor for a flash text CMS. the first bit I'm stuck on is loading a saved text file here is the current actionscript that loads the text i…

---

## [PHP and ComboBox AS2.0](https://forum.kirupa.com/t/php-and-combobox-as2-0/287829)

<div class="topic-metadata">

**Author:** [@neonreel](https://forum.kirupa.com/u/neonreel)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 8:04pm UTC](https://forum.kirupa.com/t/php-and-combobox-as2-0/287829 "2009-05-06T20:04:47Z")

</div>

Hi, I have searched far and wide on google and various forums and can not come up with a solid answer. I have a contact form that I am modifying into a questionnaire form using Input text boxes and PHP. My PHP is sim…

---

## [What is wrong with my script](https://forum.kirupa.com/t/what-is-wrong-with-my-script/287828)

<div class="topic-metadata">

**Author:** [@daniel\_mihalcea](https://forum.kirupa.com/u/daniel_mihalcea)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 7:43pm UTC](https://forum.kirupa.com/t/what-is-wrong-with-my-script/287828 "2009-05-06T19:43:53Z")

</div>

Hello there. I have some functions that are creating a table with items and I have the possibility to delete that elements. My table appear if I press a button. And my elements are represented by arrays. My problem is th…

---

## [\[FlashCS3/AS2\] Unable to target dynamically created MC](https://forum.kirupa.com/t/flashcs3-as2-unable-to-target-dynamically-created-mc/287827)

<div class="topic-metadata">

**Author:** [@eclosion](https://forum.kirupa.com/u/eclosion)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 7:06pm UTC](https://forum.kirupa.com/t/flashcs3-as2-unable-to-target-dynamically-created-mc/287827 "2009-05-06T19:06:56Z")

</div>

Hi all, I'm having trouble targeting a dynamically created, nested MC. Basically, I'm creating a dropdown menu that populates according to data from an external XML file. Each of the instances of cityName\_mc are dyna…

---

## [Flash Contact Form (AS2)](https://forum.kirupa.com/t/flash-contact-form-as2/287824)

<div class="topic-metadata">

**Author:** [@crazy\_clairey](https://forum.kirupa.com/u/crazy_clairey)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 6:36pm UTC](https://forum.kirupa.com/t/flash-contact-form-as2/287824 "2009-05-06T18:36:36Z")

</div>

Hi there, I have foudn lots of tutorials online on how to make a contact form in flash but they all seem to be within movie clips. Is there a way that I can just create input text boxes without the movieclip? I am want…

---

## [Movie clip position Cookie](https://forum.kirupa.com/t/movie-clip-position-cookie/287821)

<div class="topic-metadata">

**Author:** [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 5:42pm UTC](https://forum.kirupa.com/t/movie-clip-position-cookie/287821 "2009-05-06T17:42:21Z")

</div>

\[FONT=Arial\]Is there any way that I can enable users save the position of a draggable box (for eg with cookies) and then press a button to reset the MC back to where it started off?\[/FONT\] \[FONT=Arial\]I am using Action…

---

## [Extract Number inside a String](https://forum.kirupa.com/t/extract-number-inside-a-string/287820)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 5:34pm UTC](https://forum.kirupa.com/t/extract-number-inside-a-string/287820 "2009-05-06T17:34:10Z")

</div>

HI I have the following string that is loaded from an API in a External site. var myString:String = 'code="33", format="jpg"'; How can I extract the 33 or the JPG inside the String. I know the String format is alwa…

---

## [as3 contact form: null object reference](https://forum.kirupa.com/t/as3-contact-form-null-object-reference/287815)

<div class="topic-metadata">

**Author:** [@j\_polo9](https://forum.kirupa.com/u/j_polo9)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:37pm UTC](https://forum.kirupa.com/t/as3-contact-form-null-object-reference/287815 "2009-05-06T16:37:22Z")

</div>

I am getting the error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MySite\_fla::contactForm\_8/sendForm() Any idea what the null object reference is is the sendForm() meth…

---

## [Flash Library Items as .swc files for Flex - with custom functionality](https://forum.kirupa.com/t/flash-library-items-as-swc-files-for-flex-with-custom-functionality/287813)

<div class="topic-metadata">

**Author:** [@stephank](https://forum.kirupa.com/u/stephank)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:25pm UTC](https://forum.kirupa.com/t/flash-library-items-as-swc-files-for-flex-with-custom-functionality/287813 "2009-05-06T16:25:37Z")

</div>

Hi Forum I would like to use multiple library items, created in the Flash IDE, with the same baseclass in Flex Builder3. In my case it would be a timeline containing 4 strips. Each strip has the same movieClip insta…

---

## [FLV Height problem](https://forum.kirupa.com/t/flv-height-problem/287810)

<div class="topic-metadata">

**Author:** [@secci](https://forum.kirupa.com/u/secci)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 3:22pm UTC](https://forum.kirupa.com/t/flv-height-problem/287810 "2009-05-06T15:22:13Z")

</div>

i am trying to get the height of an flv, and whenever i try.. it comes up wrong for example it keeps coming up with 240 instead of 360 which it should be... any ideas? i have attached code below import fl.video.\*; va…

---

## [gotoAndPlay in AS3 fundamentally flawed?](https://forum.kirupa.com/t/gotoandplay-in-as3-fundamentally-flawed/287805)

<div class="topic-metadata">

**Author:** [@Roboman](https://forum.kirupa.com/u/Roboman)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 2:41pm UTC](https://forum.kirupa.com/t/gotoandplay-in-as3-fundamentally-flawed/287805 "2009-05-06T14:41:37Z")

</div>

Hey all, I've recently come across what I think is a legitimate bug in the behaviour of gotoAndPlay in AS3 (using flash CS3), and I'm astounded I hadn't found it sooner. Please don't write this "bug" off as an artefact…

---

## [Making a imagezoom where content can't be stealed easily](https://forum.kirupa.com/t/making-a-imagezoom-where-content-cant-be-stealed-easily/287800)

<div class="topic-metadata">

**Author:** [@foobar\_fighter](https://forum.kirupa.com/u/foobar_fighter)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 12:39pm UTC](https://forum.kirupa.com/t/making-a-imagezoom-where-content-cant-be-stealed-easily/287800 "2009-05-06T12:39:16Z")

</div>

I'm going to build an application where I display an image, and people can use a magnifier to view the image in detail. However, I'd prefer the full resolution image not to be copied easily. I understand it's impossible …

---

## [Rotating Web Banners](https://forum.kirupa.com/t/rotating-web-banners/287799)

<div class="topic-metadata">

**Author:** [@Ebreezesoccer](https://forum.kirupa.com/u/Ebreezesoccer)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 12:25pm UTC](https://forum.kirupa.com/t/rotating-web-banners/287799 "2009-05-06T12:25:13Z")

</div>

I have three web banners and I am wanting a new web banner to display a new banner in the same position after the previous banner gets done playing. I want these to load in a blank movie clip dynamicly from the same fo…

---

## [Removing children and Arrays?](https://forum.kirupa.com/t/removing-children-and-arrays/287796)

<div class="topic-metadata">

**Author:** [@SonOfChaos](https://forum.kirupa.com/u/SonOfChaos)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 11:51am UTC](https://forum.kirupa.com/t/removing-children-and-arrays/287796 "2009-05-06T11:51:53Z")

</div>

Hi everybody, SOC here with my billionth question. Okay I have two arrays, one full of bullets, the other enemies. They compare each array and hit detect. The splice function is removing the Array instance of the enemy…

---

## [Access MC property inside the MC itself?](https://forum.kirupa.com/t/access-mc-property-inside-the-mc-itself/287794)

<div class="topic-metadata">

**Author:** [@Jazzperson](https://forum.kirupa.com/u/Jazzperson)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 11:11am UTC](https://forum.kirupa.com/t/access-mc-property-inside-the-mc-itself/287794 "2009-05-06T11:11:38Z")

</div>

Hi Kirupas! I have a small and properly very simple problem. I create a new Ball movieclip and sets the Uid property: var ball\_mc:Ball = new Ball(); ball\_mc.uID = "1232435"; addChild(ball\_mc); From outside the mo…

---

## [Images not appearing while publishing on web](https://forum.kirupa.com/t/images-not-appearing-while-publishing-on-web/287791)

<div class="topic-metadata">

**Author:** [@zona\_on](https://forum.kirupa.com/u/zona_on)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 10:27am UTC](https://forum.kirupa.com/t/images-not-appearing-while-publishing-on-web/287791 "2009-05-06T10:27:17Z")

</div>

Hi, I have created a Flash object which uses an xml to read the image path and few other attributes. I could successfully generate the swf and publish (html) the object. When I view menu.html, independently in a browse…

---

## [\[ActionScript 2\] - how to detect if one movieclip has moved higher than the other](https://forum.kirupa.com/t/actionscript-2-how-to-detect-if-one-movieclip-has-moved-higher-than-the-other/287790)

<div class="topic-metadata">

**Author:** [@AniKar](https://forum.kirupa.com/u/AniKar)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 9:22am UTC](https://forum.kirupa.com/t/actionscript-2-how-to-detect-if-one-movieclip-has-moved-higher-than-the-other/287790 "2009-05-06T09:22:30Z")

</div>

Hi All, I really need some help here :crying:. Am just a begineer with Actionscript but am picking up quite quickly. I been racking my brains and can't seem to find a solution. Basiaclly I've got 5 movieclips on the st…

---

## [Preload external text file can't display percentage](https://forum.kirupa.com/t/preload-external-text-file-cant-display-percentage/287783)

<div class="topic-metadata">

**Author:** [@iAMi](https://forum.kirupa.com/u/iAMi)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 6:08am UTC](https://forum.kirupa.com/t/preload-external-text-file-cant-display-percentage/287783 "2009-05-06T06:08:59Z")

</div>

I want to load an external text file, and display loading percentage in flash,so I could show user how far loading is completed. And the problem is I can see progress in trace window,no progross message displays in the t…

---

## [Close external FLV when complete](https://forum.kirupa.com/t/close-external-flv-when-complete/287778)

<div class="topic-metadata">

**Author:** [@imjess](https://forum.kirupa.com/u/imjess)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:30am UTC](https://forum.kirupa.com/t/close-external-flv-when-complete/287778 "2009-05-06T04:30:56Z")

</div>

Hi All, I have a button when clicked I want to play an external flv (this doesn't have to be used on the web) I just want it to close by itself once the flv has finished. I assume i need to use an eventlistener? But…

---

## [Component for codehints AS3 in flash CS4](https://forum.kirupa.com/t/component-for-codehints-as3-in-flash-cs4/287777)

<div class="topic-metadata">

**Author:** [@cavallari](https://forum.kirupa.com/u/cavallari)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:29am UTC](https://forum.kirupa.com/t/component-for-codehints-as3-in-flash-cs4/287777 "2009-05-06T04:29:32Z")

</div>

Hi everbody, i am just new in this forum, but not so new in Flash, and i want to share a component i have done for me, it´s very usefull for me and i hope for most users here. What it does? When you click "+" (add butt…

---

## [attachMovie funtion](https://forum.kirupa.com/t/attachmovie-funtion/287776)

<div class="topic-metadata">

**Author:** [@dlusiondone](https://forum.kirupa.com/u/dlusiondone)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:29am UTC](https://forum.kirupa.com/t/attachmovie-funtion/287776 "2009-05-06T04:29:14Z")

</div>

Hi guys, Is there anyway to disable a button once it has run the function? I have an mC that is being attached to a container mc on the stage via a button release. But each time the button is pressed it runs the funct…

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

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