# flash

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

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

**Page:** 217

---

## [Failure to Read XML](https://forum.kirupa.com/t/failure-to-read-xml/318336)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 3:44pm UTC](https://forum.kirupa.com/t/failure-to-read-xml/318336 "2011-01-17T15:44:57Z")

</div>

All, I made an XML file and then replicated that in a PHP file. I then just executed my PHP file and then viewed the source of it and then copied that into an XML file and had my AS read that file it works fine. However,…

---

## [Naming TextFields created using loop](https://forum.kirupa.com/t/naming-textfields-created-using-loop/318334)

<div class="topic-metadata">

**Author:** [@zeeto](https://forum.kirupa.com/u/zeeto)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 2:13pm UTC](https://forum.kirupa.com/t/naming-textfields-created-using-loop/318334 "2011-01-17T14:13:04Z")

</div>

Hi guys, I can't figure out what is the syntax for assigning names to textfields created dynamically using a loop. for (var i:uint=0; i\<10; i++) { var myText:TextField = new TextField(); myText.defaultTextForma…

---

## [Endless SWF loading](https://forum.kirupa.com/t/endless-swf-loading/318333)

<div class="topic-metadata">

**Author:** [@Zyl](https://forum.kirupa.com/u/Zyl)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 12:24pm UTC](https://forum.kirupa.com/t/endless-swf-loading/318333 "2011-01-17T12:24:41Z")

</div>

Hello everyone, I have one wierd question, I would be very grateful if someone can help ... I bought THIS template on Activeden. The temp. is ok, but when I want to load SWF file into stage there is an bug ... endless …

---

## [AS2 flash game](https://forum.kirupa.com/t/as2-flash-game/318330)

<div class="topic-metadata">

**Author:** [@Shahnaaz](https://forum.kirupa.com/u/Shahnaaz)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 11:48am UTC](https://forum.kirupa.com/t/as2-flash-game/318330 "2011-01-17T11:48:57Z")

</div>

I have a project to do and am feeling rather stressed about it. I need to create a flash game whereby there will be 6 pick up line voices and you need to match the voices to the faces of who you think the voice belong…

---

## [Turning off MC](https://forum.kirupa.com/t/turning-off-mc/318328)

<div class="topic-metadata">

**Author:** [@Igor\_Kool](https://forum.kirupa.com/u/Igor_Kool)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 10:40am UTC](https://forum.kirupa.com/t/turning-off-mc/318328 "2011-01-17T10:40:36Z")

</div>

Hello everyone, I have tried searching, but didn't find answer, so I have to post this. I have a button, in default, and rolled over state, it has Movie Clips. however, when entering the scene, the Movie Clip in defaul…

---

## [Vertical accordian, XML, AS2?](https://forum.kirupa.com/t/vertical-accordian-xml-as2/318327)

<div class="topic-metadata">

**Author:** [@Captain\_Planet](https://forum.kirupa.com/u/Captain_Planet)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 8:33am UTC](https://forum.kirupa.com/t/vertical-accordian-xml-as2/318327 "2011-01-17T08:33:03Z")

</div>

Hi, folks. I need to create an xml-driven vertical accordian menu (you know....like a stack menu which expands and shows the submenu). Now for things like this I can usually hack my own solution together from other ex…

---

## [As2 Array button linking help!](https://forum.kirupa.com/t/as2-array-button-linking-help/318322)

<div class="topic-metadata">

**Author:** [@jdogg4000](https://forum.kirupa.com/u/jdogg4000)\
**Replies:** 0\
**Last updated:** [January 17, 2011, 1:06am UTC](https://forum.kirupa.com/t/as2-array-button-linking-help/318322 "2011-01-17T01:06:15Z")

</div>

I'm a bit of an actionscript noob, but I've built these website menu buttons and used some ActionScript 2.0 code i ran through in a tutorial on MovieClip Buttons. Trouble is, I need to adjust the AS to link the buttons…

---

## [A remove Child Caller question](https://forum.kirupa.com/t/a-remove-child-caller-question/318317)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 10:01pm UTC](https://forum.kirupa.com/t/a-remove-child-caller-question/318317 "2011-01-16T22:01:53Z")

</div>

Here's the class package { import flash.display.MovieClip; import flash.events.Event; import flash.media.SoundTransform import com.greensock.easing.\*; public class StarFieldView extends MovieClip { private v…

---

## [Package problem: function an undefined property](https://forum.kirupa.com/t/package-problem-function-an-undefined-property/318316)

<div class="topic-metadata">

**Author:** [@lkingman](https://forum.kirupa.com/u/lkingman)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 7:52pm UTC](https://forum.kirupa.com/t/package-problem-function-an-undefined-property/318316 "2011-01-16T19:52:39Z")

</div>

I'm trying to convert a working action into a package. Everything works fine in a Flash frame. I copied and pasted it into a class declaration and made the main function a public function. The action includes a timer dec…

---

## [Read a Link in AS from XML](https://forum.kirupa.com/t/read-a-link-in-as-from-xml/318315)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 7:18pm UTC](https://forum.kirupa.com/t/read-a-link-in-as-from-xml/318315 "2011-01-16T19:18:29Z")

</div>

All, I'm trying to have my script read an XML file and in the XML file I'm trying to put a link. If I have just regular text in the XML file it works fine. If I have it like the following it works fine: \<images images…

---

## [Actionscript 3 collision detection, stopping objects from going through eachother](https://forum.kirupa.com/t/actionscript-3-collision-detection-stopping-objects-from-going-through-eachother/318314)

<div class="topic-metadata">

**Author:** [@RapsFan](https://forum.kirupa.com/u/RapsFan)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 7:09pm UTC](https://forum.kirupa.com/t/actionscript-3-collision-detection-stopping-objects-from-going-through-eachother/318314 "2011-01-16T19:09:38Z")

</div>

Hello everyone. I'm running a HitTestPoint to detect when two of my mc's collide, but I don't want them to be able to go right through each other. Someone suggested I find the x,y coords of the moving object when the col…

---

## [Trying to gotoAndStop as soon as file loads](https://forum.kirupa.com/t/trying-to-gotoandstop-as-soon-as-file-loads/318313)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 7:04pm UTC](https://forum.kirupa.com/t/trying-to-gotoandstop-as-soon-as-file-loads/318313 "2011-01-16T19:04:10Z")

</div>

For some reason, gotoAndStop isn't working when I call it from either the main timeline of my main classes constructor. I'm guessing I need to call it once everything has loaded - but I don't what what event to fire it o…

---

## [Get image size dimensions from a URL](https://forum.kirupa.com/t/get-image-size-dimensions-from-a-url/318309)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 4:39pm UTC](https://forum.kirupa.com/t/get-image-size-dimensions-from-a-url/318309 "2011-01-16T16:39:22Z")

</div>

All, I'm loading images from an XML file and I know what the image name is, however this is in a string variable. How can I get the dimensions of the image from this? Thanks for the help in advance.

---

## [Parameter child must be non-null](https://forum.kirupa.com/t/parameter-child-must-be-non-null/318307)

<div class="topic-metadata">

**Author:** [@orgio](https://forum.kirupa.com/u/orgio)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 1:38pm UTC](https://forum.kirupa.com/t/parameter-child-must-be-non-null/318307 "2011-01-16T13:38:08Z")

</div>

can someone help me please? i have an external class that creates an instance named mc. then mc.addEventListener(MouseEvent.MOUSE\_DOWN, drag); in function drag, if i try: addChild(mc); it works fine but when i try: a…

---

## [Adding MC's to 2D Array](https://forum.kirupa.com/t/adding-mcs-to-2d-array/318299)

<div class="topic-metadata">

**Author:** [@Mezmiro](https://forum.kirupa.com/u/Mezmiro)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 2:39am UTC](https://forum.kirupa.com/t/adding-mcs-to-2d-array/318299 "2011-01-16T02:39:20Z")

</div>

I'm utilizing this code for a photo gallery, and I'm having issues with adding movie clips to arrays. This code compiles with an error stating "Label must be a simple identifier." //Encapsulating mc for thumbnail imag…

---

## [Load .txt file problem](https://forum.kirupa.com/t/load-txt-file-problem/318297)

<div class="topic-metadata">

**Author:** [@RobertPallister](https://forum.kirupa.com/u/RobertPallister)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 11:12pm UTC](https://forum.kirupa.com/t/load-txt-file-problem/318297 "2011-01-15T23:12:07Z")

</div>

Hey I am using the load command to load content from a .txt file on my server. I have it all working just find when I preview the swf file in flash and when I view the .swf in my web browser from my server. The problem w…

---

## [Image Resize with Image](https://forum.kirupa.com/t/image-resize-with-image/318294)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 10:04pm UTC](https://forum.kirupa.com/t/image-resize-with-image/318294 "2011-01-15T22:04:58Z")

</div>

All, I already have an image that gets resized. Is there an easy way to add a text box on the bottom of it so that it behaves the same way as the picture?? Any ideas on a good way to do this I'd appreciate it. Thanks i…

---

## [Link Movie Clip inside Movie Clip AS2](https://forum.kirupa.com/t/link-movie-clip-inside-movie-clip-as2/318292)

<div class="topic-metadata">

**Author:** [@demetrisv](https://forum.kirupa.com/u/demetrisv)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 7:30pm UTC](https://forum.kirupa.com/t/link-movie-clip-inside-movie-clip-as2/318292 "2011-01-15T19:30:12Z")

</div>

Im am creating a website in Flash CS5 and Im having trouble with linking a button inside a movie clip inside another movie clip. In theory it should work as ive tried but doesn't. I have a movieclip called content for …

---

## [Order of things when initializing flash](https://forum.kirupa.com/t/order-of-things-when-initializing-flash/318291)

<div class="topic-metadata">

**Author:** [@DespeRat](https://forum.kirupa.com/u/DespeRat)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 6:59pm UTC](https://forum.kirupa.com/t/order-of-things-when-initializing-flash/318291 "2011-01-15T18:59:55Z")

</div>

So, I have this main class: public class Chloe extends MovieClip { public var key:Controls = new Controls(); public static var box:Sprite = new Sprite(); G.boxRef = box; public static var cow:Cow=new Cow(); and in th…

---

## [Flash/AS3 class path problems](https://forum.kirupa.com/t/flash-as3-class-path-problems/318290)

<div class="topic-metadata">

**Author:** [@lkingman](https://forum.kirupa.com/u/lkingman)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 6:22pm UTC](https://forum.kirupa.com/t/flash-as3-class-path-problems/318290 "2011-01-15T18:22:40Z")

</div>

Brief: I execute a method in a .fla file which works fine if the package invoked is in the same folder or below, but it does not work when I declare the class path in Publish Settings even though Flash apparently imports…

---

## [Play in Reverse/Creating a Class](https://forum.kirupa.com/t/play-in-reverse-creating-a-class/318287)

<div class="topic-metadata">

**Author:** [@na\_il](https://forum.kirupa.com/u/na_il)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 4:37pm UTC](https://forum.kirupa.com/t/play-in-reverse-creating-a-class/318287 "2011-01-15T16:37:48Z")

</div>

Okay so i spent alot of time and created an animation all in code, something like 200 lines long- so i wont post it on here unless one request. Now i want to run this animation in reverse...and I don't exactly know how …

---

## [\[As3\] Class movieclip](https://forum.kirupa.com/t/as3-class-movieclip/318285)

<div class="topic-metadata">

**Author:** [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 3:54pm UTC](https://forum.kirupa.com/t/as3-class-movieclip/318285 "2011-01-15T15:54:55Z")

</div>

Edit Sorry, I fixed it.

---

## [External SWF with movieclips in it](https://forum.kirupa.com/t/external-swf-with-movieclips-in-it/318284)

<div class="topic-metadata">

**Author:** [@richardgalido](https://forum.kirupa.com/u/richardgalido)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 2:32pm UTC](https://forum.kirupa.com/t/external-swf-with-movieclips-in-it/318284 "2011-01-15T14:32:35Z")

</div>

Good Day Everyone, I am newbie in the forum and I have a question thats been on my mind for a couple of weeks. I have swf files and inside those swf files have components like movieclips(with instance names)and dynam…

---

## [Stuck at Error #2136:](https://forum.kirupa.com/t/stuck-at-error-2136/318281)

<div class="topic-metadata">

**Author:** [@aditi\_bk](https://forum.kirupa.com/u/aditi_bk)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 9:54am UTC](https://forum.kirupa.com/t/stuck-at-error-2136/318281 "2011-01-15T09:54:15Z")

</div>

I tried to gather my bearings a little with AS3..and tried out a trial class....ALL that the class does is create an object of the external class, and then call a function which displays the alpha value of a movieclip pa…

---

## [\[Flash CS3\] Need urgent help with hittest](https://forum.kirupa.com/t/flash-cs3-need-urgent-help-with-hittest/318279)

<div class="topic-metadata">

**Author:** [@Shturmi](https://forum.kirupa.com/u/Shturmi)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 9:29am UTC](https://forum.kirupa.com/t/flash-cs3-need-urgent-help-with-hittest/318279 "2011-01-15T09:29:00Z")

</div>

Hi all. I'm trying to create some sort of a recycle bin in a presentation of mine, meaning that if you drag a symbol to it ("it" being the movie clip that represents the recycle bin) the symbol would disappear. What I…

---

## [A challenge: User created graphic constants](https://forum.kirupa.com/t/a-challenge-user-created-graphic-constants/318278)

<div class="topic-metadata">

**Author:** [@unboggle](https://forum.kirupa.com/u/unboggle)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 6:31am UTC](https://forum.kirupa.com/t/a-challenge-user-created-graphic-constants/318278 "2011-01-15T06:31:45Z")

</div>

Howdy. Thanks to Shaedo, I was able to simulate a 4 x 4 pixel grid on the stage where users can plot 4 x 4 pixel dots. I've also added a color picker. I'm trying to figure out how to make each and every dot that's c…

---

## [Flash in CS4-speedometer](https://forum.kirupa.com/t/flash-in-cs4-speedometer/318277)

<div class="topic-metadata">

**Author:** [@nancym](https://forum.kirupa.com/u/nancym)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 6:14am UTC](https://forum.kirupa.com/t/flash-in-cs4-speedometer/318277 "2011-01-15T06:14:09Z")

</div>

I am new to flash. I have read Karupa's tutorial for flash in CS4-very helpful, but only to move the actual image. I would like to create a speedometer with a moving needle. I do not know how to start this. Note: I …

---

## [Term is Undefined Help](https://forum.kirupa.com/t/term-is-undefined-help/318276)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 4:27am UTC](https://forum.kirupa.com/t/term-is-undefined-help/318276 "2011-01-15T04:27:58Z")

</div>

All, I'm trying to load some images and I'm getting the following error: TypeError: Error #1010: A term is undefined and has no properties. at main\_cs3\_updated\_v2\_fla::gallery\_big\_resize\_102/frame16() The code is ref…

---

## [Button error only on school network](https://forum.kirupa.com/t/button-error-only-on-school-network/318274)

<div class="topic-metadata">

**Author:** [@mchaines1](https://forum.kirupa.com/u/mchaines1)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 2:49am UTC](https://forum.kirupa.com/t/button-error-only-on-school-network/318274 "2011-01-15T02:49:46Z")

</div>

I'm a teacher and learning AS3 primarily as a tool for creating content for my students-- animation, video, and interactive quizzes. I'm just getting started, so forgive me if there's something basic I'm overlooking her…

---

## [4 x 4px grid on stage](https://forum.kirupa.com/t/4-x-4px-grid-on-stage/318273)

<div class="topic-metadata">

**Author:** [@unboggle](https://forum.kirupa.com/u/unboggle)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 2:23am UTC](https://forum.kirupa.com/t/4-x-4px-grid-on-stage/318273 "2011-01-15T02:23:11Z")

</div>

Hey everybody. I'm new to flash and at the risk of sounding like an idiot, here goes. My question is: How can I divide the stage up into a grid of 4 by 4px spaces? I'm trying to make an app that will let the user…

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

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