# programming

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

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

**Page:** 1408

---

## [AS 2.0: class error](https://forum.kirupa.com/t/as-2-0-class-error/248592)

<div class="topic-metadata">

**Author:** [@slwy](https://forum.kirupa.com/u/slwy)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:37pm UTC](https://forum.kirupa.com/t/as-2-0-class-error/248592 "2008-01-09T23:37:53Z")

</div>

Hi. This is my class definition: import flash.xml.XMLDocument; class mngXML { var xmlHandle:Object; var myXML:XML; var count; function mngXML() { trace('constructor'); this.myXML …

---

## [AS2: need help: timer that randomly plays sequence in movie](https://forum.kirupa.com/t/as2-need-help-timer-that-randomly-plays-sequence-in-movie/248590)

<div class="topic-metadata">

**Author:** [@michmons](https://forum.kirupa.com/u/michmons)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:24pm UTC](https://forum.kirupa.com/t/as2-need-help-timer-that-randomly-plays-sequence-in-movie/248590 "2008-01-09T23:24:50Z")

</div>

I have a game that I need to have a character randomly move into positions after an alloted time. I wrote some code that works perfect for my external movies to come in, but I can't figure out how I would make this code…

---

## [Is it possible to hack the xml/flash/php guestbook?](https://forum.kirupa.com/t/is-it-possible-to-hack-the-xml-flash-php-guestbook/248586)

<div class="topic-metadata">

**Author:** [@bbf3](https://forum.kirupa.com/u/bbf3)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 10:28pm UTC](https://forum.kirupa.com/t/is-it-possible-to-hack-the-xml-flash-php-guestbook/248586 "2008-01-09T22:28:11Z")

</div>

I have been using the xml/flash/php guestbook on a site for over a year now with absolutely no problems. In the past week or two though, all of the entries (about 25-30) have been erased. Did my host erase my data, or is…

---

## [There are more children than parent shows!](https://forum.kirupa.com/t/there-are-more-children-than-parent-shows/248584)

<div class="topic-metadata">

**Author:** [@dataxa](https://forum.kirupa.com/u/dataxa)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 10:14pm UTC](https://forum.kirupa.com/t/there-are-more-children-than-parent-shows/248584 "2008-01-09T22:14:48Z")

</div>

Code: trace(this.parent); trace(stageRef.getChildAt(0).parent); trace(stageRef.numChildren); Output: \[object Stage\] \[object Stage\] 1 Code is in "engine.as" and i have put "engine" as document class on "engine.fla" pr…

---

## [Actionscript timeline effect](https://forum.kirupa.com/t/actionscript-timeline-effect/248582)

<div class="topic-metadata">

**Author:** [@ageshi](https://forum.kirupa.com/u/ageshi)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 10:09pm UTC](https://forum.kirupa.com/t/actionscript-timeline-effect/248582 "2008-01-09T22:09:00Z")

</div>

Hey everyone, I'm working on a project that requires an animated "timeline" bar that increases in width as the movie progresses. Very much like a simple pre loader bar, I want to use AS to: Increase the width of the…

---

## [How to get Scrollpane to load jpeg files dynamically](https://forum.kirupa.com/t/how-to-get-scrollpane-to-load-jpeg-files-dynamically/248578)

<div class="topic-metadata">

**Author:** [@dpollen](https://forum.kirupa.com/u/dpollen)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 9:04pm UTC](https://forum.kirupa.com/t/how-to-get-scrollpane-to-load-jpeg-files-dynamically/248578 "2008-01-09T21:04:31Z")

</div>

Hi... I'm working on a project, and trying to get the Flash CS3 ScrollPane to work. It is a real nightmare! Ok trying to load some jpegs into a scrollpane dynamically. I opened a new Flash file, and got it working wi…

---

## [Downloading a file in Flash 8](https://forum.kirupa.com/t/downloading-a-file-in-flash-8/248577)

<div class="topic-metadata">

**Author:** [@daydreamb11](https://forum.kirupa.com/u/daydreamb11)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 9:03pm UTC](https://forum.kirupa.com/t/downloading-a-file-in-flash-8/248577 "2008-01-09T21:03:49Z")

</div>

Hey, I am new to this forum and coding in flash 8, but I wanted to try and use flash to download a file to a computer from the .swf that I create. For example, If a user clicks on a button that I make from a graphic or …

---

## [embedFonts not working](https://forum.kirupa.com/t/embedfonts-not-working/248574)

<div class="topic-metadata">

**Author:** [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 8:21pm UTC](https://forum.kirupa.com/t/embedfonts-not-working/248574 "2008-01-09T20:21:02Z")

</div>

I've added the font to my library and set the linkage with export to first frame checked but its not working. Can someone see what I'm doing wrong? function labelUpFormat():TextFormat{ var textFormat = new Tex…

---

## [Load 2-dimensional arrays from XML into Flash](https://forum.kirupa.com/t/load-2-dimensional-arrays-from-xml-into-flash/248573)

<div class="topic-metadata">

**Author:** [@Blackcat](https://forum.kirupa.com/u/Blackcat)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 8:16pm UTC](https://forum.kirupa.com/t/load-2-dimensional-arrays-from-xml-into-flash/248573 "2008-01-09T20:16:31Z")

</div>

hi I am programming a tile based rpg, but now i have a big problem :crying: At the beginning, i had a normal map array in flash //map1 = \[\[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2\], //\[2,2,2,2,2,2,2,2,2,2,2,2…

---

## [Actionscript editors](https://forum.kirupa.com/t/actionscript-editors/248572)

<div class="topic-metadata">

**Author:** [@nvidia](https://forum.kirupa.com/u/nvidia)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 8:13pm UTC](https://forum.kirupa.com/t/actionscript-editors/248572 "2008-01-09T20:13:52Z")

</div>

Hi i am using Flash CS3 for my flash work but would like to know what other actionscript editors are out there and what they provide that CS3 do not. Thanks

---

## [Positioning clips on stage with XML](https://forum.kirupa.com/t/positioning-clips-on-stage-with-xml/248566)

<div class="topic-metadata">

**Author:** [@mxsailor](https://forum.kirupa.com/u/mxsailor)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:51pm UTC](https://forum.kirupa.com/t/positioning-clips-on-stage-with-xml/248566 "2008-01-09T18:51:30Z")

</div>

I'm using an XML ticker to display testimonials from my customers, who are scattered all over the west to from WA to AZ. I also display a map next to this dynamic text area. I want to show a small clip on the map (like a…

---

## [XML drop-down menu tutorial](https://forum.kirupa.com/t/xml-drop-down-menu-tutorial/248564)

<div class="topic-metadata">

**Author:** [@ajobe123](https://forum.kirupa.com/u/ajobe123)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:44pm UTC](https://forum.kirupa.com/t/xml-drop-down-menu-tutorial/248564 "2008-01-09T18:44:19Z")

</div>

I am using the drop-down menu tutorial I found on tihs site and love it! However, I am trying to add a little tweak in here so that when the user rolls out of the submenu or the main menu, it disappears. May seem a bit o…

---

## [Javascript: Move entire site down 15 pixels and insert banner](https://forum.kirupa.com/t/javascript-move-entire-site-down-15-pixels-and-insert-banner/248563)

<div class="topic-metadata">

**Author:** [@bardic](https://forum.kirupa.com/u/bardic)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:41pm UTC](https://forum.kirupa.com/t/javascript-move-entire-site-down-15-pixels-and-insert-banner/248563 "2008-01-09T18:41:59Z")

</div>

I am creating a client login for them to view their site during development. But what I want is to inject a small banner at the top of each site page with some information. What I want is the site to be pushed down ab…

---

## [Actionscript login](https://forum.kirupa.com/t/actionscript-login/248561)

<div class="topic-metadata">

**Author:** [@frespa](https://forum.kirupa.com/u/frespa)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:23pm UTC](https://forum.kirupa.com/t/actionscript-login/248561 "2008-01-09T18:23:43Z")

</div>

Hi guys, So I decided to train my actionscript skill a bit by creating a login from scratch. I'm already into PHP so it wasn't that hard creating the code with some arrays and stuff. And it worked 100%. Now this might …

---

## [Photo Gallery - Thumbnail Positioning](https://forum.kirupa.com/t/photo-gallery-thumbnail-positioning/248559)

<div class="topic-metadata">

**Author:** [@mossop88](https://forum.kirupa.com/u/mossop88)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:04pm UTC](https://forum.kirupa.com/t/photo-gallery-thumbnail-positioning/248559 "2008-01-09T18:04:33Z")

</div>

This post is in regards to the thumbnails of the great XML and Flash Photo Gallery Tutorial by Kirupa.... I've searched through the other posts and haven't found anything that matches my problem. I'm very new at Flash an…

---

## [Movieclip Timeline control](https://forum.kirupa.com/t/movieclip-timeline-control/248557)

<div class="topic-metadata">

**Author:** [@rmsjazz](https://forum.kirupa.com/u/rmsjazz)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:45pm UTC](https://forum.kirupa.com/t/movieclip-timeline-control/248557 "2008-01-09T17:45:44Z")

</div>

Hi, new to AS3. I'm trying to animate a MC on the stage before moving to a named stage frame. i want the MC to finish all 27 frames before it advances stage frames. It loops, and traces 1-27, but doesn't advance the M…

---

## [AS: Movieclip creation \_x problem](https://forum.kirupa.com/t/as-movieclip-creation--x-problem/248554)

<div class="topic-metadata">

**Author:** [@dezamp](https://forum.kirupa.com/u/dezamp)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:17pm UTC](https://forum.kirupa.com/t/as-movieclip-creation--x-problem/248554 "2008-01-09T17:17:50Z")

</div>

Hello, I am having a problem with the movieclip positioning along the x axis. As you can see I have used \* to dynamically change each value's position however the movie clips just end up on top of each other. Please help…

---

## [Main Site's Search Functionality](https://forum.kirupa.com/t/main-sites-search-functionality/248553)

<div class="topic-metadata">

**Author:** [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:00pm UTC](https://forum.kirupa.com/t/main-sites-search-functionality/248553 "2008-01-09T17:00:41Z")

</div>

Hey guys, I sent this as a private message to Kirupa a couple of days ago but he's probably too busy to answer so I'm gonna post it here in case anyone knows. I noticed that the main site, when you search, uses a searc…

---

## [Multiplying two text boxes](https://forum.kirupa.com/t/multiplying-two-text-boxes/248550)

<div class="topic-metadata">

**Author:** [@street\_spirit](https://forum.kirupa.com/u/street_spirit)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 4:07pm UTC](https://forum.kirupa.com/t/multiplying-two-text-boxes/248550 "2008-01-09T16:07:50Z")

</div>

Strange problem, least I think it is I just can't work out how to multiply two text boxes and then display it in another text box. I have tried the following but had no luck should these work thus some other code is mess…

---

## [Carousel Help](https://forum.kirupa.com/t/carousel-help/248543)

<div class="topic-metadata">

**Author:** [@rai\_kane3](https://forum.kirupa.com/u/rai_kane3)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 2:15pm UTC](https://forum.kirupa.com/t/carousel-help/248543 "2008-01-09T14:15:16Z")

</div>

I have used the tutorial from gotoandlearn.com to create a carousel. I have modified it so that it does not spin until the mouse actually moves however its terribly chunk and I have realised that it doesn’t really do wha…

---

## [Auto refresh page](https://forum.kirupa.com/t/auto-refresh-page/248541)

<div class="topic-metadata">

**Author:** [@montyT](https://forum.kirupa.com/u/montyT)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 1:38pm UTC](https://forum.kirupa.com/t/auto-refresh-page/248541 "2008-01-09T13:38:06Z")

</div>

Hi guys Somebody tell me how do I achieve this:- I have made a web site in flash. Its fine and working ok. But the problem is, When the user will minimize the browser and user restores the browser, at that time page sh…

---

## [Dynamic text query](https://forum.kirupa.com/t/dynamic-text-query/248540)

<div class="topic-metadata">

**Author:** [@lee162](https://forum.kirupa.com/u/lee162)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 1:31pm UTC](https://forum.kirupa.com/t/dynamic-text-query/248540 "2008-01-09T13:31:03Z")

</div>

Hi all - new user. \[stuck\_out\_tongue\] Can anybody help me with a bit of simple code - i'm very much new to AS and have only a basic grasp of it. Basically, I have created a short exercise for an elearning programme …

---

## [MC "Resolution"?](https://forum.kirupa.com/t/mc-resolution/248536)

<div class="topic-metadata">

**Author:** [@adfox](https://forum.kirupa.com/u/adfox)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 12:52pm UTC](https://forum.kirupa.com/t/mc-resolution/248536 "2008-01-09T12:52:28Z")

</div>

Hi, Does anyone know why sometimes the "resolution" in a movieclip is different to the main stage? Is there a way to change it? Sometime when I open or am using someone elses flash file I open up a MC to paste in a gra…

---

## [Session Cache](https://forum.kirupa.com/t/session-cache/248535)

<div class="topic-metadata">

**Author:** [@taurus5\_6](https://forum.kirupa.com/u/taurus5_6)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 12:21pm UTC](https://forum.kirupa.com/t/session-cache/248535 "2008-01-09T12:21:59Z")

</div>

I am using session cookie to make sure that my website members login to access certain privileges. However, everytime the back button is used, the browser always RELOADS the entire page. If I remove my session in the s…

---

## [Horizontal dynamic scroller](https://forum.kirupa.com/t/horizontal-dynamic-scroller/248532)

<div class="topic-metadata">

**Author:** [@pedromau](https://forum.kirupa.com/u/pedromau)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:35am UTC](https://forum.kirupa.com/t/horizontal-dynamic-scroller/248532 "2008-01-09T11:35:22Z")

</div>

Hey guys!! I was wondering if someone can help me out on this... How can I do a scroller like this one?! http://www.nitrogroup.com/#whatwedo/innovation I need it without using importing actions... just using Math equat…

---

## [Flash with Ruby on Rails](https://forum.kirupa.com/t/flash-with-ruby-on-rails/248530)

<div class="topic-metadata">

**Author:** [@masylum](https://forum.kirupa.com/u/masylum)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:05am UTC](https://forum.kirupa.com/t/flash-with-ruby-on-rails/248530 "2008-01-09T11:05:46Z")

</div>

I want to know what is the best way to do the communication Flash-Ruby on Rails. I know about WebOrb, but i prefer a simpler thing because i only want to post a score of a game. thanks in advance!

---

## [Menu in AS3](https://forum.kirupa.com/t/menu-in-as3/248528)

<div class="topic-metadata">

**Author:** [@Topi](https://forum.kirupa.com/u/Topi)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:01am UTC](https://forum.kirupa.com/t/menu-in-as3/248528 "2008-01-09T11:01:07Z")

</div>

Hello, I want to make a multilingual menu for a game in AS3, using a frame for each menu page, and reading the texts in a XML file. (I'm new to ActionScript 3) I already do it in AS2, but I have to do it in AS3. Is i…

---

## [How to generate a random score in a textfield?](https://forum.kirupa.com/t/how-to-generate-a-random-score-in-a-textfield/248523)

<div class="topic-metadata">

**Author:** [@xalterritoy](https://forum.kirupa.com/u/xalterritoy)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 8:10am UTC](https://forum.kirupa.com/t/how-to-generate-a-random-score-in-a-textfield/248523 "2008-01-09T08:10:18Z")

</div>

i really have a big problem on this part working on my project.. my project is a videoke, that after the user sang the song he/she wants is that at the end, there is a score that will appear(random score from 80-100)... …

---

## [AS 2.0 - if swf is already loaded, ignore](https://forum.kirupa.com/t/as-2-0-if-swf-is-already-loaded-ignore/248521)

<div class="topic-metadata">

**Author:** [@dubsfan](https://forum.kirupa.com/u/dubsfan)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 6:08am UTC](https://forum.kirupa.com/t/as-2-0-if-swf-is-already-loaded-ignore/248521 "2008-01-09T06:08:05Z")

</div>

See attached diagram for clarity. Sorry for the long msg. Hello - I am creating a site where there is a portfolio section with icons for each piece of artwork. Regardless of which icon 1-10 is clicked, for the first …

---

## [gotoAndPlay wont work with an addChild movieclip](https://forum.kirupa.com/t/gotoandplay-wont-work-with-an-addchild-movieclip/248519)

<div class="topic-metadata">

**Author:** [@samuri05](https://forum.kirupa.com/u/samuri05)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:20am UTC](https://forum.kirupa.com/t/gotoandplay-wont-work-with-an-addchild-movieclip/248519 "2008-01-09T05:20:16Z")

</div>

Hello community! New to the forums but use the site a bunch for a great resource. This has been racking my brain being new to AS3. Can anyone help with this code. Just a simple experiment, first I click on the purplebutt…

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

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