# programming

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

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

**Page:** 369

---

## [About the index file](https://forum.kirupa.com/t/about-the-index-file/316845)

<div class="topic-metadata">

**Author:** [@Globo](https://forum.kirupa.com/u/Globo)\
**Replies:** 0\
**Last updated:** [December 4, 2010, 12:09am UTC](https://forum.kirupa.com/t/about-the-index-file/316845 "2010-12-04T00:09:16Z")

</div>

Hello, I just wonder if I should use the index.swf as my main swf file, put most of my content here for a better SEO, I mean, does this make it easier for the crawlers/spiders to index my site ? My original plan was to o…

---

## [AS3 to AS2 - Arrays/Function](https://forum.kirupa.com/t/as3-to-as2-arrays-function/316844)

<div class="topic-metadata">

**Author:** [@mcwu](https://forum.kirupa.com/u/mcwu)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 10:52pm UTC](https://forum.kirupa.com/t/as3-to-as2-arrays-function/316844 "2010-12-03T22:52:13Z")

</div>

Can someone help translating the code below to AS2? var clipArray:Array = \[city1, city2, city3, city4\]; for (var i:int = 0; i \< clipArray.length; i++) { clipArray\*.buttonMode = true; clipArray\*.addEventListener(MouseEv…

---

## [\[Urgent\] Create drag bar/slider for timeline data visualization using Flash?](https://forum.kirupa.com/t/urgent-create-drag-bar-slider-for-timeline-data-visualization-using-flash/316838)

<div class="topic-metadata">

**Author:** [@kumalein](https://forum.kirupa.com/u/kumalein)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 5:15pm UTC](https://forum.kirupa.com/t/urgent-create-drag-bar-slider-for-timeline-data-visualization-using-flash/316838 "2010-12-03T17:15:34Z")

</div>

I currently am working on a data visualization project that demonstrates the change in number of US movies produced with various genres through the last century. It is required for me to use Actionscript and Flash, an…

---

## [Component loads before loader](https://forum.kirupa.com/t/component-loads-before-loader/316837)

<div class="topic-metadata">

**Author:** [@user112](https://forum.kirupa.com/u/user112)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 5:09pm UTC](https://forum.kirupa.com/t/component-loads-before-loader/316837 "2010-12-03T17:09:22Z")

</div>

hello. I have a preloader in the first frame of my movie but when i test it, it takes awhile before anything shows up because the components that i am using in the movie all seem to be added in the first frame even tho…

---

## [Flash query of ASP.net zipcode locator possible?](https://forum.kirupa.com/t/flash-query-of-asp-net-zipcode-locator-possible/316836)

<div class="topic-metadata">

**Author:** [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 5:08pm UTC](https://forum.kirupa.com/t/flash-query-of-asp-net-zipcode-locator-possible/316836 "2010-12-03T17:08:38Z")

</div>

I have been asked if it is possible to incorporate a retailer's website zipcode locator into a Flash widget. I have absolutely pathed to the aspx script & have stripped out everything but the zip locator. \<form name…

---

## [Stop(); action being ignored](https://forum.kirupa.com/t/stop-action-being-ignored/316834)

<div class="topic-metadata">

**Author:** [@zodiacc](https://forum.kirupa.com/u/zodiacc)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 3:57pm UTC](https://forum.kirupa.com/t/stop-action-being-ignored/316834 "2010-12-03T15:57:15Z")

</div>

Hi I have a website that has 5 pages written in AS2. For some reason when I "Test the movie" the pages play themselves as if they are a picture gallery. I have checked the stop functions, originally I thought this was t…

---

## [AS3 Interface project help](https://forum.kirupa.com/t/as3-interface-project-help/316832)

<div class="topic-metadata">

**Author:** [@Pedro\_t](https://forum.kirupa.com/u/Pedro_t)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 2:44pm UTC](https://forum.kirupa.com/t/as3-interface-project-help/316832 "2010-12-03T14:44:28Z")

</div>

Hi guys I hope I'm posting in the right section and hello since this is my first post and I apologise since it's already asking for help. My problem is. I'm making an interface for a fighting game in flash, currently …

---

## [Gradually moving the y position of a movieclip](https://forum.kirupa.com/t/gradually-moving-the-y-position-of-a-movieclip/316831)

<div class="topic-metadata">

**Author:** [@BenBen](https://forum.kirupa.com/u/BenBen)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 2:07pm UTC](https://forum.kirupa.com/t/gradually-moving-the-y-position-of-a-movieclip/316831 "2010-12-03T14:07:34Z")

</div>

hey, I'm totally new to ActionScript and don't really know what I'm doing yet! I have an assignment due Thursday and one of the things I'm currently stuck on is: I'm trying to get the water in a beach scene to gradual…

---

## [Remember which frame was from](https://forum.kirupa.com/t/remember-which-frame-was-from/316828)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 12:29pm UTC](https://forum.kirupa.com/t/remember-which-frame-was-from/316828 "2010-12-03T12:29:44Z")

</div>

I want to let the button remember the previous frame where I was from： For example , btn.onPress = function (){go to the previous frame I was from} Please complete the sentence for me.

---

## [Cufon Script problems!](https://forum.kirupa.com/t/cufon-script-problems/316824)

<div class="topic-metadata">

**Author:** [@nnnniiiicccc](https://forum.kirupa.com/u/nnnniiiicccc)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 11:15am UTC](https://forum.kirupa.com/t/cufon-script-problems/316824 "2010-12-03T11:15:05Z")

</div>

Hi I have used a Cufon script on a website that I am designing. www.cfiw.org.uk The cufon doesn't seem to be working in IE7 and Firefox 3.0.6 However the weirder thing is that the cufon script works on the home…

---

## [Resize/Scale problem with duplacated image](https://forum.kirupa.com/t/resize-scale-problem-with-duplacated-image/316822)

<div class="topic-metadata">

**Author:** [@mitakis2002](https://forum.kirupa.com/u/mitakis2002)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 8:32am UTC](https://forum.kirupa.com/t/resize-scale-problem-with-duplacated-image/316822 "2010-12-03T08:32:18Z")

</div>

I am trying to make a frame arround a pickture that the user uploads useing only 1 image repeating it and scaling it accordingly so that it is as big as it should be in reality arround that picture. My problem is that wh…

---

## [\[AS3\] Garbage Collection - Memory Leak? Help!](https://forum.kirupa.com/t/as3-garbage-collection-memory-leak-help/316821)

<div class="topic-metadata">

**Author:** [@cabbageking4](https://forum.kirupa.com/u/cabbageking4)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 5:49am UTC](https://forum.kirupa.com/t/as3-garbage-collection-memory-leak-help/316821 "2010-12-03T05:49:33Z")

</div>

I’ve written some code that creates a bunch of star effects, and what I think will free them up for garbage collection when I’m done with them. When I destroy them individually, my ram usage holds a steady 51%, just s…

---

## [Change Layer Visibility](https://forum.kirupa.com/t/change-layer-visibility/316818)

<div class="topic-metadata">

**Author:** [@roflcopter64bit](https://forum.kirupa.com/u/roflcopter64bit)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 2:10am UTC](https://forum.kirupa.com/t/change-layer-visibility/316818 "2010-12-03T02:10:13Z")

</div>

I am making an animation with subtitles (separate layer) but at the menu I have made a subtitle button that should change the visibility of the second layer, but I can't get past that bit. \[m\]

---

## [Colorful explosion for Flash 8?](https://forum.kirupa.com/t/colorful-explosion-for-flash-8/316817)

<div class="topic-metadata">

**Author:** [@Range](https://forum.kirupa.com/u/Range)\
**Replies:** 0\
**Last updated:** [December 3, 2010, 12:10am UTC](https://forum.kirupa.com/t/colorful-explosion-for-flash-8/316817 "2010-12-03T00:10:51Z")

</div>

I want to create something like this example as seen on this very website: http://www.kirupa.com/developer/as3/colorful\_explosion\_page1.htm However, my boss will not upgrade my awesome version of Flash 8, so I don't …

---

## [Stopping Falling Snow for CS4/AS3](https://forum.kirupa.com/t/stopping-falling-snow-for-cs4-as3/316814)

<div class="topic-metadata">

**Author:** [@salllly](https://forum.kirupa.com/u/salllly)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 11:13pm UTC](https://forum.kirupa.com/t/stopping-falling-snow-for-cs4-as3/316814 "2010-12-02T23:13:51Z")

</div>

So this question has been answered for MX and Falling Snow 3, but I haven't found anything on how to stop the snow in the Falling Snow for CS4/AS3 tutorial...I followed the tutorial here exactly, and it works great. I j…

---

## [LoadmovieNum?](https://forum.kirupa.com/t/loadmovienum/316813)

<div class="topic-metadata">

**Author:** [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 11:13pm UTC](https://forum.kirupa.com/t/loadmovienum/316813 "2010-12-02T23:13:19Z")

</div>

What the new as3 code for writing loadmovie command like so. loadMovieNum("main.swf",2);

---

## [PHP message](https://forum.kirupa.com/t/php-message/316812)

<div class="topic-metadata">

**Author:** [@skippers](https://forum.kirupa.com/u/skippers)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 10:44pm UTC](https://forum.kirupa.com/t/php-message/316812 "2010-12-02T22:44:55Z")

</div>

I'm getting in a few of these messages on my web page when I submit a php form. This wasn't happening until I switched servers. Any ideas out there folks? Many thanks!! Notice: Undefined variable: company in \\ as44en…

---

## [swfObject slowing load of Flash](https://forum.kirupa.com/t/swfobject-slowing-load-of-flash/316811)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 10:22pm UTC](https://forum.kirupa.com/t/swfobject-slowing-load-of-flash/316811 "2010-12-02T22:22:48Z")

</div>

Hi, I have converted a full flash site from the default publish settings in CS5 to using swfObject. This has made the load time of the page significantly longer http://robertsandcoestateagents.co.uk/ Is there anywa…

---

## [Actionscript 3 - Error #1009 - simple button problem, please help](https://forum.kirupa.com/t/actionscript-3-error-1009-simple-button-problem-please-help/316810)

<div class="topic-metadata">

**Author:** [@whenurstrange](https://forum.kirupa.com/u/whenurstrange)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 10:17pm UTC](https://forum.kirupa.com/t/actionscript-3-error-1009-simple-button-problem-please-help/316810 "2010-12-02T22:17:59Z")

</div>

"Error #1009: Cannot access a property or method of a null object reference" This is what I get every time I test the movie. All I'm trying to do is simply have a replay button at the end of my movieclip. This is my …

---

## [Simple AS help with Kirupa scrollbar](https://forum.kirupa.com/t/simple-as-help-with-kirupa-scrollbar/316807)

<div class="topic-metadata">

**Author:** [@LearningAS](https://forum.kirupa.com/u/LearningAS)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 9:19pm UTC](https://forum.kirupa.com/t/simple-as-help-with-kirupa-scrollbar/316807 "2010-12-02T21:19:30Z")

</div>

Hey all, I am in the process of learning AS 2, so I understand this may sound a bit noobish to some experts, but either way, I really would appreciate any help from anyone! So I am using Kirupa's scrollbar (http://www.ki…

---

## [Editing existing flash website?](https://forum.kirupa.com/t/editing-existing-flash-website/316804)

<div class="topic-metadata">

**Author:** [@jbig](https://forum.kirupa.com/u/jbig)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 7:08pm UTC](https://forum.kirupa.com/t/editing-existing-flash-website/316804 "2010-12-02T19:08:52Z")

</div>

A friend recently came to me with desire to update his existing flash website that was built by someone else. Off the top of my head I know that I can't edit anything without the raw .fla files and replacing them. I…

---

## [Removing only certain children from MC](https://forum.kirupa.com/t/removing-only-certain-children-from-mc/316802)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 6:21pm UTC](https://forum.kirupa.com/t/removing-only-certain-children-from-mc/316802 "2010-12-02T18:21:25Z")

</div>

Hello, I have a movieclip in which I want to remove all of the children that are of type textfield, leaving anything else. As anyone familiar with this? This is what I have so far but it throws an error. if(String…

---

## [Three Card Monte](https://forum.kirupa.com/t/three-card-monte/316800)

<div class="topic-metadata">

**Author:** [@EpiPenguin](https://forum.kirupa.com/u/EpiPenguin)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 5:37pm UTC](https://forum.kirupa.com/t/three-card-monte/316800 "2010-12-02T17:37:46Z")

</div>

I'm trying to figure out how to make a Three Card Monte game.. Here's my code. package { //Imports import flash.display.MovieClip; import fl.transitions.Tween; import fl.transitions.easing.\*; import fl.transition…

---

## [Loading and Unloading an SWF file](https://forum.kirupa.com/t/loading-and-unloading-an-swf-file/316797)

<div class="topic-metadata">

**Author:** [@mgdarland](https://forum.kirupa.com/u/mgdarland)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 4:57pm UTC](https://forum.kirupa.com/t/loading-and-unloading-an-swf-file/316797 "2010-12-02T16:57:57Z")

</div>

Loading and Unloading an SWF file I'm currently working on a educational project for e-learning. This project has multiple buttons for opening several specific SWF files. What I want to acc…

---

## [Flash 8 AS2 - Card Battle Game Help](https://forum.kirupa.com/t/flash-8-as2-card-battle-game-help/316796)

<div class="topic-metadata">

**Author:** [@Wfire3](https://forum.kirupa.com/u/Wfire3)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 4:39pm UTC](https://forum.kirupa.com/t/flash-8-as2-card-battle-game-help/316796 "2010-12-02T16:39:32Z")

</div>

Hi guys, Im new here and Im basically stuck on how to make a card battle game in Flash. Ive got tuts on how to make an RPG so thats all good but trying to get the cards to function right is really giving e a headache. I …

---

## [Download a file - xml - PHP](https://forum.kirupa.com/t/download-a-file-xml-php/316794)

<div class="topic-metadata">

**Author:** [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 3:53pm UTC](https://forum.kirupa.com/t/download-a-file-xml-php/316794 "2010-12-02T15:53:21Z")

</div>

HI there, I am trying to figure out how to download a file, an xml file. I cannot find something. All i can find is the one that prompt you with a dialogue box which i dont need as i am using a scrip which will be run…

---

## [Drop down banner](https://forum.kirupa.com/t/drop-down-banner/316793)

<div class="topic-metadata">

**Author:** [@john66](https://forum.kirupa.com/u/john66)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 3:27pm UTC](https://forum.kirupa.com/t/drop-down-banner/316793 "2010-12-02T15:27:52Z")

</div>

Hi Guys I'm trying to create a simple banner with two views. The static state is an animated banner 728x90. RollOver will reveal a drop down section increasing the size to 728x390. RollOff will return to the static sta…

---

## [addElement vs. addChild](https://forum.kirupa.com/t/addelement-vs-addchild/316792)

<div class="topic-metadata">

**Author:** [@tcoulson](https://forum.kirupa.com/u/tcoulson)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:35pm UTC](https://forum.kirupa.com/t/addelement-vs-addchild/316792 "2010-12-02T14:35:09Z")

</div>

http://savagelook.com/blog/actionscript3/flash-builder-4-addelement-instead-of-addchild This article seems to say that all Flex 4 elements are now being added to a project using addElement() instead of addChild(). So m…

---

## [Bullet and enemy push-back](https://forum.kirupa.com/t/bullet-and-enemy-push-back/316791)

<div class="topic-metadata">

**Author:** [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:20pm UTC](https://forum.kirupa.com/t/bullet-and-enemy-push-back/316791 "2010-12-02T14:20:58Z")

</div>

Hey everyone. I’m creating a Zombie game. I’m trying to code an effect, that will push the enemy back when hit. It has to be pushed in the same direction, as the bullet is flying. Something like: Enemy.x -= Bullet.rotat…

---

## [Air Stage Shenanigans](https://forum.kirupa.com/t/air-stage-shenanigans/316788)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [December 2, 2010, 2:13pm UTC](https://forum.kirupa.com/t/air-stage-shenanigans/316788 "2010-12-02T14:13:38Z")

</div>

Hey'o, How do I access the actual window size of my air app? I mean the resolution i get if I make the app fullscreen.

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

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