# programming

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

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

**Page:** 1117

---

## [Retrieving info from a dynamically created array](https://forum.kirupa.com/t/retrieving-info-from-a-dynamically-created-array/268344)

<div class="topic-metadata">

**Author:** [@kidsonrids](https://forum.kirupa.com/u/kidsonrids)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 8:03pm UTC](https://forum.kirupa.com/t/retrieving-info-from-a-dynamically-created-array/268344 "2008-08-12T20:03:36Z")

</div>

"oneColourArray" is an array that is filled with numbers from an xml file. I also have an array called "twoColourArray". So I need a way to switch between the two. oneColourArray\[0\]\[0\] should equal "8". Ive tried using…

---

## [XML and AS2 Problems](https://forum.kirupa.com/t/xml-and-as2-problems/268342)

<div class="topic-metadata">

**Author:** [@adamcelikay](https://forum.kirupa.com/u/adamcelikay)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 7:52pm UTC](https://forum.kirupa.com/t/xml-and-as2-problems/268342 "2008-08-12T19:52:21Z")

</div>

Im having trouble with a carousel i baught. I have barely any XML knowledge and incorporating it with AS. Now the items are linked externaly with an XML file. I linked them to Anchors on the current page, but they link t…

---

## [Random word, color and placement eating ram?](https://forum.kirupa.com/t/random-word-color-and-placement-eating-ram/268337)

<div class="topic-metadata">

**Author:** [@saxx](https://forum.kirupa.com/u/saxx)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 7:08pm UTC](https://forum.kirupa.com/t/random-word-color-and-placement-eating-ram/268337 "2008-08-12T19:08:01Z")

</div>

http://simpleheartmedia.com/dynamo/4.swf Its eating alot of ram even though each one of them is removed from the display list. Its creating a new instance of the class each time though so that may be why, any suggestio…

---

## [FLEX 3 preferences](https://forum.kirupa.com/t/flex-3-preferences/268336)

<div class="topic-metadata">

**Author:** [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 6:06pm UTC](https://forum.kirupa.com/t/flex-3-preferences/268336 "2008-08-12T18:06:22Z")

</div>

Whenever I import a custom class such as gs.TweenMax into Flex, it automatically removes it whenver I import in other objects like Sprites or MovieClips, is there anyway to to turn this off, I can't find Flex preferences…

---

## [Uploading image with Flash 9 and PHP - without using FileReference Class](https://forum.kirupa.com/t/uploading-image-with-flash-9-and-php-without-using-filereference-class/268334)

<div class="topic-metadata">

**Author:** [@agoldust](https://forum.kirupa.com/u/agoldust)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 6:05pm UTC](https://forum.kirupa.com/t/uploading-image-with-flash-9-and-php-without-using-filereference-class/268334 "2008-08-12T18:05:40Z")

</div>

hi all . i am currently creating a software, i need to upload images form my HDD to server. i can do this with FileReference Object. with this code i can select file. var f:FileReference; f.browse(); // for selecting f…

---

## [How to play an animation ontop of duplicated movie clips?](https://forum.kirupa.com/t/how-to-play-an-animation-ontop-of-duplicated-movie-clips/268331)

<div class="topic-metadata">

**Author:** [@learntoreed](https://forum.kirupa.com/u/learntoreed)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 5:29pm UTC](https://forum.kirupa.com/t/how-to-play-an-animation-ontop-of-duplicated-movie-clips/268331 "2008-08-12T17:29:49Z")

</div>

Hello! I have a quick question that I'm sure has a quick fix, I just can't seem to figure it out. I'm have an XML driven image gallery that duplicates buttons for as many nodes as there are in my XML file. This all…

---

## [FormMail error](https://forum.kirupa.com/t/formmail-error/268329)

<div class="topic-metadata">

**Author:** [@Toner](https://forum.kirupa.com/u/Toner)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 5:17pm UTC](https://forum.kirupa.com/t/formmail-error/268329 "2008-08-12T17:17:06Z")

</div>

Hi, Ive designed a contact/enquiry form in Flash 8 Pro and set it up using the FormMail perl script. I keep getting an error saying "Bad/No Recipient". Ive used this form before successfully with a another client who …

---

## [SWF caching issues](https://forum.kirupa.com/t/swf-caching-issues/268327)

<div class="topic-metadata">

**Author:** [@bigSHIFT](https://forum.kirupa.com/u/bigSHIFT)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 4:46pm UTC](https://forum.kirupa.com/t/swf-caching-issues/268327 "2008-08-12T16:46:43Z")

</div>

Hey all. Any thoughts on how to prevent my swf's from 'sticking' in the cache? I know there has to be a better method than renaming the swf's everytime I make a change in order for the browsers to recognize the change …

---

## [Help with dynamic video gallery](https://forum.kirupa.com/t/help-with-dynamic-video-gallery/268326)

<div class="topic-metadata">

**Author:** [@jcafaro10](https://forum.kirupa.com/u/jcafaro10)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 4:35pm UTC](https://forum.kirupa.com/t/help-with-dynamic-video-gallery/268326 "2008-08-12T16:35:35Z")

</div>

Hello. I'm trying to create a dynamic video gallery similar to the dynamic picture gallery on my site. I think that there are only a view changes that I need to make in order to get this to work. Here is code I've use…

---

## [TextField not showing line breaks](https://forum.kirupa.com/t/textfield-not-showing-line-breaks/268322)

<div class="topic-metadata">

**Author:** [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 3:38pm UTC](https://forum.kirupa.com/t/textfield-not-showing-line-breaks/268322 "2008-08-12T15:38:19Z")

</div>

This is really weird, I have a dynamic text field with embedded fonts on the stage, with some paragraphs of text in it, I pushed enter a few times, so theres some line breaks in it… If i test the swf, the text displays …

---

## [Problem onRollOut](https://forum.kirupa.com/t/problem-onrollout/268321)

<div class="topic-metadata">

**Author:** [@jcprovideo](https://forum.kirupa.com/u/jcprovideo)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 3:31pm UTC](https://forum.kirupa.com/t/problem-onrollout/268321 "2008-08-12T15:31:51Z")

</div>

I have a simple scroller that scrolls up or down as the user moves their mouse. The problem is that when you RollOut the scroller keeps moving. I can't figure out how to put a onRollOut function that will stop the scrol…

---

## [Persistent State problem](https://forum.kirupa.com/t/persistent-state-problem/268319)

<div class="topic-metadata">

**Author:** [@irishcash33](https://forum.kirupa.com/u/irishcash33)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 3:11pm UTC](https://forum.kirupa.com/t/persistent-state-problem/268319 "2008-08-12T15:11:49Z")

</div>

Hi, A weird thing is occuring and I have no idea why. I was working on a left side navigation in a copy of a html page. I made the nav so part of it will stay open depending on the page. It works great in say examiner co…

---

## [Newbie Project](https://forum.kirupa.com/t/newbie-project/268318)

<div class="topic-metadata">

**Author:** [@jburleson](https://forum.kirupa.com/u/jburleson)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 3:01pm UTC](https://forum.kirupa.com/t/newbie-project/268318 "2008-08-12T15:01:32Z")

</div>

I am sure this will be simple for you guys, but I am still a beginner. I am trying to create a basic keypad simulator for my kids kindergarten class to practice entering their lunch codes. The pad is very simple. Numbers…

---

## [Woman in distress](https://forum.kirupa.com/t/woman-in-distress/268316)

<div class="topic-metadata">

**Author:** [@eva552](https://forum.kirupa.com/u/eva552)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 2:53pm UTC](https://forum.kirupa.com/t/woman-in-distress/268316 "2008-08-12T14:53:26Z")

</div>

\[FONT=Verdana, Helvetica, Arial\]OK here is my problem...\[/FONT\] \[FONT=Verdana, Helvetica, Arial\]I have been challenged by this sight. I figured out alot of things on this sight but I am a little rusty in flash. I was g…

---

## [\[AS2\] number of occurrences in an array](https://forum.kirupa.com/t/as2-number-of-occurrences-in-an-array/268315)

<div class="topic-metadata">

**Author:** [@540media](https://forum.kirupa.com/u/540media)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 2:52pm UTC](https://forum.kirupa.com/t/as2-number-of-occurrences-in-an-array/268315 "2008-08-12T14:52:18Z")

</div>

is there anyway to count the number of occurrences of an element in an array?? eg array = (a, a, c, h, a, h, g, j, j, j) //Number of times each element appears in the array a=3 c=1 h=2 g=1 j=3

---

## [e4x Namespace + . notation](https://forum.kirupa.com/t/e4x-namespace-notation/268311)

<div class="topic-metadata">

**Author:** [@roady](https://forum.kirupa.com/u/roady)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 2:23pm UTC](https://forum.kirupa.com/t/e4x-namespace-notation/268311 "2008-08-12T14:23:17Z")

</div>

Hi. Really need some help here with e4x namespace. Don't really like to loop and loop in XML to get my values and there's e4x great but a bit more complex. This is my XML. \<?xml version='1.0' encoding='UTF-8'?\> \<XMI…

---

## [Accessing the root of My Clip](https://forum.kirupa.com/t/accessing-the-root-of-my-clip/268307)

<div class="topic-metadata">

**Author:** [@jocenunes](https://forum.kirupa.com/u/jocenunes)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 2:04pm UTC](https://forum.kirupa.com/t/accessing-the-root-of-my-clip/268307 "2008-08-12T14:04:15Z")

</div>

Good evening is following, I am finishing a site, and I am inside a movie clip, and within it I have a movie clip that when I clip it has to go to the root, access a movieclip on stage and perform it within a Frame,, I d…

---

## [\[AS2\] Creating functions and their contents dynamicly](https://forum.kirupa.com/t/as2-creating-functions-and-their-contents-dynamicly/268306)

<div class="topic-metadata">

**Author:** [@goSTE](https://forum.kirupa.com/u/goSTE)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 1:53pm UTC](https://forum.kirupa.com/t/as2-creating-functions-and-their-contents-dynamicly/268306 "2008-08-12T13:53:51Z")

</div>

Hi there, Thanks a lot for taking the time to try to help me! Here's my problem; I have a lot of countries, and i want to make functions for each country, here's working code. united\_kingdom.onRollOver = function…

---

## [browseForSave error in air/as3](https://forum.kirupa.com/t/browseforsave-error-in-air-as3/268304)

<div class="topic-metadata">

**Author:** [@badFortune](https://forum.kirupa.com/u/badFortune)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 1:25pm UTC](https://forum.kirupa.com/t/browseforsave-error-in-air-as3/268304 "2008-08-12T13:25:38Z")

</div>

Hi, I'm getting the following error; SecurityError: fileWriteResource at runtime::SecurityManager$/checkPrivilegeForCaller() at flash.filesystem::FileStream/open() at anno::XmlParserClass/saveData() When I use t…

---

## [FLV Cue point events?](https://forum.kirupa.com/t/flv-cue-point-events/268302)

<div class="topic-metadata">

**Author:** [@LostBear](https://forum.kirupa.com/u/LostBear)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 1:04pm UTC](https://forum.kirupa.com/t/flv-cue-point-events/268302 "2008-08-12T13:04:10Z")

</div>

Hi i have a button on my stage that links to another page on my site. I want to be able change the URL on this button dynamically via a cue point in the FLV video. Im using video maru for the video interface but that s…

---

## [MouseEvent Listener returning same ID](https://forum.kirupa.com/t/mouseevent-listener-returning-same-id/268299)

<div class="topic-metadata">

**Author:** [@mocapokemedia](https://forum.kirupa.com/u/mocapokemedia)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 12:20pm UTC](https://forum.kirupa.com/t/mouseevent-listener-returning-same-id/268299 "2008-08-12T12:20:06Z")

</div>

function parsePlaylist (playlistXML:XML) { var Tracks:XMLList = playlistXML.Track; for each (var Track:XML in Tracks) { var curLink = new mp3link\_mc; var nid:Number = new Number(i); curLink.nid = i; curLink.…

---

## [Set text content of XML node](https://forum.kirupa.com/t/set-text-content-of-xml-node/268298)

<div class="topic-metadata">

**Author:** [@mulux](https://forum.kirupa.com/u/mulux)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 12:13pm UTC](https://forum.kirupa.com/t/set-text-content-of-xml-node/268298 "2008-08-12T12:13:01Z")

</div>

I would like to know if it is possible to set the text content of a XML root node. For a child node we can do this: var xml:XML = \<root\>\<child /\>\</root\>; xml.child = "kirupa"; When initializing we can do this: v…

---

## [Mutiple intervals being created, Need one at a time?](https://forum.kirupa.com/t/mutiple-intervals-being-created-need-one-at-a-time/268297)

<div class="topic-metadata">

**Author:** [@scag](https://forum.kirupa.com/u/scag)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 11:54am UTC](https://forum.kirupa.com/t/mutiple-intervals-being-created-need-one-at-a-time/268297 "2008-08-12T11:54:50Z")

</div>

Hello Its seems a problem I am having is to do with setIntervals in a while loop. I clear what seems to be the interval but as another interval is started before the last one finish I then have multiple intervals. I ca…

---

## [Lightbox with AS3](https://forum.kirupa.com/t/lightbox-with-as3/268293)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 10:53am UTC](https://forum.kirupa.com/t/lightbox-with-as3/268293 "2008-08-12T10:53:27Z")

</div>

Been using Lightbox (http://www.huddletogether.com/projects/lightbox/) to enlarge my images, works fine with AS2 but I just can't get it working with AS3. Can you see anything wrong with the code: var openImage:URLR…

---

## [\_root.variable.variable possible?](https://forum.kirupa.com/t/-root-variable-variable-possible/268292)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 10:30am UTC](https://forum.kirupa.com/t/-root-variable-variable-possible/268292 "2008-08-12T10:30:56Z")

</div>

hi, could i have a variable.. which goes along the lines of something like this.. \_root.player1.attack = "one"; i've tried it.. maybe i can.. but i'm doing it wrong? "player1" is a variable as is "attack".. or …

---

## [Dispatch event from class scope problem](https://forum.kirupa.com/t/dispatch-event-from-class-scope-problem/268287)

<div class="topic-metadata">

**Author:** [@Wocker](https://forum.kirupa.com/u/Wocker)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 9:34am UTC](https://forum.kirupa.com/t/dispatch-event-from-class-scope-problem/268287 "2008-08-12T09:34:04Z")

</div>

After building the following with help of previous post to the forum regarding dispatching events and delegating functions. I am stuck with the following problem. I have 3 files. main.fla import classes.LevelObj; …

---

## [Removing a Bitmap](https://forum.kirupa.com/t/removing-a-bitmap/268285)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 9:05am UTC](https://forum.kirupa.com/t/removing-a-bitmap/268285 "2008-08-12T09:05:22Z")

</div>

Hello, I've created some sort of bitmap, and used addChild(bitmap) onto the stage. Afterwards I tried to remove that bitmap in order to add a diferent bitmap with the removeChild(bitmap) function. I tried using the …

---

## [Controlling main timeline from dynamic .swf](https://forum.kirupa.com/t/controlling-main-timeline-from-dynamic-swf/268282)

<div class="topic-metadata">

**Author:** [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 6:52am UTC](https://forum.kirupa.com/t/controlling-main-timeline-from-dynamic-swf/268282 "2008-08-12T06:52:30Z")

</div>

OK, this could be a very simple answer, but... I have a main.swf which plays, then stops, loads a dynamic .swf... And what I want is, from either the dynamic .swf or the main one, when the dynamic .swf is finished, the…

---

## [How to add paging to an existing page](https://forum.kirupa.com/t/how-to-add-paging-to-an-existing-page/268281)

<div class="topic-metadata">

**Author:** [@hariku](https://forum.kirupa.com/u/hariku)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 6:38am UTC](https://forum.kirupa.com/t/how-to-add-paging-to-an-existing-page/268281 "2008-08-12T06:38:04Z")

</div>

I have created a guestbook/forum but, the whole data is displayed in one page... i have to break it into pages. how can i do that?:sen:

---

## [Using different paths to movieclip](https://forum.kirupa.com/t/using-different-paths-to-movieclip/268280)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 5:44am UTC](https://forum.kirupa.com/t/using-different-paths-to-movieclip/268280 "2008-08-12T05:44:19Z")

</div>

hi, I want to have a script that goes something along like this.. I have a moveclip on the stage. and in it.. i have a variable "variable1 = true". the movieclip would be named "clip1".. if it were on the maintime…

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

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