# programming

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

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

**Page:** 574

---

## [AS 2 to AS 3](https://forum.kirupa.com/t/as-2-to-as-3/304070)

<div class="topic-metadata">

**Author:** [@itskarthi05](https://forum.kirupa.com/u/itskarthi05)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 6:46am UTC](https://forum.kirupa.com/t/as-2-to-as-3/304070 "2010-02-01T06:46:43Z")

</div>

Hi all, I have written some files in AS 2.0 format in flash develop software. The thing is i need to convert those files to AS 3.. is it possible to do? Or is there any tool available for converting form AS 2.0 to AS …

---

## [Possible to set an int variable back to 0?](https://forum.kirupa.com/t/possible-to-set-an-int-variable-back-to-0/304067)

<div class="topic-metadata">

**Author:** [@Agold](https://forum.kirupa.com/u/Agold)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 5:16am UTC](https://forum.kirupa.com/t/possible-to-set-an-int-variable-back-to-0/304067 "2010-02-01T05:16:46Z")

</div>

I have a slideshow that I want to loop. What it does is load an xml file with the locations of the images. It uses an int variable to progress from one image to the next. What i need it to do is when it gets to the end o…

---

## [Overlapped classes in a loaded swf](https://forum.kirupa.com/t/overlapped-classes-in-a-loaded-swf/304065)

<div class="topic-metadata">

**Author:** [@BoppreH](https://forum.kirupa.com/u/BoppreH)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 2:44am UTC](https://forum.kirupa.com/t/overlapped-classes-in-a-loaded-swf/304065 "2010-02-01T02:44:55Z")

</div>

I make flash games with a standardized UI. There are dozens of different \*.fla files of different games, created at different times, and all them should share the same interface. My solution was to put this interface int…

---

## [Refer to XML object in main timeline from within a movieclip](https://forum.kirupa.com/t/refer-to-xml-object-in-main-timeline-from-within-a-movieclip/304064)

<div class="topic-metadata">

**Author:** [@ni\_che](https://forum.kirupa.com/u/ni_che)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 2:40am UTC](https://forum.kirupa.com/t/refer-to-xml-object-in-main-timeline-from-within-a-movieclip/304064 "2010-02-01T02:40:15Z")

</div>

I would like to know how to access a XMLList object in main timeline from movieclips. Can XML be accessed through 2nd level(nested movieclips)? In frame 1 of main timeline, the XML file has been loaded. var xmlData:X…

---

## [PHP to Flash asynchronously](https://forum.kirupa.com/t/php-to-flash-asynchronously/304063)

<div class="topic-metadata">

**Author:** [@BoppreH](https://forum.kirupa.com/u/BoppreH)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 2:26am UTC](https://forum.kirupa.com/t/php-to-flash-asynchronously/304063 "2010-02-01T02:26:23Z")

</div>

I have a Flash application that exchanges data with php scripts. Problem is, I can SEND updates, not receive. Example: - user drags an object to another area - flash sends this action to a php script using URLLoader - …

---

## [JSON parsing in C#](https://forum.kirupa.com/t/json-parsing-in-c/304062)

<div class="topic-metadata">

**Author:** [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 1:51am UTC](https://forum.kirupa.com/t/json-parsing-in-c/304062 "2010-02-01T01:51:32Z")

</div>

Does anyone know a good (and light) JSON parser in .NET2 for mobile application development (windows mobile 5). thnks

---

## [Flash Profiler says I'm creating a new game instance once per frame... !?](https://forum.kirupa.com/t/flash-profiler-says-im-creating-a-new-game-instance-once-per-frame/304061)

<div class="topic-metadata">

**Author:** [@ls\_ac](https://forum.kirupa.com/u/ls_ac)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 12:06am UTC](https://forum.kirupa.com/t/flash-profiler-says-im-creating-a-new-game-instance-once-per-frame/304061 "2010-02-01T00:06:48Z")

</div>

My profiler screen shot: http://img188.imageshack.us/img188/9711/60192648.jpg "Hilights" is my game class, which is also my Document Class. Though the "Instances" count never goes above 1, as you can see, the "Cumulat…

---

## [Alpha masking insanity](https://forum.kirupa.com/t/alpha-masking-insanity/304059)

<div class="topic-metadata">

**Author:** [@flashCS4User](https://forum.kirupa.com/u/flashCS4User)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 10:45pm UTC](https://forum.kirupa.com/t/alpha-masking-insanity/304059 "2010-01-31T22:45:00Z")

</div>

So. I have gimp. I have flash cs4. I have a picture of a dog that is 200 by 200 pixels with alpha transparency (you only see the dog no background, it's a png). Now I want to make only the dog listen for a mouseclick e…

---

## [Need an event listener for when a movie clip is finished playing](https://forum.kirupa.com/t/need-an-event-listener-for-when-a-movie-clip-is-finished-playing/304055)

<div class="topic-metadata">

**Author:** [@Agold](https://forum.kirupa.com/u/Agold)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 9:48pm UTC](https://forum.kirupa.com/t/need-an-event-listener-for-when-a-movie-clip-is-finished-playing/304055 "2010-01-31T21:48:36Z")

</div>

This is a simple enough question. I have a slideshow that loads an image via XML, then adds said image to a placeholder inside a movie clip, and then proceeds to play a little sliding animation via the movie clip. What I…

---

## [How to see my flash changes without empty cache](https://forum.kirupa.com/t/how-to-see-my-flash-changes-without-empty-cache/304053)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 9:12pm UTC](https://forum.kirupa.com/t/how-to-see-my-flash-changes-without-empty-cache/304053 "2010-01-31T21:12:36Z")

</div>

Hey .. I have been updating my flash pages, and so many people cant see the changes, because they have to reset their browser .. which is fine for any savvy internet user .. but there's a lot o folks out there who dont r…

---

## [SWF Not Compiling](https://forum.kirupa.com/t/swf-not-compiling/304050)

<div class="topic-metadata">

**Author:** [@e\_owen](https://forum.kirupa.com/u/e_owen)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 8:41pm UTC](https://forum.kirupa.com/t/swf-not-compiling/304050 "2010-01-31T20:41:16Z")

</div>

I just spent about an hour trying to debug a Flash application that all of a sudden stopped compiling - no traces, nothing. I went through commenting out code and so on until I found the problem... var \_timer:Timer = …

---

## [loadSound/attachSound lowers the original pitch](https://forum.kirupa.com/t/loadsound-attachsound-lowers-the-original-pitch/304048)

<div class="topic-metadata">

**Author:** [@crazyb\_ro](https://forum.kirupa.com/u/crazyb_ro)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 7:29pm UTC](https://forum.kirupa.com/t/loadsound-attachsound-lowers-the-original-pitch/304048 "2010-01-31T19:29:43Z")

</div>

i had this very big problem(for my particular application). i am writing this music application in flash and i use as2 to load randomly specific sounds which are in the same folder with the movie. the problem is that i n…

---

## [Sandboxing SWFs loaded from the same domain](https://forum.kirupa.com/t/sandboxing-swfs-loaded-from-the-same-domain/304046)

<div class="topic-metadata">

**Author:** [@Rezmason](https://forum.kirupa.com/u/Rezmason)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 6:25pm UTC](https://forum.kirupa.com/t/sandboxing-swfs-loaded-from-the-same-domain/304046 "2010-01-31T18:25:51Z")

</div>

Hey guys, long time no see. :} I'm building a Flash arcade system that people can deploy to their own websites, which loads its Flash content into a security sandbox. Basically, I'm interested in finding a way to preve…

---

## [Beginner question - Arrays and for loops](https://forum.kirupa.com/t/beginner-question-arrays-and-for-loops/304045)

<div class="topic-metadata">

**Author:** [@toussant](https://forum.kirupa.com/u/toussant)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 6:19pm UTC](https://forum.kirupa.com/t/beginner-question-arrays-and-for-loops/304045 "2010-01-31T18:19:07Z")

</div>

good day gentlemen, and ladies. This is fairly simple to most of you, but it will revolutionize my flash experience once i can get past this. I'd like to add event listeners to movieclips ( already on the stage ), w…

---

## [Calling methods of a class that extends MovieClip](https://forum.kirupa.com/t/calling-methods-of-a-class-that-extends-movieclip/304042)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 5:58pm UTC](https://forum.kirupa.com/t/calling-methods-of-a-class-that-extends-movieclip/304042 "2010-01-31T17:58:28Z")

</div>

Hi! I've got a class (say ButtonBase) that extends MovieClip. ButtonBase has a method that names it ((this.)name = 'bb1') and adds it to the MainTimeline. Now I can see my extended ButtonBase MC on the MainTimeline. And …

---

## [Equal space between mc's](https://forum.kirupa.com/t/equal-space-between-mcs/304041)

<div class="topic-metadata">

**Author:** [@Eichen](https://forum.kirupa.com/u/Eichen)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 5:27pm UTC](https://forum.kirupa.com/t/equal-space-between-mcs/304041 "2010-01-31T17:27:07Z")

</div>

I have a couple of mc's that are added to the stage after one another. I want them to have equal space between them. Here i the code snippet with the problem, below is the full code. for each (var link:XML in sett…

---

## [Rotating circle by mouse](https://forum.kirupa.com/t/rotating-circle-by-mouse/304040)

<div class="topic-metadata">

**Author:** [@GrayFox](https://forum.kirupa.com/u/GrayFox)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 5:18pm UTC](https://forum.kirupa.com/t/rotating-circle-by-mouse/304040 "2010-01-31T17:18:22Z")

</div>

First, I am sorry if I posted this in the wrong section. I have been working on this and thinking about it for days but I just can't seem to get it right. I want to have a circle that I can "pick up" with the mouse and…

---

## [Can't get the definition of some standard classes :(](https://forum.kirupa.com/t/cant-get-the-definition-of-some-standard-classes/304031)

<div class="topic-metadata">

**Author:** [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 1:19pm UTC](https://forum.kirupa.com/t/cant-get-the-definition-of-some-standard-classes/304031 "2010-01-31T13:19:21Z")

</div>

Hi! Suddenly if I write for example import fl.controls.\*; flash (CS4 on iMac) says that it cannot find the definition... What's goin'on? :hangover:

---

## [Searching myLv loadvars array](https://forum.kirupa.com/t/searching-mylv-loadvars-array/304030)

<div class="topic-metadata">

**Author:** [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 12:46pm UTC](https://forum.kirupa.com/t/searching-mylv-loadvars-array/304030 "2010-01-31T12:46:04Z")

</div>

I currently use PHP to bring in variables to Flash. Each variable has a number added to the end of a variable name with a PHP loop. There is then a loop in flash that cycles through each variable and displays it in flash…

---

## [Update gif inside a frame](https://forum.kirupa.com/t/update-gif-inside-a-frame/304029)

<div class="topic-metadata">

**Author:** [@Killya](https://forum.kirupa.com/u/Killya)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 12:08pm UTC](https://forum.kirupa.com/t/update-gif-inside-a-frame/304029 "2010-01-31T12:08:51Z")

</div>

I have this gif on another site with updated stats in it. I can not reach into the data from another way exept this .gif picture. Now I wonder if it's possible to place this gif inside my flash movie and that when it loa…

---

## [Form opening result in new window](https://forum.kirupa.com/t/form-opening-result-in-new-window/304028)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 11:44am UTC](https://forum.kirupa.com/t/form-opening-result-in-new-window/304028 "2010-01-31T11:44:53Z")

</div>

Hi I have a form in my site. It use PHP to send info to a mySQL database. The form is in the front page of my site. The only problem is that too see the result the page changes and I want it to do one of 2 things: …

---

## [Detecting multiple instances of a MC](https://forum.kirupa.com/t/detecting-multiple-instances-of-a-mc/304026)

<div class="topic-metadata">

**Author:** [@thedark\_master](https://forum.kirupa.com/u/thedark_master)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 10:15am UTC](https://forum.kirupa.com/t/detecting-multiple-instances-of-a-mc/304026 "2010-01-31T10:15:44Z")

</div>

Ok so I want to do a collision detection for a bunch instances of a single movie clip. So I got this movieclip called "map1". Inside "map1" there are a bunch of rectangles called "house1". I also have a character whos…

---

## [Link two separate functions?](https://forum.kirupa.com/t/link-two-separate-functions/304024)

<div class="topic-metadata">

**Author:** [@sampson](https://forum.kirupa.com/u/sampson)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 5:31am UTC](https://forum.kirupa.com/t/link-two-separate-functions/304024 "2010-01-31T05:31:06Z")

</div>

Hi i'm kind of beginner/intermediate level (more so beginner i'd say) at AS3, and i'm trying to make a tower defence style game... ATM i'm using internal code, but would it be better to switch to external? Anyway, the …

---

## [Enforce only one row of floated elements](https://forum.kirupa.com/t/enforce-only-one-row-of-floated-elements/304023)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 4:54am UTC](https://forum.kirupa.com/t/enforce-only-one-row-of-floated-elements/304023 "2010-01-31T04:54:46Z")

</div>

I saw a cool horizontal playlist at the bottom of www.grooveshark.com . It's made with Flash: \[image\] I was wondering if I could do the same with CSS. \<ul\> \<li\>\<img src="1.jpg" /\>\</li\> \<li\>\<img src="2.jpg" …

---

## [XBLA games](https://forum.kirupa.com/t/xbla-games/304022)

<div class="topic-metadata">

**Author:** [@Macros247](https://forum.kirupa.com/u/Macros247)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 1:02am UTC](https://forum.kirupa.com/t/xbla-games/304022 "2010-01-31T01:02:27Z")

</div>

I was wondering if anyone knew what programming languages are used for Xbox live arcade and indie games. Or if like with apple, microsoft have their own special sdk you need to buy to start developing downloadable conten…

---

## [Call function from external method in same class](https://forum.kirupa.com/t/call-function-from-external-method-in-same-class/304021)

<div class="topic-metadata">

**Author:** [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 12:57am UTC](https://forum.kirupa.com/t/call-function-from-external-method-in-same-class/304021 "2010-01-31T00:57:26Z")

</div>

For some reason I cant figure this out, I have a function thats in a method in a class.. I have a second method in the same class, trying to call the function from the second method eg: package com.sarin { impo…

---

## [SWFAddress and Caurina Tweener](https://forum.kirupa.com/t/swfaddress-and-caurina-tweener/304020)

<div class="topic-metadata">

**Author:** [@nate51](https://forum.kirupa.com/u/nate51)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 11:42pm UTC](https://forum.kirupa.com/t/swfaddress-and-caurina-tweener/304020 "2010-01-30T23:42:11Z")

</div>

I have a site running AS 2.0 and the lmc Tweener, it is a timeline driven site and SWFAddress and the site work fine. I tried to use SWFAddress with AS 2.0 and the Google Caurina Tweener and SWFAddress doesnt respond. …

---

## [External Files Request](https://forum.kirupa.com/t/external-files-request/304019)

<div class="topic-metadata">

**Author:** [@azazzel](https://forum.kirupa.com/u/azazzel)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 11:32pm UTC](https://forum.kirupa.com/t/external-files-request/304019 "2010-01-30T23:32:22Z")

</div>

Hi people I am not much of AS2 developer. I have done more more coding in PHP and JS, Here it is what bothering me. I am writing a small project. It is small community with free third party flash games. Games si…

---

## [Basic Preloader trouble](https://forum.kirupa.com/t/basic-preloader-trouble/304016)

<div class="topic-metadata">

**Author:** [@nate51](https://forum.kirupa.com/u/nate51)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 8:03pm UTC](https://forum.kirupa.com/t/basic-preloader-trouble/304016 "2010-01-30T20:03:07Z")

</div>

I am trying to use the tutorial from this site http://www.kirupa.com/developer/mx/percentagepreloader.htm to make a bacis preloader to a site but for some reason the site seems to want to load the full flash file before …

---

## [addChild()?](https://forum.kirupa.com/t/addchild/304015)

<div class="topic-metadata">

**Author:** [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 7:52pm UTC](https://forum.kirupa.com/t/addchild/304015 "2010-01-30T19:52:14Z")

</div>

Hello I've got a movieClip in my library and it's linkage in my library. How do I code it? It will load 11 of "movieClip" in one row and 11 in second row and they will load one after another one. Please

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

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