# programming

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

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

**Page:** 1375

---

## [Bug in with-statement?](https://forum.kirupa.com/t/bug-in-with-statement/250871)

<div class="topic-metadata">

**Author:** [@cons](https://forum.kirupa.com/u/cons)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 4:10pm UTC](https://forum.kirupa.com/t/bug-in-with-statement/250871 "2008-02-02T16:10:25Z")

</div>

According to the docs, the scope chain used by the with statement to resolve identifiers is: innermost with-statement -\> outermost with-statement -\> activation object -\> etc. If this would be true, the following code sho…

---

## [Event listener, help!](https://forum.kirupa.com/t/event-listener-help/250867)

<div class="topic-metadata">

**Author:** [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 1:26pm UTC](https://forum.kirupa.com/t/event-listener-help/250867 "2008-02-02T13:26:43Z")

</div>

If ten mc's are going to have the same MOUSE\_DOWN event, how can I, inside the mouseDown-function, know which mc it is? Like; for(var i=0;i\<10;i++) { this\["mc"+i\].addEventListener(MouseEvent.MOUSE\_DOWN, press); } func…

---

## [Getting images from an xml and into seperate MovieClips/Sprites](https://forum.kirupa.com/t/getting-images-from-an-xml-and-into-seperate-movieclips-sprites/250866)

<div class="topic-metadata">

**Author:** [@Blekk](https://forum.kirupa.com/u/Blekk)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 1:21pm UTC](https://forum.kirupa.com/t/getting-images-from-an-xml-and-into-seperate-movieclips-sprites/250866 "2008-02-02T13:21:06Z")

</div>

Hello, I have a bit of a problem. I have started on an AS file to get images from an XML document and then add them to separate movieclips (or any other bitmap holder) so that I can then manipulate them separately. M…

---

## [Dynamic AS Grid - works but ...\>](https://forum.kirupa.com/t/dynamic-as-grid-works-but/250865)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 12:49pm UTC](https://forum.kirupa.com/t/dynamic-as-grid-works-but/250865 "2008-02-02T12:49:27Z")

</div>

Hi, Ive written some code to create a grid out of dynamically placed blocks from the library, which has a random colour assigned to each one on creation. The Code is simple .. But Takes my browser - ages to load up, as…

---

## [How to make programme in C++](https://forum.kirupa.com/t/how-to-make-programme-in-c/250860)

<div class="topic-metadata">

**Author:** [@sunnyjaswani](https://forum.kirupa.com/u/sunnyjaswani)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 9:53am UTC](https://forum.kirupa.com/t/how-to-make-programme-in-c/250860 "2008-02-02T09:53:40Z")

</div>

actully i am new in web Development and I want to know about this Language. I want to make a Project for my Company efforts unlimited how to I use this.

---

## [Padding as it were of Stage.width](https://forum.kirupa.com/t/padding-as-it-were-of-stage-width/250859)

<div class="topic-metadata">

**Author:** [@rai\_kane3](https://forum.kirupa.com/u/rai_kane3)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 9:01am UTC](https://forum.kirupa.com/t/padding-as-it-were-of-stage-width/250859 "2008-02-02T09:01:53Z")

</div>

i have a mask which is over some thumbnails. i have given that mask the value of Stage.width i.e mask\_mc.\_width = Stage.width /1; however i would like the mask to e slightly padded left and right so the mask doesnt …

---

## [\_root.loadMovie() equivalent?](https://forum.kirupa.com/t/-root-loadmovie-equivalent/250855)

<div class="topic-metadata">

**Author:** [@Hypah](https://forum.kirupa.com/u/Hypah)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 6:00am UTC](https://forum.kirupa.com/t/-root-loadmovie-equivalent/250855 "2008-02-02T06:00:52Z")

</div>

I need the functionality that "\_root.loadMovie()" provides in every other Flash version!! I CANNOT utilize "stage.addChild(Loader.content)" as a workaround. A Flash 6 .swf is involved whose script does NOT execute prop…

---

## [Delete a level in memory](https://forum.kirupa.com/t/delete-a-level-in-memory/250851)

<div class="topic-metadata">

**Author:** [@chaudan](https://forum.kirupa.com/u/chaudan)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 4:16am UTC](https://forum.kirupa.com/t/delete-a-level-in-memory/250851 "2008-02-02T04:16:46Z")

</div>

Hi all, i'm developing a game where a level is created on a certain frame on the timeline. The level is described in an external .as file. So lets say at frame 5, i just did a var level = new level(); At the end of…

---

## [Jumping to a frame \*inside\* a loading swiff](https://forum.kirupa.com/t/jumping-to-a-frame-inside-a-loading-swiff/250850)

<div class="topic-metadata">

**Author:** [@will\_s](https://forum.kirupa.com/u/will_s)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 3:53am UTC](https://forum.kirupa.com/t/jumping-to-a-frame-inside-a-loading-swiff/250850 "2008-02-02T03:53:27Z")

</div>

I have this code on the home page of a site: root.createEmptyMovieClip("loadExternalSwiffsmc", 2); loadExternalSwiffs\_mc.\_x = 0; loadExternalSwiffs\_mc.\_y = 103; root.loadExternalSwiffsmc.loadMovie("introSplashPage.swf"…

---

## [Getting My Head Around ApplicationDomain](https://forum.kirupa.com/t/getting-my-head-around-applicationdomain/250843)

<div class="topic-metadata">

**Author:** [@dail](https://forum.kirupa.com/u/dail)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 1:42am UTC](https://forum.kirupa.com/t/getting-my-head-around-applicationdomain/250843 "2008-02-02T01:42:12Z")

</div>

Hi, Ok, so I have been messing around with applicationDomains. Getting communication between a parent swf and a child swf and its various embedded classes is straight forward. I found you can either use applicationDoma…

---

## [Securing the Kirupa Guestbook?](https://forum.kirupa.com/t/securing-the-kirupa-guestbook/250842)

<div class="topic-metadata">

**Author:** [@bbf3](https://forum.kirupa.com/u/bbf3)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 1:25am UTC](https://forum.kirupa.com/t/securing-the-kirupa-guestbook/250842 "2008-02-02T01:25:36Z")

</div>

Hey, Can someone help me secure the kirupa guestbook. I think someone is hacking it on a site I've made: php: \<?php $file = fopen("guestbook.xml", "w+") or die("Can't open XML file"); $xmlString = $HTTP\_RAW\_POST\_DAT…

---

## [Timeline vanashing](https://forum.kirupa.com/t/timeline-vanashing/250841)

<div class="topic-metadata">

**Author:** [@george2409](https://forum.kirupa.com/u/george2409)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 1:06am UTC](https://forum.kirupa.com/t/timeline-vanashing/250841 "2008-02-02T01:06:26Z")

</div>

For some really weird reason the timeline has vanished from the stage. When I click the timeline button on both the stage and the window box it appears briefly before vanishing again. Any ideas? Thanks

---

## [ON\_BUFFERING Event for a sound](https://forum.kirupa.com/t/on-buffering-event-for-a-sound/250840)

<div class="topic-metadata">

**Author:** [@jedhu0920](https://forum.kirupa.com/u/jedhu0920)\
**Replies:** 0\
**Last updated:** [February 2, 2008, 12:55am UTC](https://forum.kirupa.com/t/on-buffering-event-for-a-sound/250840 "2008-02-02T00:55:09Z")

</div>

I am building an MP3 player. I need to detect if the audio pauses due to an empty buffer so that I can show a loading indicator. I've scoured all the Sound classes and can't find any 'ON\_BUFFERING' type events. How would…

---

## [Error calling javascript function using ExternalInterface.call](https://forum.kirupa.com/t/error-calling-javascript-function-using-externalinterface-call/250834)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 11:36pm UTC](https://forum.kirupa.com/t/error-calling-javascript-function-using-externalinterface-call/250834 "2008-02-01T23:36:54Z")

</div>

I'm attempting to execute Javascript code (the fromFlash() function) that's in an .HTM file, in which is embedded my .SWF file. I'm using the following code in the .FLA file: myButton.addEventListener(MouseEvent.CLICK…

---

## [Flash screensavers for Motorola Razr V3cm](https://forum.kirupa.com/t/flash-screensavers-for-motorola-razr-v3cm/250833)

<div class="topic-metadata">

**Author:** [@Hellion](https://forum.kirupa.com/u/Hellion)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 11:28pm UTC](https://forum.kirupa.com/t/flash-screensavers-for-motorola-razr-v3cm/250833 "2008-02-01T23:28:46Z")

</div>

Does anybody knows where to find tutorials on how to create and install screensavers for the Razr V3cm with Flash? Thanks in advance.

---

## [Embedding in Flex Actionscript Projects](https://forum.kirupa.com/t/embedding-in-flex-actionscript-projects/250831)

<div class="topic-metadata">

**Author:** [@rrh](https://forum.kirupa.com/u/rrh)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 11:06pm UTC](https://forum.kirupa.com/t/embedding-in-flex-actionscript-projects/250831 "2008-02-01T23:06:31Z")

</div>

So I've taken to doing a few things and I would like comments on it please. I like Flex as a development environment because of the way it organizes classes; I've been makingActionScript projects in Flex. However, sin…

---

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

<div class="topic-metadata">

**Author:** [@hrbi](https://forum.kirupa.com/u/hrbi)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 10:33pm UTC](https://forum.kirupa.com/t/drop-down-box/250829 "2008-02-01T22:33:10Z")

</div>

Hi guys... Please help me with this simpel AS issue. It sounds easy and it probraly is, but my newbie brain has bin working overtime, and im completly lost.. \[frowning\] Here goes.. I have a small recuangle box with…

---

## [Assistance with game flow](https://forum.kirupa.com/t/assistance-with-game-flow/250827)

<div class="topic-metadata">

**Author:** [@killerspam](https://forum.kirupa.com/u/killerspam)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 9:59pm UTC](https://forum.kirupa.com/t/assistance-with-game-flow/250827 "2008-02-01T21:59:13Z")

</div>

Hi guys, I'm creating a game using AS3 (specifically using FDT). I've spent the past week learning all of the available OO-design patterns, and I'm trying to put them to good use, where appropriate. I'm having troubl…

---

## [Portfolio scaling frame](https://forum.kirupa.com/t/portfolio-scaling-frame/250824)

<div class="topic-metadata">

**Author:** [@Rumr](https://forum.kirupa.com/u/Rumr)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 8:49pm UTC](https://forum.kirupa.com/t/portfolio-scaling-frame/250824 "2008-02-01T20:49:22Z")

</div>

I am wondering if someone could help me in giving me a direction or solution to go about my portfolio www.jamespg.com/new.html I want the buttons the left to load up the images in the main frame but before doing that…

---

## [SLide show FireFox Issue](https://forum.kirupa.com/t/slide-show-firefox-issue/250821)

<div class="topic-metadata">

**Author:** [@eanimator](https://forum.kirupa.com/u/eanimator)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 8:12pm UTC](https://forum.kirupa.com/t/slide-show-firefox-issue/250821 "2008-02-01T20:12:59Z")

</div>

Hello guys, I am very much new to the AS and have been following kirupa's tutorial. This site rocks !! Using the code form Kirupa's XML Gallery. The problem is when the nextImage() function called/invoked slideshow…

---

## [Image Gallery Tutorail](https://forum.kirupa.com/t/image-gallery-tutorail/250817)

<div class="topic-metadata">

**Author:** [@Arkman](https://forum.kirupa.com/u/Arkman)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 7:51pm UTC](https://forum.kirupa.com/t/image-gallery-tutorail/250817 "2008-02-01T19:51:48Z")

</div>

I have used the image gallery tutorial that I found here. I have everything working but the scrolling thumbnails. I can get it to work the way it is suppose to but I want to edit it a little bit. Instead of moving lef…

---

## [Help with Flex/Flickr API](https://forum.kirupa.com/t/help-with-flex-flickr-api/250816)

<div class="topic-metadata">

**Author:** [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 7:39pm UTC](https://forum.kirupa.com/t/help-with-flex-flickr-api/250816 "2008-02-01T19:39:19Z")

</div>

I know photo galleries have been beaten to a pulp, but I just need some relatively simple help... Alessandro Crugnola's Flex/Flickr API is posted here: http://www.sephiroth.it/phpBB/showthread.php?t=7016 I'm trying t…

---

## [EnabledWarnings.xml - \<Warning\_NoTypeDecl\> - LOL](https://forum.kirupa.com/t/enabledwarnings-xml-warning-notypedecl-lol/250815)

<div class="topic-metadata">

**Author:** [@IlTimido](https://forum.kirupa.com/u/IlTimido)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 7:16pm UTC](https://forum.kirupa.com/t/enabledwarnings-xml-warning-notypedecl-lol/250815 "2008-02-01T19:16:09Z")

</div>

I noticed that if I set to "true" the "enabled" attribute of the \<Warning\_NoTypeDecl\> tag in "/en/Configuration/Actionscript 3.0/EnabledWarnings.xml" I get warnings from classes located inside these files: StyleManager.a…

---

## [XML, Looping through an array](https://forum.kirupa.com/t/xml-looping-through-an-array/250813)

<div class="topic-metadata">

**Author:** [@pixel\_chick](https://forum.kirupa.com/u/pixel_chick)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 7:08pm UTC](https://forum.kirupa.com/t/xml-looping-through-an-array/250813 "2008-02-01T19:08:42Z")

</div>

I have an XML document that loading into Flash. I have a dynamic text box on the stage that I am writing the XML to. My problem is, I have 6 group names that I am pulling from my XML file and I want to write each one of …

---

## [Button Question - Flash CS3](https://forum.kirupa.com/t/button-question-flash-cs3/250811)

<div class="topic-metadata">

**Author:** [@skitelluride531](https://forum.kirupa.com/u/skitelluride531)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 6:53pm UTC](https://forum.kirupa.com/t/button-question-flash-cs3/250811 "2008-02-01T18:53:59Z")

</div>

Hello, I am new here, but this site is awesome! I have a quick question regarding flash buttons. I have been learning flash myself over the past few months, and have always wondered how to limit the clickable region …

---

## [\[IE7\] Tables Lag entire program... fix?](https://forum.kirupa.com/t/ie7-tables-lag-entire-program-fix/250809)

<div class="topic-metadata">

**Author:** [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 6:27pm UTC](https://forum.kirupa.com/t/ie7-tables-lag-entire-program-fix/250809 "2008-02-01T18:27:16Z")

</div>

I've never had this happen before, but its probably a bug that I need to get around... in Safari and FF everything is nice and smooth... but in IE7 the table is causing massive lag for all rollovers and scrolling is pain…

---

## [Accessing "parent" movie clips](https://forum.kirupa.com/t/accessing-parent-movie-clips/250808)

<div class="topic-metadata">

**Author:** [@ZenBlender](https://forum.kirupa.com/u/ZenBlender)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 5:45pm UTC](https://forum.kirupa.com/t/accessing-parent-movie-clips/250808 "2008-02-01T17:45:54Z")

</div>

I am considering converting a huge game from AS2.0 to AS3.0. It seems everything is different. Specifically, here's an issue: In general I have a bunch of scenes where each scene has a class that governs how it works…

---

## [attachMovie from an external swf](https://forum.kirupa.com/t/attachmovie-from-an-external-swf/250807)

<div class="topic-metadata">

**Author:** [@satiss](https://forum.kirupa.com/u/satiss)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 5:39pm UTC](https://forum.kirupa.com/t/attachmovie-from-an-external-swf/250807 "2008-02-01T17:39:26Z")

</div>

Hello everyone, I have a pretty basic question. I have 2 .swf : main.swf and child.swf The main.swf load the movie with \_root.myExternal.loadMovie("child.swf"). Once everything is loaded I need to attach a movieCli…

---

## [\<?PHP ?\>: If Statements in Switch cases](https://forum.kirupa.com/t/php-if-statements-in-switch-cases/250795)

<div class="topic-metadata">

**Author:** [@bear](https://forum.kirupa.com/u/bear)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 4:46pm UTC](https://forum.kirupa.com/t/php-if-statements-in-switch-cases/250795 "2008-02-01T16:46:14Z")

</div>

Is this actually possible? I thought I saw this before. Not sure if it was real or not. If so, then how does it work?

---

## [AttachMovie and Loop](https://forum.kirupa.com/t/attachmovie-and-loop/250792)

<div class="topic-metadata">

**Author:** [@No\_44](https://forum.kirupa.com/u/No_44)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 4:19pm UTC](https://forum.kirupa.com/t/attachmovie-and-loop/250792 "2008-02-01T16:19:32Z")

</div>

Hello all - I am having a bit of a problem and I would like some input on how to solve it. What I am trying to do is design a game where users design a park, by dragging trees, benches, flowers, etc., onto the stage i…

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

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