# programming

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

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

**Page:** 891

---

## [A good game to start off with making when learning AS2/AS1](https://forum.kirupa.com/t/a-good-game-to-start-off-with-making-when-learning-as2-as1/283695)

<div class="topic-metadata">

**Author:** [@Dirge](https://forum.kirupa.com/u/Dirge)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 2:50am UTC](https://forum.kirupa.com/t/a-good-game-to-start-off-with-making-when-learning-as2-as1/283695 "2009-03-10T02:50:26Z")

</div>

Okay, I've decided to pick up coding in addition to my artistic pursuits and want to be able to add interactivity to my flash animations. So far the only things I can do are set variables and basic movement, but I want…

---

## [Help Requested - Simple If Statement Error Fix](https://forum.kirupa.com/t/help-requested-simple-if-statement-error-fix/283694)

<div class="topic-metadata">

**Author:** [@mmc215](https://forum.kirupa.com/u/mmc215)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 2:28am UTC](https://forum.kirupa.com/t/help-requested-simple-if-statement-error-fix/283694 "2009-03-10T02:28:02Z")

</div>

Hi there - I suspect I'm doing something silly here. Keep getting a #1009 error pointing towards the fadeOut function on frame 2. Here's the scoup, TIA! Frame 1: Clickable Logo that sends the playhead to frame 2 i…

---

## [Dynamic Variables / XML](https://forum.kirupa.com/t/dynamic-variables-xml/283693)

<div class="topic-metadata">

**Author:** [@Olaf\_Forkbeard](https://forum.kirupa.com/u/Olaf_Forkbeard)\
**Replies:** 0\
**Last updated:** [March 10, 2009, 1:58am UTC](https://forum.kirupa.com/t/dynamic-variables-xml/283693 "2009-03-10T01:58:37Z")

</div>

So lets say... I want to create a few dynamic variables (array) from an XML file. The file has an unknown # of list objects. \<!-- xml.xml --\> \<list\> \<quote qtype='0'\>I am quote 1.\</quote\> \<quote qtype='0'\>I am quote 2…

---

## [Switching XML Nodes](https://forum.kirupa.com/t/switching-xml-nodes/283686)

<div class="topic-metadata">

**Author:** [@vols4ever](https://forum.kirupa.com/u/vols4ever)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 11:53pm UTC](https://forum.kirupa.com/t/switching-xml-nodes/283686 "2009-03-09T23:53:57Z")

</div>

Hello All, I have been working on an XML project that is almost done but I have hit a snag. I can get everything to load and display properly however when it comes time to switch the info, I cannot figure out the corre…

---

## [Accessing main timeline variable in .as file](https://forum.kirupa.com/t/accessing-main-timeline-variable-in-as-file/283676)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:42pm UTC](https://forum.kirupa.com/t/accessing-main-timeline-variable-in-as-file/283676 "2009-03-09T21:42:53Z")

</div>

Hi All, I'm running into something that has me stumped. I'm trying to access a variable that I've added on my main timeline. I'm trying to access that variable in my .as file. I've been doing some research, and it …

---

## [On Resize Browser, external SWF not resizing properly](https://forum.kirupa.com/t/on-resize-browser-external-swf-not-resizing-properly/283674)

<div class="topic-metadata">

**Author:** [@suchiate](https://forum.kirupa.com/u/suchiate)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:29pm UTC](https://forum.kirupa.com/t/on-resize-browser-external-swf-not-resizing-properly/283674 "2009-03-09T21:29:59Z")

</div>

hey guys, with reference to the site www.bowenstudios.com I am building one at poezjewellers.lightreft.com.my however, I don know how bowenstudios did their resizing that they can only resize their middle image sec…

---

## [Setting properties of objects found using getChildByName](https://forum.kirupa.com/t/setting-properties-of-objects-found-using-getchildbyname/283672)

<div class="topic-metadata">

**Author:** [@PatrickMichael](https://forum.kirupa.com/u/PatrickMichael)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:27pm UTC](https://forum.kirupa.com/t/setting-properties-of-objects-found-using-getchildbyname/283672 "2009-03-09T21:27:18Z")

</div>

Hi, assistance appreciated. I am attempting to set the propreties of a navigation button (movie clip) that has been built dynamically. The button contains a text field that I want to format and a movie clip that I want…

---

## [Control SWF from SWFLoader](https://forum.kirupa.com/t/control-swf-from-swfloader/283671)

<div class="topic-metadata">

**Author:** [@Jazzperson](https://forum.kirupa.com/u/Jazzperson)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:26pm UTC](https://forum.kirupa.com/t/control-swf-from-swfloader/283671 "2009-03-09T21:26:22Z")

</div>

Hi developers.. I'm loadning a swf coverflow (as2) to a swf (as3) with SWFLoader. My problem is that i wish to make gotoAndPlay calls from the loaded swf to the as3, or even better call functions. Is there any way to…

---

## [First Game! Need help with simple ActionScript](https://forum.kirupa.com/t/first-game-need-help-with-simple-actionscript/283669)

<div class="topic-metadata">

**Author:** [@DangerJuice](https://forum.kirupa.com/u/DangerJuice)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:06pm UTC](https://forum.kirupa.com/t/first-game-need-help-with-simple-actionscript/283669 "2009-03-09T21:06:38Z")

</div>

:pac:Hey! I've been working on my first game for a little while. Although it's my first one I've been doing a little bit of Java before, and I followed this great tutorial in the beginning: http://www.kirupa.com/develo…

---

## [Variable question: This has to be ridiculously easy to do, right?](https://forum.kirupa.com/t/variable-question-this-has-to-be-ridiculously-easy-to-do-right/283668)

<div class="topic-metadata">

**Author:** [@preciousroy](https://forum.kirupa.com/u/preciousroy)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 8:53pm UTC](https://forum.kirupa.com/t/variable-question-this-has-to-be-ridiculously-easy-to-do-right/283668 "2009-03-09T20:53:56Z")

</div>

I've got a Custom Class written for generating a menu. It's got values for things like the starting x position and y position of the menu. So in the Custom Class I've got lines that read private var startingxpos:int…

---

## [Relaying Events - Any shortcuts?](https://forum.kirupa.com/t/relaying-events-any-shortcuts/283666)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 8:22pm UTC](https://forum.kirupa.com/t/relaying-events-any-shortcuts/283666 "2009-03-09T20:22:42Z")

</div>

I don't know if there is a better or easier way to do this, but I have a class ("parent class") which contains another class stored as a private variable ("variable class"). Whenever that variable class dispatches an eve…

---

## [Odd timing issue with slideshow and other issues](https://forum.kirupa.com/t/odd-timing-issue-with-slideshow-and-other-issues/283664)

<div class="topic-metadata">

**Author:** [@FooSchnickens](https://forum.kirupa.com/u/FooSchnickens)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 8:16pm UTC](https://forum.kirupa.com/t/odd-timing-issue-with-slideshow-and-other-issues/283664 "2009-03-09T20:16:08Z")

</div>

Alrighty, one down, one to go. My coworker and I made a command decision and simply removed the option for people to scroll through the images in the slideshow since there will only be 3-5 slides going at any given time.…

---

## [Why 4 threads run faster than 2 on my dual core?](https://forum.kirupa.com/t/why-4-threads-run-faster-than-2-on-my-dual-core/283663)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 8:15pm UTC](https://forum.kirupa.com/t/why-4-threads-run-faster-than-2-on-my-dual-core/283663 "2009-03-09T20:15:56Z")

</div>

I've built a ray tracer in Java. It generates images like this: \[image\] (this is not mine, it's just an example). I multithreaded it by cutting up the image horizontally and telling each thread to render a chunk of …

---

## [Custom video players + mp4s](https://forum.kirupa.com/t/custom-video-players-mp4s/283662)

<div class="topic-metadata">

**Author:** [@wolcotter](https://forum.kirupa.com/u/wolcotter)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:55pm UTC](https://forum.kirupa.com/t/custom-video-players-mp4s/283662 "2009-03-09T19:55:21Z")

</div>

I'm having issues getting mp4s to load correctly locally when I test for a custom video player I'm building. The same code loads flvs just fine. Are there differences in the way you code for the two formats I should know…

---

## [Silhouette Image in Flash CS4](https://forum.kirupa.com/t/silhouette-image-in-flash-cs4/283661)

<div class="topic-metadata">

**Author:** [@GiveMeCoffee](https://forum.kirupa.com/u/GiveMeCoffee)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:48pm UTC](https://forum.kirupa.com/t/silhouette-image-in-flash-cs4/283661 "2009-03-09T19:48:22Z")

</div>

What is the best way the silhouette an image in Flash? Flash does not seem to recognize my Photoshop clipping paths. Any advice would be great. Thanks.

---

## [Building dynamic navigation, getting the name of the button clicked](https://forum.kirupa.com/t/building-dynamic-navigation-getting-the-name-of-the-button-clicked/283660)

<div class="topic-metadata">

**Author:** [@PatrickMichael](https://forum.kirupa.com/u/PatrickMichael)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:47pm UTC](https://forum.kirupa.com/t/building-dynamic-navigation-getting-the-name-of-the-button-clicked/283660 "2009-03-09T19:47:41Z")

</div>

Hi, assistance greatly appreciated I am attempting to build navigation dynamically, an XML file is built from a php script calling a MySQL data base, the ActionScript interprets the XML file. The function that builds t…

---

## [Print Image from flash](https://forum.kirupa.com/t/print-image-from-flash/283659)

<div class="topic-metadata">

**Author:** [@evokenz](https://forum.kirupa.com/u/evokenz)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:35pm UTC](https://forum.kirupa.com/t/print-image-from-flash/283659 "2009-03-09T19:35:52Z")

</div>

I need to be able to print an image that has been externally loaded on to the stage.. I have no trouble printing text from an XML file, and I can also load the image, but for some reason it doesn't want to print out.. …

---

## [MCs sticking in place when moved on keyframes](https://forum.kirupa.com/t/mcs-sticking-in-place-when-moved-on-keyframes/283658)

<div class="topic-metadata">

**Author:** [@test1](https://forum.kirupa.com/u/test1)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:34pm UTC](https://forum.kirupa.com/t/mcs-sticking-in-place-when-moved-on-keyframes/283658 "2009-03-09T19:34:59Z")

</div>

I'm noticing a new problem that I think only just started popping up with CS4. Basically sometimes I'll have a menu or something with different states on different keyframes. There is a series of icons (sprites) on there…

---

## [Image distortion in xml/Flash photo gallery](https://forum.kirupa.com/t/image-distortion-in-xml-flash-photo-gallery/283655)

<div class="topic-metadata">

**Author:** [@josmcs](https://forum.kirupa.com/u/josmcs)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 6:54pm UTC](https://forum.kirupa.com/t/image-distortion-in-xml-flash-photo-gallery/283655 "2009-03-09T18:54:27Z")

</div>

I used the Photo Gallery using xml and Flash tutorial and created a nice gallery with thumbnails I increased the size to accommodate a 800x533px size picture however when the images are imported they are distorted to a s…

---

## [Propagating a change across multiple pages](https://forum.kirupa.com/t/propagating-a-change-across-multiple-pages/283653)

<div class="topic-metadata">

**Author:** [@graylensman](https://forum.kirupa.com/u/graylensman)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 6:22pm UTC](https://forum.kirupa.com/t/propagating-a-change-across-multiple-pages/283653 "2009-03-09T18:22:41Z")

</div>

I've got a website with 100+ pages. Each page features the exact same links sidebar (to navigate throughout the site). I need to add a link to this sidebar. But I don't want to have to touch every single stinking page. I…

---

## [Tab Index problem](https://forum.kirupa.com/t/tab-index-problem/283652)

<div class="topic-metadata">

**Author:** [@paulscanlon\_99](https://forum.kirupa.com/u/paulscanlon_99)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 6:13pm UTC](https://forum.kirupa.com/t/tab-index-problem/283652 "2009-03-09T18:13:59Z")

</div>

Hi, can anyone help me work out why tabIndex ignores the order i set after it reaches a movie clip. I have four input text fileds. and their tabIndex's are set from 1-4 i then have a movie clip as tabIndex 5 and anothe…

---

## [ColdFusion component for Flash](https://forum.kirupa.com/t/coldfusion-component-for-flash/283651)

<div class="topic-metadata">

**Author:** [@Fhrosty](https://forum.kirupa.com/u/Fhrosty)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 5:12pm UTC](https://forum.kirupa.com/t/coldfusion-component-for-flash/283651 "2009-03-09T17:12:54Z")

</div>

I need to display images from one server in a Flash file on another. I cannot place a cross-domain policy file on the images server, so I'm trying to follow the technique outlined here: http://kb.adobe.com/selfservice/…

---

## [Textfiled Mouse Over](https://forum.kirupa.com/t/textfiled-mouse-over/283650)

<div class="topic-metadata">

**Author:** [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 5:08pm UTC](https://forum.kirupa.com/t/textfiled-mouse-over/283650 "2009-03-09T17:08:43Z")

</div>

Hi, Is it possible to create a hand cursor when the mouse goes over a TextField. buttonMode does not work. Can I use cursor? Thanks, AK

---

## [Duplicating library objects to satisfy var typing](https://forum.kirupa.com/t/duplicating-library-objects-to-satisfy-var-typing/283649)

<div class="topic-metadata">

**Author:** [@bardic](https://forum.kirupa.com/u/bardic)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 4:56pm UTC](https://forum.kirupa.com/t/duplicating-library-objects-to-satisfy-var-typing/283649 "2009-03-09T16:56:50Z")

</div>

ya.. I dunno how to try to sum this up in a sentence but I think that title give's ya an idea. I have a class. Let's say it's a video player and I have a library of art for it. So I now want to load the swf of this vi…

---

## [Apple Dock Style interface help! Flash 8](https://forum.kirupa.com/t/apple-dock-style-interface-help-flash-8/283648)

<div class="topic-metadata">

**Author:** [@webbed\_feet](https://forum.kirupa.com/u/webbed_feet)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:55pm UTC](https://forum.kirupa.com/t/apple-dock-style-interface-help-flash-8/283648 "2009-03-09T15:55:38Z")

</div>

Hey, right i trying to create an apple style dock, I found an fla online, i would like each button to be their own movie clip as they will have different content inside them and will link to a different movie clip. any t…

---

## [Connecting Array and Frames](https://forum.kirupa.com/t/connecting-array-and-frames/283647)

<div class="topic-metadata">

**Author:** [@romuls](https://forum.kirupa.com/u/romuls)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:55pm UTC](https://forum.kirupa.com/t/connecting-array-and-frames/283647 "2009-03-09T15:55:10Z")

</div>

I am really starting to hate actionscript 3.0...the problem is in my movie i have a question, where the user needs to write an anwer in the input text field, and if the answer is correct he should go to a new frame, but …

---

## [Creating Unique Air Packages On Download](https://forum.kirupa.com/t/creating-unique-air-packages-on-download/283646)

<div class="topic-metadata">

**Author:** [@Ricardinho](https://forum.kirupa.com/u/Ricardinho)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:54pm UTC](https://forum.kirupa.com/t/creating-unique-air-packages-on-download/283646 "2009-03-09T15:54:16Z")

</div>

Im looking for a way or any ideas on how to inject variables into a packaged Air file. Or how to create a Air package on the fly to make it unique on every download? Example A user creates an account a website and gets…

---

## [How? Loading from XML and creating sprites based on XML length?](https://forum.kirupa.com/t/how-loading-from-xml-and-creating-sprites-based-on-xml-length/283642)

<div class="topic-metadata">

**Author:** [@josepilove](https://forum.kirupa.com/u/josepilove)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:25pm UTC](https://forum.kirupa.com/t/how-loading-from-xml-and-creating-sprites-based-on-xml-length/283642 "2009-03-09T15:25:43Z")

</div>

OK, here is my task. I am supposed to make a film chooser that is an infinite horizontal scroll with stills and stats(name, duration, etc.) filled via XML. Currently, what i am doing is loading in all of the image UR…

---

## [Virtual stock trade game - Wall Street](https://forum.kirupa.com/t/virtual-stock-trade-game-wall-street/283641)

<div class="topic-metadata">

**Author:** [@dobredev](https://forum.kirupa.com/u/dobredev)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:25pm UTC](https://forum.kirupa.com/t/virtual-stock-trade-game-wall-street/283641 "2009-03-09T15:25:00Z")

</div>

World is in financial crise, most of countries are in recession. For 2008, an estimated 2.6 million U.S. jobs were eliminated. In Russia only in december 2008 1.0 million jobs were eliminated. Learn how to survive and pl…

---

## [Help! function not getting called in onLoad](https://forum.kirupa.com/t/help-function-not-getting-called-in-onload/283640)

<div class="topic-metadata">

**Author:** [@Trupti](https://forum.kirupa.com/u/Trupti)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 2:56pm UTC](https://forum.kirupa.com/t/help-function-not-getting-called-in-onload/283640 "2009-03-09T14:56:19Z")

</div>

Hello there, Here is my problem, I am loading one xml file and onload (or onData) of this file I am calling another function but, this function is not getting called. What can be the issue? Can delegates be used here …

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

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