# programming

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

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

**Page:** 295

---

## [Mac mail format help](https://forum.kirupa.com/t/mac-mail-format-help/321221)

<div class="topic-metadata">

**Author:** [@AnnieCanoe](https://forum.kirupa.com/u/AnnieCanoe)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 4:50pm UTC](https://forum.kirupa.com/t/mac-mail-format-help/321221 "2011-04-13T16:50:45Z")

</div>

Hi all. May I have your assistance on solving this? The code below works fine on PCs - the mail, but on Macs it generates all the code in the "To:" field. Any help would be much appreciated! Thanks! var mailSub…

---

## [What is Object.init() and Object.length?](https://forum.kirupa.com/t/what-is-object-init-and-object-length/321218)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 4:03pm UTC](https://forum.kirupa.com/t/what-is-object-init-and-object-length/321218 "2011-04-13T16:03:44Z")

</div>

There doesn't seem to be any documentation on the static method "init()" and the static constant "length" of the Object class. Does anyone have any more insight into these?

---

## [How to play sound file from object clicked?](https://forum.kirupa.com/t/how-to-play-sound-file-from-object-clicked/321217)

<div class="topic-metadata">

**Author:** [@Manx\_Mariner](https://forum.kirupa.com/u/Manx_Mariner)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 3:27pm UTC](https://forum.kirupa.com/t/how-to-play-sound-file-from-object-clicked/321217 "2011-04-13T15:27:11Z")

</div>

What I have are several items on a stage and when they are clicked I want to capture their names so I can use it to play a sound file that relates with the object clicked. For example: say I have a square, rectangle, and…

---

## [Multiple Photo Galleries in Flash](https://forum.kirupa.com/t/multiple-photo-galleries-in-flash/321216)

<div class="topic-metadata">

**Author:** [@Rarity](https://forum.kirupa.com/u/Rarity)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 3:14pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries-in-flash/321216 "2011-04-13T15:14:50Z")

</div>

Hey, I already have a photo gallery running on my website, but I would like to add 4/5 more. The script I am currently using is; // USER CONFIG SETTINGS ===== var autoStart:Boolean = false; //true, false var secondsD…

---

## [Help with an array](https://forum.kirupa.com/t/help-with-an-array/321215)

<div class="topic-metadata">

**Author:** [@vigordesign](https://forum.kirupa.com/u/vigordesign)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 2:48pm UTC](https://forum.kirupa.com/t/help-with-an-array/321215 "2011-04-13T14:48:55Z")

</div>

Hi all! I'm having an issue with an array that I'm working on. I'm sure it's something small at this point as most of it is working fine. As you can see if you check out the fla(attached), the arrays store info dep…

---

## [Loading SWF in browser cache script](https://forum.kirupa.com/t/loading-swf-in-browser-cache-script/321212)

<div class="topic-metadata">

**Author:** [@zayeem](https://forum.kirupa.com/u/zayeem)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 2:34pm UTC](https://forum.kirupa.com/t/loading-swf-in-browser-cache-script/321212 "2011-04-13T14:34:28Z")

</div>

Hi, I am making a swf of surgons.. which going to load in a base moviclip.and they scroll ther right left. The problem is its taking to much time so i want a script which help me to load one by one these files. Or …

---

## [Calling parent variable](https://forum.kirupa.com/t/calling-parent-variable/321211)

<div class="topic-metadata">

**Author:** [@hugot](https://forum.kirupa.com/u/hugot)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 2:20pm UTC](https://forum.kirupa.com/t/calling-parent-variable/321211 "2011-04-13T14:20:31Z")

</div>

Hi: In my main timeline I have a variable "tipos = 5" for example. I want to call a movieclip named movie2 using the "addChild". The movie loads without a problem. My problem is that in my "movie2" I have to access…

---

## [Enemies on AS2! Help!](https://forum.kirupa.com/t/enemies-on-as2-help/321208)

<div class="topic-metadata">

**Author:** [@Marya2900](https://forum.kirupa.com/u/Marya2900)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 1:37pm UTC](https://forum.kirupa.com/t/enemies-on-as2-help/321208 "2011-04-13T13:37:11Z")

</div>

Hi, I'm pretty new to flash, and I have to create this game for my digital imaging class. So far, I have the code below, but there are some problems I've encountered. The enemies need to fall from the top of the screen r…

---

## [Flash Player 'Play' function moves to next frame](https://forum.kirupa.com/t/flash-player-play-function-moves-to-next-frame/321207)

<div class="topic-metadata">

**Author:** [@pjbruce](https://forum.kirupa.com/u/pjbruce)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 1:12pm UTC](https://forum.kirupa.com/t/flash-player-play-function-moves-to-next-frame/321207 "2011-04-13T13:12:06Z")

</div>

Hi, I've got an app based on four frames with seperate events on each frame. The app is powered in AS3 and every frame calls stop(); and everything works well but the swf file in flash player has a problem where if th…

---

## [Overlapping Objects](https://forum.kirupa.com/t/overlapping-objects/321206)

<div class="topic-metadata">

**Author:** [@Moldiar](https://forum.kirupa.com/u/Moldiar)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 12:36pm UTC](https://forum.kirupa.com/t/overlapping-objects/321206 "2011-04-13T12:36:10Z")

</div>

Hello I'm working right now on a map generator. I stumbled on a very annoying problem. I'm using the for loop to add the map elements on the stage. But when the "forest" area begins to be to thick all trees begin to over…

---

## [Adding frames for media error](https://forum.kirupa.com/t/adding-frames-for-media-error/321200)

<div class="topic-metadata">

**Author:** [@MrKlozy](https://forum.kirupa.com/u/MrKlozy)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 10:00am UTC](https://forum.kirupa.com/t/adding-frames-for-media-error/321200 "2011-04-13T10:00:21Z")

</div>

Hey guys, I'm currently working on a project that has been made by someone else. The problem right now is that if I play the .swf that's located in the folder of the .fla everything works fine in the movie. However, …

---

## [getDefinitionByName not work](https://forum.kirupa.com/t/getdefinitionbyname-not-work/321199)

<div class="topic-metadata">

**Author:** [@acrylics](https://forum.kirupa.com/u/acrylics)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 9:00am UTC](https://forum.kirupa.com/t/getdefinitionbyname-not-work/321199 "2011-04-13T09:00:42Z")

</div>

why i can't get a class defined by embed a .png file. like this: \[COLOR=Blue\]\[Embed(source = "../assets/level1/liquid4.png")\] public var Liquid4:Class;\[/COLOR\] then in the same class: \[COLOR=Blue\]var str:String =…

---

## [AS3 SoundFX Gurus - Need Your Help!](https://forum.kirupa.com/t/as3-soundfx-gurus-need-your-help/321195)

<div class="topic-metadata">

**Author:** [@DamonDeMers](https://forum.kirupa.com/u/DamonDeMers)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 5:35am UTC](https://forum.kirupa.com/t/as3-soundfx-gurus-need-your-help/321195 "2011-04-13T05:35:26Z")

</div>

Hello all, I'm working with this SoundFX library. (great FX!) The SoundFX.as file excludes the SoundChannel when calling play... I need the SoundChannel to make dynamic vol adjustments in my app. The author in the…

---

## [Movieclip cannot be clicked](https://forum.kirupa.com/t/movieclip-cannot-be-clicked/321193)

<div class="topic-metadata">

**Author:** [@Macca26](https://forum.kirupa.com/u/Macca26)\
**Replies:** 0\
**Last updated:** [April 13, 2011, 12:44am UTC](https://forum.kirupa.com/t/movieclip-cannot-be-clicked/321193 "2011-04-13T00:44:33Z")

</div>

Ive got my target game where the target spawns on the stage at a random position. When the target spawns however, i am unable to click it to shoot it? Ive got my event listener for the target in my actions on that fr…

---

## [Add 10 seconds to timer](https://forum.kirupa.com/t/add-10-seconds-to-timer/321189)

<div class="topic-metadata">

**Author:** [@FlashN00b2011](https://forum.kirupa.com/u/FlashN00b2011)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 11:30pm UTC](https://forum.kirupa.com/t/add-10-seconds-to-timer/321189 "2011-04-12T23:30:54Z")

</div>

Hi, I have a countdown timer counting down from 60 seconds. What I would like to happen is when the user clicks on the stage I would like the timer to increase by 10 seconds and then carry on counting down. e.g The user …

---

## [Loading one external SWF into another SWF across subdomains](https://forum.kirupa.com/t/loading-one-external-swf-into-another-swf-across-subdomains/321185)

<div class="topic-metadata">

**Author:** [@lefthandedpath](https://forum.kirupa.com/u/lefthandedpath)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 9:35pm UTC](https://forum.kirupa.com/t/loading-one-external-swf-into-another-swf-across-subdomains/321185 "2011-04-12T21:35:54Z")

</div>

I have a.swf, which is the SWF file for my main application, and it's trying to load in b.swf, which contains some additional resources as well as some Actionscript. a.swf lives on sub1.my.domain.com and b.swf lives …

---

## [Need help translating AS2 to AS3](https://forum.kirupa.com/t/need-help-translating-as2-to-as3/321184)

<div class="topic-metadata">

**Author:** [@TechReview](https://forum.kirupa.com/u/TechReview)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 9:12pm UTC](https://forum.kirupa.com/t/need-help-translating-as2-to-as3/321184 "2011-04-12T21:12:36Z")

</div>

I have a bit of code I've been using successfully with AS2 but don't know AS3 to make it work. I've GOT to get it in AS3. All I need it to do is play to a certain point no more than 3 times...hopefully that will be obv…

---

## [Weird preloader movement](https://forum.kirupa.com/t/weird-preloader-movement/321183)

<div class="topic-metadata">

**Author:** [@Toner](https://forum.kirupa.com/u/Toner)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 9:04pm UTC](https://forum.kirupa.com/t/weird-preloader-movement/321183 "2011-04-12T21:04:53Z")

</div>

In Flash CS5 using Actionscript 2.0 I've added a preloader bar to my website www.tallcreation.com which works fine. In the timeline on the frame below where the preloader bar is I've added an image so it lays behind the …

---

## [as3 perform function automatically?](https://forum.kirupa.com/t/as3-perform-function-automatically/321180)

<div class="topic-metadata">

**Author:** [@newbie579](https://forum.kirupa.com/u/newbie579)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 5:48pm UTC](https://forum.kirupa.com/t/as3-perform-function-automatically/321180 "2011-04-12T17:48:26Z")

</div>

Hello All, I'm new to AS3 and having a bit of trouble with listeners. The file consists of 3 buttons and 3 input fields. Clicking either of the first 2 buttons will place a specific number in one of the 2 corresponding…

---

## [Stopwatch with minutes, seconds and miliseconds](https://forum.kirupa.com/t/stopwatch-with-minutes-seconds-and-miliseconds/321178)

<div class="topic-metadata">

**Author:** [@keitho30](https://forum.kirupa.com/u/keitho30)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 5:29pm UTC](https://forum.kirupa.com/t/stopwatch-with-minutes-seconds-and-miliseconds/321178 "2011-04-12T17:29:43Z")

</div>

Hi, Anyone know how to get a stopwatch going in flash? I need it to work as a timer, so no buttons are needed just to begin and displayed when the swf is played. Thanks in Advance

---

## [Adding tracking elements to a button?](https://forum.kirupa.com/t/adding-tracking-elements-to-a-button/321177)

<div class="topic-metadata">

**Author:** [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 4:26pm UTC](https://forum.kirupa.com/t/adding-tracking-elements-to-a-button/321177 "2011-04-12T16:26:48Z")

</div>

So i have a one page site that transitions backgrounds on the click of a button. http://jasonhardwick.com I have google analytics installed on the site but because its a one page site my "bounce rate" is 100% and my "t…

---

## [How do I approach this?](https://forum.kirupa.com/t/how-do-i-approach-this/321176)

<div class="topic-metadata">

**Author:** [@MadStavrogin](https://forum.kirupa.com/u/MadStavrogin)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 3:45pm UTC](https://forum.kirupa.com/t/how-do-i-approach-this/321176 "2011-04-12T15:45:26Z")

</div>

Hi! I’m quite new to flash and programming so I’m having a hard time trying to accomplish this. I want to have several different movieclips on the stage, either added there when making the fla or dinamically created thr…

---

## [Go To Random Frame](https://forum.kirupa.com/t/go-to-random-frame/321175)

<div class="topic-metadata">

**Author:** [@michaelchandler](https://forum.kirupa.com/u/michaelchandler)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 3:38pm UTC](https://forum.kirupa.com/t/go-to-random-frame/321175 "2011-04-12T15:38:46Z")

</div>

I'm making a slideshow that plays the different slides at random. I have a movieclip named products that will have a different image on each of the 19 frames, and a code on the main timeline that changes the frames of th…

---

## [Assign variables do dynamic created buttons?](https://forum.kirupa.com/t/assign-variables-do-dynamic-created-buttons/321173)

<div class="topic-metadata">

**Author:** [@hugot](https://forum.kirupa.com/u/hugot)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 2:49pm UTC](https://forum.kirupa.com/t/assign-variables-do-dynamic-created-buttons/321173 "2011-04-12T14:49:44Z")

</div>

Hi: I have a 13 buttons to wich I added Event listeners using a for loop: for (var i:Number = 1; i \< 13; i++) { this\["main\_bt\_" + i\].addEventListener(MouseEvent.CLICK, onClick); } function onClick(e:MouseEv…

---

## [Class and this.?](https://forum.kirupa.com/t/class-and-this/321171)

<div class="topic-metadata">

**Author:** [@zaartt](https://forum.kirupa.com/u/zaartt)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 2:15pm UTC](https://forum.kirupa.com/t/class-and-this/321171 "2011-04-12T14:15:41Z")

</div>

i dont get how this class beginning works with the this. and \_obj D: "package code { import flash.display.\*; import flash.events.\*; public class \_obj extends MovieClip { var my\_Parent:\_obj; …

---

## [Telvision interference template?](https://forum.kirupa.com/t/telvision-interference-template/321169)

<div class="topic-metadata">

**Author:** [@TheChodja](https://forum.kirupa.com/u/TheChodja)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 1:19pm UTC](https://forum.kirupa.com/t/telvision-interference-template/321169 "2011-04-12T13:19:43Z")

</div>

I don't mean to impose on people who actually know what they're doing, but I'm trying to find a template of some sort, free, that provides this effect: http://videohive.net/item/television-interference/45061 http://www…

---

## [\[Tip\] Skipping super() - Interesting behavior](https://forum.kirupa.com/t/tip-skipping-super-interesting-behavior/321163)

<div class="topic-metadata">

**Author:** [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 11:47am UTC](https://forum.kirupa.com/t/tip-skipping-super-interesting-behavior/321163 "2011-04-12T11:47:54Z")

</div>

The AS3 docs state that super() is called no matter what. This has basically been the common wisdom, too. This isn’t strictly true. It turns out that you can avoid calling the superconstructor by throwing an error: /…

---

## [Creating screens with Flash 8 Pro (AS2) for MySQL DB](https://forum.kirupa.com/t/creating-screens-with-flash-8-pro-as2-for-mysql-db/321162)

<div class="topic-metadata">

**Author:** [@cueball11](https://forum.kirupa.com/u/cueball11)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 11:19am UTC](https://forum.kirupa.com/t/creating-screens-with-flash-8-pro-as2-for-mysql-db/321162 "2011-04-12T11:19:14Z")

</div>

Hi, I've read some of the Flash 8 Pro help about connecting to a relational database, specifically MySQL. I'm afraid I only know enough AS 2 to be dangerous so I was wondering if someone could give me a 1 or 2 paragrap…

---

## [DisplayObject dispath event](https://forum.kirupa.com/t/displayobject-dispath-event/321161)

<div class="topic-metadata">

**Author:** [@acrylics](https://forum.kirupa.com/u/acrylics)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 10:41am UTC](https://forum.kirupa.com/t/displayobject-dispath-event/321161 "2011-04-12T10:41:26Z")

</div>

I embeded a png format picture and set class like Axe:Class;,and set a variable like pic:DisplayObject,and point pic to an object,var pic=new Axe(); added it to the display list:addChild(pic); then i added the eventListe…

---

## [Microsoft VBScript runtime error '800a0005'](https://forum.kirupa.com/t/microsoft-vbscript-runtime-error-800a0005/321159)

<div class="topic-metadata">

**Author:** [@rahulkanna](https://forum.kirupa.com/u/rahulkanna)\
**Replies:** 0\
**Last updated:** [April 12, 2011, 8:29am UTC](https://forum.kirupa.com/t/microsoft-vbscript-runtime-error-800a0005/321159 "2011-04-12T08:29:32Z")

</div>

Hi friends I am getting Error listed below \[FONT=Arial\] Microsoft VBScript runtime \[/FONT\]\[FONT=Arial\] error '800a0005' \[/FONT\]\[FONT=Times New Roman\] \[/FONT\]\[FONT=Arial\] Invalid procedure call or argume…

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

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