# programming

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

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

**Page:** 290

---

## [TypeError: Error #1009: Cannot access a property. Does not work in IE!](https://forum.kirupa.com/t/typeerror-error-1009-cannot-access-a-property-does-not-work-in-ie/321553)

<div class="topic-metadata">

**Author:** [@videosalesleads](https://forum.kirupa.com/u/videosalesleads)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 11:23pm UTC](https://forum.kirupa.com/t/typeerror-error-1009-cannot-access-a-property-does-not-work-in-ie/321553 "2011-04-22T23:23:24Z")

</div>

I have a video marketing site and wanted to showcase examples on the homepage from a side "menu". I set up a script and it works perfectly in Fire Fox. Then tried it in IE and the function pulls the video into the cor…

---

## [Particles cause lag](https://forum.kirupa.com/t/particles-cause-lag/321552)

<div class="topic-metadata">

**Author:** [@John4213](https://forum.kirupa.com/u/John4213)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 8:27pm UTC](https://forum.kirupa.com/t/particles-cause-lag/321552 "2011-04-22T20:27:01Z")

</div>

Hey, I've made it so when you die in my game, you explode into 20 particles which usually lags the game, especially if it's being played in a browser. I'm pretty sure that it's just because of the graphics, but has an…

---

## [Print problem in flash. Is there onPrintFinished event or similar?](https://forum.kirupa.com/t/print-problem-in-flash-is-there-onprintfinished-event-or-similar/321551)

<div class="topic-metadata">

**Author:** [@bobetko](https://forum.kirupa.com/u/bobetko)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 8:06pm UTC](https://forum.kirupa.com/t/print-problem-in-flash-is-there-onprintfinished-event-or-similar/321551 "2011-04-22T20:06:53Z")

</div>

Who can explain why mc2 movie gets printed in snippet below? mc1.\_visible = true; mc2.\_visible = false; printNum (0, "bmovie"); mc2.\_visible = true; If I comment last line then mc2 is not printed. I assume the reason…

---

## [Media queries. help/discuss](https://forum.kirupa.com/t/media-queries-help-discuss/321549)

<div class="topic-metadata">

**Author:** [@somdow](https://forum.kirupa.com/u/somdow)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 6:09pm UTC](https://forum.kirupa.com/t/media-queries-help-discuss/321549 "2011-04-22T18:09:53Z")

</div>

Hello everyone. so ive been thinking of messing around with trying to get one of my current websites to be more mobile friendly. admittedly, most of the people who will see it are on iphones and droids etc... so as i…

---

## [Get rid of confirmation message when closing flash pop up](https://forum.kirupa.com/t/get-rid-of-confirmation-message-when-closing-flash-pop-up/321546)

<div class="topic-metadata">

**Author:** [@nakanaka](https://forum.kirupa.com/u/nakanaka)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 4:42pm UTC](https://forum.kirupa.com/t/get-rid-of-confirmation-message-when-closing-flash-pop-up/321546 "2011-04-22T16:42:07Z")

</div>

\[FONT=Calibri\] Hi, \[/FONT\] \[FONT=Calibri\] I have a parent window that has a flash movie embedded in it. When a certain button is clicked inside the flash movie, it calls a a pop up javascript function to pop up a w…

---

## [getElementsByTagName](https://forum.kirupa.com/t/getelementsbytagname/321544)

<div class="topic-metadata">

**Author:** [@chapster](https://forum.kirupa.com/u/chapster)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 2:48pm UTC](https://forum.kirupa.com/t/getelementsbytagname/321544 "2011-04-22T14:48:32Z")

</div>

I have this example and am trying to get my head around referencing DOM objects. \<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"\> \<html xmlns="…

---

## [PHP Syntax Error Issues](https://forum.kirupa.com/t/php-syntax-error-issues/321542)

<div class="topic-metadata">

**Author:** [@liaminax](https://forum.kirupa.com/u/liaminax)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 1:29pm UTC](https://forum.kirupa.com/t/php-syntax-error-issues/321542 "2011-04-22T13:29:46Z")

</div>

Hi, I'm having an issue with the php file below. Line 350, just after the final ?\> is showing a syntax error and i can't work out what the issue is. If i delete some coding, the syntax error just moves to the last line…

---

## [AS3: Graphic based speedometer for driving game](https://forum.kirupa.com/t/as3-graphic-based-speedometer-for-driving-game/321541)

<div class="topic-metadata">

**Author:** [@Iakona](https://forum.kirupa.com/u/Iakona)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 12:25pm UTC](https://forum.kirupa.com/t/as3-graphic-based-speedometer-for-driving-game/321541 "2011-04-22T12:25:30Z")

</div>

Hi there! I’m currently making a simple racing game in AS3… I’m not all that expierenced with games as this is only my second one. Right now i have a dynamic text based speedometer that works as it should… The numbers …

---

## [Flash game: need help](https://forum.kirupa.com/t/flash-game-need-help/321539)

<div class="topic-metadata">

**Author:** [@kup0](https://forum.kirupa.com/u/kup0)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 10:22am UTC](https://forum.kirupa.com/t/flash-game-need-help/321539 "2011-04-22T10:22:01Z")

</div>

Hi, I'm currently trying to program a flash game using actionscript 3.0 where users would step on insects. Basically, I added multiple instances of insects movieclip and remove them by using hitTest function. When the mo…

---

## [If your scrollbar is vertical for more than 8 hours call your doctor!](https://forum.kirupa.com/t/if-your-scrollbar-is-vertical-for-more-than-8-hours-call-your-doctor/321533)

<div class="topic-metadata">

**Author:** [@simranzenov](https://forum.kirupa.com/u/simranzenov)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 4:46am UTC](https://forum.kirupa.com/t/if-your-scrollbar-is-vertical-for-more-than-8-hours-call-your-doctor/321533 "2011-04-22T04:46:16Z")

</div>

This is my first time skinning a scrollbar and I ran into a issue. The button I click and hold to scroll up and down changes in size depending on how much content there is. Is there a way to keep the button from changin…

---

## [TextFlow size](https://forum.kirupa.com/t/textflow-size/321532)

<div class="topic-metadata">

**Author:** [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 4:04am UTC](https://forum.kirupa.com/t/textflow-size/321532 "2011-04-22T04:04:57Z")

</div>

Hello, Anyone here know how to get the final size of a TextFlow object after performing the following call: textFlow = TextConverter.importToFlow (S, TextConverter .TEXT\_FIELD\_HTML\_FORMAT); I have tried measu…

---

## [How do I import an .swf so it is centered on the stage?](https://forum.kirupa.com/t/how-do-i-import-an-swf-so-it-is-centered-on-the-stage/321530)

<div class="topic-metadata">

**Author:** [@jimr](https://forum.kirupa.com/u/jimr)\
**Replies:** 0\
**Last updated:** [April 22, 2011, 1:53am UTC](https://forum.kirupa.com/t/how-do-i-import-an-swf-so-it-is-centered-on-the-stage/321530 "2011-04-22T01:53:21Z")

</div>

How do I import a .swf so that the entire thing--all 50 frames of it in the case of the animation I'm importing--is centered on the Flash Stage? (I am using CS5). When I import it now it's automatically positioned in …

---

## [Lottery balls floating, bouncing](https://forum.kirupa.com/t/lottery-balls-floating-bouncing/321527)

<div class="topic-metadata">

**Author:** [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 11:14pm UTC](https://forum.kirupa.com/t/lottery-balls-floating-bouncing/321527 "2011-04-21T23:14:30Z")

</div>

Trying to wrap my mind around how lottery balls fly around in those air bubbles. They are pushed up and around I assume, and they bounce off each other and the round sides of the container. I have been searching for ex…

---

## [Newline (\\n) confusion](https://forum.kirupa.com/t/newline-n-confusion/321524)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 9:01pm UTC](https://forum.kirupa.com/t/newline-n-confusion/321524 "2011-04-21T21:01:18Z")

</div>

Hello all, I'm wondering why there is a behavior difference where a newline character ( ) is involved, between a string:String and a string represented by textField.text. To wit: var str:String = "Hello world"; trace…

---

## [Reversing Movie Clip](https://forum.kirupa.com/t/reversing-movie-clip/321521)

<div class="topic-metadata">

**Author:** [@biggell014](https://forum.kirupa.com/u/biggell014)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 8:09pm UTC](https://forum.kirupa.com/t/reversing-movie-clip/321521 "2011-04-21T20:09:05Z")

</div>

Hi guys. I am trying to have a small simple animation. This animation needs to have a roll over listener. This roll over listener must begin a downward motion for this movie clip. And then another listener must be a clic…

---

## [A little help with dictionary indexing](https://forum.kirupa.com/t/a-little-help-with-dictionary-indexing/321518)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 6:21pm UTC](https://forum.kirupa.com/t/a-little-help-with-dictionary-indexing/321518 "2011-04-21T18:21:23Z")

</div>

I have a number of movieclips on the stage, each has a number of child MCs. The parent MC represent files and the child MC represent targets. This is a tool for "mapping out" a story-lin scenario graphically and producin…

---

## [Error 1013 Issue!](https://forum.kirupa.com/t/error-1013-issue/321517)

<div class="topic-metadata">

**Author:** [@kbowk](https://forum.kirupa.com/u/kbowk)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 5:53pm UTC](https://forum.kirupa.com/t/error-1013-issue/321517 "2011-04-21T17:53:04Z")

</div>

Hi there, I had this class working fine but i've just added some more functions and now im getting thrown this error: 1013: The private attribute may be used only on class property definitions. I really don't underst…

---

## [How can I fix this error?](https://forum.kirupa.com/t/how-can-i-fix-this-error/321516)

<div class="topic-metadata">

**Author:** [@vinnieb](https://forum.kirupa.com/u/vinnieb)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 4:51pm UTC](https://forum.kirupa.com/t/how-can-i-fix-this-error/321516 "2011-04-21T16:51:10Z")

</div>

Hi, I am working on a piece of code and I get an error which i dont know how to fix. The piece of code below is AS2, I am trying to get it in a AS3 class. The problem is that the "dp" and the "v" variable give a duplic…

---

## [Flash (AS3) to PHP issues](https://forum.kirupa.com/t/flash-as3-to-php-issues/321515)

<div class="topic-metadata">

**Author:** [@jc\_021286](https://forum.kirupa.com/u/jc_021286)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 4:31pm UTC](https://forum.kirupa.com/t/flash-as3-to-php-issues/321515 "2011-04-21T16:31:43Z")

</div>

Hi there, I'm new to flash and more so to PHP. I've been struggling with some tutorials at getting this to work. Source files are attached with php included. Right now, I've been struggling with having AS3 send somethi…

---

## [Call function in function](https://forum.kirupa.com/t/call-function-in-function/321508)

<div class="topic-metadata">

**Author:** [@wouter11](https://forum.kirupa.com/u/wouter11)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 12:14pm UTC](https://forum.kirupa.com/t/call-function-in-function/321508 "2011-04-21T12:14:52Z")

</div>

Hi all, I have a bit of a problem. Im starting in flash, and well now i want to call a function in a function. Because i've got multiple album arts and when the mouse over they have to zoomIn. Well i already got the zo…

---

## [AS3 Image fill preloader](https://forum.kirupa.com/t/as3-image-fill-preloader/321507)

<div class="topic-metadata">

**Author:** [@robinsnuggs](https://forum.kirupa.com/u/robinsnuggs)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 12:00pm UTC](https://forum.kirupa.com/t/as3-image-fill-preloader/321507 "2011-04-21T12:00:06Z")

</div>

hi all, Im somewhat a newbie to as3, ive tried making a image fill preloader using masks etc. When publishing its just showing my preloader not continuing to my content. which is on frame 11. I was wondering if anyne …

---

## [Remote Loading](https://forum.kirupa.com/t/remote-loading/321506)

<div class="topic-metadata">

**Author:** [@Nebulous](https://forum.kirupa.com/u/Nebulous)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 11:50am UTC](https://forum.kirupa.com/t/remote-loading/321506 "2011-04-21T11:50:28Z")

</div>

Hi, I have written a game library for the company I work for, which gets remotely downloaded from our servers. This all works fine, the problem is I am trying to integrate a third party API into our API which works i…

---

## [Communicating between two classes](https://forum.kirupa.com/t/communicating-between-two-classes/321505)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 11:40am UTC](https://forum.kirupa.com/t/communicating-between-two-classes/321505 "2011-04-21T11:40:57Z")

</div>

Hey, I have a custom keyboard class. The second class is having a textBox as its child and my custom keyboard's object as child. When the key in the custom keyboard is clicked, how can i update the value in the text box? …

---

## [Random sum](https://forum.kirupa.com/t/random-sum/321504)

<div class="topic-metadata">

**Author:** [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 11:21am UTC](https://forum.kirupa.com/t/random-sum/321504 "2011-04-21T11:21:49Z")

</div>

I want to have 4 randomly generated variables whose sum is equal to hundred. Not sure of finding the appropriate way to do it. Please help.

---

## [FMS - How to Detect Latency](https://forum.kirupa.com/t/fms-how-to-detect-latency/321497)

<div class="topic-metadata">

**Author:** [@varunsoni\_sps](https://forum.kirupa.com/u/varunsoni_sps)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 6:59am UTC](https://forum.kirupa.com/t/fms-how-to-detect-latency/321497 "2011-04-21T06:59:27Z")

</div>

Hi, I need to calculate the latency means time difference between the two user machines the scenario is: App 1 publishes stream App 2 play the stream published by App 1 Now in App 2 I need to show the time dif…

---

## [To find we have given an listener to stage](https://forum.kirupa.com/t/to-find-we-have-given-an-listener-to-stage/321496)

<div class="topic-metadata">

**Author:** [@microScript](https://forum.kirupa.com/u/microScript)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 6:32am UTC](https://forum.kirupa.com/t/to-find-we-have-given-an-listener-to-stage/321496 "2011-04-21T06:32:49Z")

</div>

Hi guys, I have created a listener for stage in a function. The same function is called by another function. Now I need to check with a condition that whether the stage listener is present or not. stage.addEventLi…

---

## [Need ideas on how to show cholesterol build up](https://forum.kirupa.com/t/need-ideas-on-how-to-show-cholesterol-build-up/321492)

<div class="topic-metadata">

**Author:** [@Chbook](https://forum.kirupa.com/u/Chbook)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 3:22am UTC](https://forum.kirupa.com/t/need-ideas-on-how-to-show-cholesterol-build-up/321492 "2011-04-21T03:22:14Z")

</div>

Hi, I am trying to show cholesterol molecules increasing/decreasing over a period of time (in a rough triangular pile) according to the variables selected. The build up/decrease of cholesterol should stop when the timer …

---

## [AS3 + XML + Layers question](https://forum.kirupa.com/t/as3-xml-layers-question/321491)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 2:59am UTC](https://forum.kirupa.com/t/as3-xml-layers-question/321491 "2011-04-21T02:59:56Z")

</div>

I am trying to use the TMX Tile Map Editor to create a tiled map for my RPG game. Thus far it is going great, however I am having difficulties trying to decipher certain parts of my tmx file (exported as an XML file). In…

---

## [Calling an Instance](https://forum.kirupa.com/t/calling-an-instance/321484)

<div class="topic-metadata">

**Author:** [@FlashAj325](https://forum.kirupa.com/u/FlashAj325)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 12:36am UTC](https://forum.kirupa.com/t/calling-an-instance/321484 "2011-04-21T00:36:35Z")

</div>

\[FONT=Courier New\]This may seem a bit "really?" if you know what I mean, but I can't figure out how to call an instance name of something. In the example below, Callout is a movie clip of a cartoon bubble with some text …

---

## [Calling in the big dogs on this one (tricky)](https://forum.kirupa.com/t/calling-in-the-big-dogs-on-this-one-tricky/321483)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [April 21, 2011, 12:35am UTC](https://forum.kirupa.com/t/calling-in-the-big-dogs-on-this-one-tricky/321483 "2011-04-21T00:35:50Z")

</div>

OK. I am making a graphical tool that will create a XML file which "maps" out a scenario. This scenario is something that a student goes through and answers questions which takes them to another part of the story based o…

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

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