# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=345

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

**Page:** 346

---

## [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…

---

## [World Creation Kit in FlashDevelop](https://forum.kirupa.com/t/world-creation-kit-in-flashdevelop/318311)

<div class="topic-metadata">

**Author:** [@TOdorus](https://forum.kirupa.com/u/TOdorus)\
**Replies:** 0\
**Last updated:** [January 16, 2011, 6:08pm UTC](https://forum.kirupa.com/t/world-creation-kit-in-flashdevelop/318311 "2011-01-16T18:08:12Z")

</div>

Hi guys, I've been researching some stuff lately, one of those things bieng the World Creation Kit (WCK). At the core it's a Alchemy port of Box2D, so it's execution is a lot faster than any pure AS3 library can ever a…

---

## [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…

---

## [Two forms in a single script](https://forum.kirupa.com/t/two-forms-in-a-single-script/318282)

<div class="topic-metadata">

**Author:** [@rumentab](https://forum.kirupa.com/u/rumentab)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 2:03pm UTC](https://forum.kirupa.com/t/two-forms-in-a-single-script/318282 "2011-01-15T14:03:22Z")

</div>

Hi everyone, I'm a newbie in PHP scripts writing and I met some difficulties in my learning process. One of them is as follows: I started to write a script which has 2 forms in it. The script is (filename is 2.php): \<div…

---

## [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…

---

## [Flipping movie clip left/right](https://forum.kirupa.com/t/flipping-movie-clip-left-right/318272)

<div class="topic-metadata">

**Author:** [@flip11](https://forum.kirupa.com/u/flip11)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 1:53am UTC](https://forum.kirupa.com/t/flipping-movie-clip-left-right/318272 "2011-01-15T01:53:11Z")

</div>

Hello, I am trying to flip a character in a game left/right when pressing the left/right key. I have got the movieclip to do this by changing it every time you press the key, but if you hold it down it spazzes and flips …

---

## [Flash text box to read a PHP variable](https://forum.kirupa.com/t/flash-text-box-to-read-a-php-variable/318270)

<div class="topic-metadata">

**Author:** [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 12:52am UTC](https://forum.kirupa.com/t/flash-text-box-to-read-a-php-variable/318270 "2011-01-15T00:52:44Z")

</div>

All, What is the best way to have a flash text box read a PHP session variable? I want to do something like show a shopping cart total price in the text box which would be stored in a PHP session variable. Thanks.

---

## [TLFTextField / appendText](https://forum.kirupa.com/t/tlftextfield-appendtext/318269)

<div class="topic-metadata">

**Author:** [@trzeci\_eu](https://forum.kirupa.com/u/trzeci_eu)\
**Replies:** 0\
**Last updated:** [January 15, 2011, 12:10am UTC](https://forum.kirupa.com/t/tlftextfield-appendtext/318269 "2011-01-15T00:10:46Z")

</div>

Hello, I have a problem with TFLTextField. Instence of this class have a problem with 'appendText'. Each time I have #1009 Error. This is wird, because I'am sure that this object is not null (I'm trying to use appendTex…

---

## [Urgent help needed :) BNT inside MC to root](https://forum.kirupa.com/t/urgent-help-needed-bnt-inside-mc-to-root/318266)

<div class="topic-metadata">

**Author:** [@Lukeshoe1993](https://forum.kirupa.com/u/Lukeshoe1993)\
**Replies:** 0\
**Last updated:** [January 14, 2011, 9:47pm UTC](https://forum.kirupa.com/t/urgent-help-needed-bnt-inside-mc-to-root/318266 "2011-01-14T21:47:01Z")

</div>

Hi there. I need some help in Flash As2. I have an animated movie clip that has a button inside it. The idea is to be able to click on the movie clip and get it to run the animation (with on(release){ gotoandplay(2…

---

## [Away3d AbstractPrimitive is wrapping faces in bitmap rather than itself](https://forum.kirupa.com/t/away3d-abstractprimitive-is-wrapping-faces-in-bitmap-rather-than-itself/318265)

<div class="topic-metadata">

**Author:** [@tugboat](https://forum.kirupa.com/u/tugboat)\
**Replies:** 0\
**Last updated:** [January 14, 2011, 9:25pm UTC](https://forum.kirupa.com/t/away3d-abstractprimitive-is-wrapping-faces-in-bitmap-rather-than-itself/318265 "2011-01-14T21:25:32Z")

</div>

Hey There, I'm working in Away3d and have hit a road block. I'm creating an abstract primitive (that looks like a pentagon) made from 5 faces, each of which is determined by dynamically generated vertices. I can't…

---

## [Newbie question: Button help](https://forum.kirupa.com/t/newbie-question-button-help/318263)

<div class="topic-metadata">

**Author:** [@mt24](https://forum.kirupa.com/u/mt24)\
**Replies:** 0\
**Last updated:** [January 14, 2011, 6:50pm UTC](https://forum.kirupa.com/t/newbie-question-button-help/318263 "2011-01-14T18:50:35Z")

</div>

I am new to actionscript 3. I have created buttons with up/over/down states. The button changes colour during the over/down frames. How do I keep the over or down state active until the user clicks another button? R…

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=344)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=346)
