# programming

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

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

**Page:** 261

---

## [Tips on organizing class files](https://forum.kirupa.com/t/tips-on-organizing-class-files/323280)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [June 23, 2011, 12:39pm UTC](https://forum.kirupa.com/t/tips-on-organizing-class-files/323280 "2011-06-23T12:39:48Z")

</div>

I recently started to use class files here and there. What are some tips on organizing them.For instance I am thinking that a class for textfields would be handy since coding a textfield involves quite a few lines of cod…

---

## [Load html page in same swf file using button](https://forum.kirupa.com/t/load-html-page-in-same-swf-file-using-button/323272)

<div class="topic-metadata">

**Author:** [@a\_s1](https://forum.kirupa.com/u/a_s1)\
**Replies:** 0\
**Last updated:** [June 23, 2011, 5:52am UTC](https://forum.kirupa.com/t/load-html-page-in-same-swf-file-using-button/323272 "2011-06-23T05:52:02Z")

</div>

\[FONT="Arial"\]I want to load html page in same swf file using button i created one flash file in that i make the one button when i click on that button i want load the html page in that same flash file and hide that butt…

---

## [mouseChildren=false;](https://forum.kirupa.com/t/mousechildren-false/323266)

<div class="topic-metadata">

**Author:** [@tbo](https://forum.kirupa.com/u/tbo)\
**Replies:** 0\
**Last updated:** [June 23, 2011, 1:29am UTC](https://forum.kirupa.com/t/mousechildren-false/323266 "2011-06-23T01:29:59Z")

</div>

container.mouseChildren=false; container.mouseEnabled=false; to set\*\* mouseEnabled=false\*\* for each child of container would not help performance right? thanks

---

## [MovieClips above button are blocking mouse events](https://forum.kirupa.com/t/movieclips-above-button-are-blocking-mouse-events/323265)

<div class="topic-metadata">

**Author:** [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 10:26pm UTC](https://forum.kirupa.com/t/movieclips-above-button-are-blocking-mouse-events/323265 "2011-06-22T22:26:57Z")

</div>

Hello I have some buttons that work fine, but when I put a movie clip above them, the stop to react to the mouse. Is there a code to make the mouse to be ignored by that MC?

---

## [attachMovie not working!](https://forum.kirupa.com/t/attachmovie-not-working/323263)

<div class="topic-metadata">

**Author:** [@NuclearTeddies](https://forum.kirupa.com/u/NuclearTeddies)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 9:35pm UTC](https://forum.kirupa.com/t/attachmovie-not-working/323263 "2011-06-22T21:35:19Z")

</div>

So my code is failing pretty hard. I'm trying to build a little tile editor for a game I'm about to make, but in setting up the tiles on the screen something goes wrong. Here's the code: for (j = 0; j \< \_root.mapHeigh…

---

## [Remote Flash App](https://forum.kirupa.com/t/remote-flash-app/323262)

<div class="topic-metadata">

**Author:** [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 8:34pm UTC](https://forum.kirupa.com/t/remote-flash-app/323262 "2011-06-22T20:34:07Z")

</div>

I just got asked if it was possible to build an app in Flash, The prospective client wants to be able to view what users of the app are doing (note: with there knowledge) and may possibly want to give them instructions v…

---

## [Getting The Height and Width of another web page](https://forum.kirupa.com/t/getting-the-height-and-width-of-another-web-page/323261)

<div class="topic-metadata">

**Author:** [@dreamerp](https://forum.kirupa.com/u/dreamerp)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 8:15pm UTC](https://forum.kirupa.com/t/getting-the-height-and-width-of-another-web-page/323261 "2011-06-22T20:15:16Z")

</div>

Hey, I want to use an iframe to load another web site on my page. But, I only want one scroll bar on my page. The issue is that if I disable the scrolling on an iframe, you might miss some of the content on that page. …

---

## [Undifined trace()](https://forum.kirupa.com/t/undifined-trace/323260)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 7:01pm UTC](https://forum.kirupa.com/t/undifined-trace/323260 "2011-06-22T19:01:22Z")

</div>

Could anyone explain why I am getting an output of "undifined" when I trace a e.currentTarget value in the final callFull function of my AS? Here is the AS.... import flash.display.MovieClip; //var outer\_mc:MovieCl…

---

## [URGENT: Javascript not loading the xml](https://forum.kirupa.com/t/urgent-javascript-not-loading-the-xml/323329)

<div class="topic-metadata">

**Author:** [@saskiwi4](https://forum.kirupa.com/u/saskiwi4)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 5:59pm UTC](https://forum.kirupa.com/t/urgent-javascript-not-loading-the-xml/323329 "2011-06-22T17:59:05Z")

</div>

So basically, I am trying to do this interactive thing in javascript for science class where there is an image and a bunch of text on the side regarding different parts of the image and a description on the top. When you…

---

## [Hinge Joint](https://forum.kirupa.com/t/hinge-joint/323258)

<div class="topic-metadata">

**Author:** [@saskiwi4](https://forum.kirupa.com/u/saskiwi4)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 5:55pm UTC](https://forum.kirupa.com/t/hinge-joint/323258 "2011-06-22T17:55:44Z")

</div>

sorry for the beginner question, but how would a go about making a hinge joint. Say I have an arm attached to a body, how do I make the elbow move like a hinge? Thanks in advance.

---

## [Having trouble comprehending OOP principles of accessing objects outside of class](https://forum.kirupa.com/t/having-trouble-comprehending-oop-principles-of-accessing-objects-outside-of-class/323253)

<div class="topic-metadata">

**Author:** [@chilldog](https://forum.kirupa.com/u/chilldog)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 3:42pm UTC](https://forum.kirupa.com/t/having-trouble-comprehending-oop-principles-of-accessing-objects-outside-of-class/323253 "2011-06-22T15:42:34Z")

</div>

I'm having a bit of trouble understanding how to access objects (object instantiated from other classes) from within a class. There's so much spaghetti code to go through, right now I'm porting all timeline code in one p…

---

## [How to modify the code to use the image on stage instead of in library?](https://forum.kirupa.com/t/how-to-modify-the-code-to-use-the-image-on-stage-instead-of-in-library/323251)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 2:42pm UTC](https://forum.kirupa.com/t/how-to-modify-the-code-to-use-the-image-on-stage-instead-of-in-library/323251 "2011-06-22T14:42:30Z")

</div>

Hi, The following code I found on website is for working with the image which is in library. But how to modify it to work with the image on stage. Because I don't want to use it from the library. The second question …

---

## [Help regarding "CacheKiller"](https://forum.kirupa.com/t/help-regarding-cachekiller/323249)

<div class="topic-metadata">

**Author:** [@jatintalwar](https://forum.kirupa.com/u/jatintalwar)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 1:04pm UTC](https://forum.kirupa.com/t/help-regarding-cachekiller/323249 "2011-06-22T13:04:02Z")

</div>

Guys , Help required in respect to this article http://www.kirupa.com/developer/actionscript/tricks/cache.htm Can anyone let me know where in the flash movie this code shud be pasted ? Frame 1 ? or in the movie that l…

---

## [Textbox won't display text!](https://forum.kirupa.com/t/textbox-wont-display-text/323246)

<div class="topic-metadata">

**Author:** [@SticksStones](https://forum.kirupa.com/u/SticksStones)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 10:47am UTC](https://forum.kirupa.com/t/textbox-wont-display-text/323246 "2011-06-22T10:47:56Z")

</div>

I've ran into a weird problem. I have a textbox that will display numbers, but not text! I'm fairly certain it can't be anything to do with the code, so could it be something to do with the properties? var words:Str…

---

## [Please, help with Flash and PHP](https://forum.kirupa.com/t/please-help-with-flash-and-php/323245)

<div class="topic-metadata">

**Author:** [@nexa666](https://forum.kirupa.com/u/nexa666)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 10:11am UTC](https://forum.kirupa.com/t/please-help-with-flash-and-php/323245 "2011-06-22T10:11:01Z")

</div>

Hi, Here I have a problem again. I finished the game, and now needs to connect to a PHP script on the server. It is about connecting the flash file with PHP script with the database. These PHP files just accept th…

---

## [Deactivating button depending on mouse position](https://forum.kirupa.com/t/deactivating-button-depending-on-mouse-position/323244)

<div class="topic-metadata">

**Author:** [@Luxmortem](https://forum.kirupa.com/u/Luxmortem)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 9:58am UTC](https://forum.kirupa.com/t/deactivating-button-depending-on-mouse-position/323244 "2011-06-22T09:58:18Z")

</div>

Hello all, I've been trying for a week to figure out a conflict between different buttons. The source of the conflict being that the buttons once rolled over appear over the others. Finally I've found a possible solu…

---

## [How can I move an image left to right & right to left automatically?](https://forum.kirupa.com/t/how-can-i-move-an-image-left-to-right-right-to-left-automatically/323243)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 9:55am UTC](https://forum.kirupa.com/t/how-can-i-move-an-image-left-to-right-right-to-left-automatically/323243 "2011-06-22T09:55:06Z")

</div>

Hi, I have an Image called "PanoramaImage" (which is very long in width). I want this image to move from right to left & from left to right automatically. I am using flash as3. I am loading this image from the same f…

---

## [Update the size of loaded swf in RichEditableText(Flash Builder)](https://forum.kirupa.com/t/update-the-size-of-loaded-swf-in-richeditabletext-flash-builder/323240)

<div class="topic-metadata">

**Author:** [@HadiMetall](https://forum.kirupa.com/u/HadiMetall)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 7:20am UTC](https://forum.kirupa.com/t/update-the-size-of-loaded-swf-in-richeditabletext-flash-builder/323240 "2011-06-22T07:20:48Z")

</div>

hello guys (in Flash builder 4 ), i was trying to load html in richEditabletext and wanted to load an swf which was going to be resized in a delay(setTimeout or delay for passing parameters and new creation). i tried …

---

## [AMFPHP 1.9 on II7 Error](https://forum.kirupa.com/t/amfphp-1-9-on-ii7-error/323236)

<div class="topic-metadata">

**Author:** [@sheerazkaleem](https://forum.kirupa.com/u/sheerazkaleem)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 6:18am UTC](https://forum.kirupa.com/t/amfphp-1-9-on-ii7-error/323236 "2011-06-22T06:18:21Z")

</div>

When i run amfphp on server 2003 IIS6 its run properly but I have just switch from server 2003 IIS6 to server 2008 IIS7 and now its not running and give me below error, me only run the following "http://localhost/amfp…

---

## [Pause button scripting woes](https://forum.kirupa.com/t/pause-button-scripting-woes/323233)

<div class="topic-metadata">

**Author:** [@Holeycow](https://forum.kirupa.com/u/Holeycow)\
**Replies:** 0\
**Last updated:** [June 22, 2011, 12:41am UTC](https://forum.kirupa.com/t/pause-button-scripting-woes/323233 "2011-06-22T00:41:53Z")

</div>

Hello I'm a designer by trade & having difficulty getting my head around scripting. For most of what I'm doing, I'm managing to get by modifying snippetts that I've found online. However, one spot where I'm now stuck i…

---

## [BNF grammar for AS3 (or ECMAScript would be good too)](https://forum.kirupa.com/t/bnf-grammar-for-as3-or-ecmascript-would-be-good-too/323227)

<div class="topic-metadata">

**Author:** [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 7:05pm UTC](https://forum.kirupa.com/t/bnf-grammar-for-as3-or-ecmascript-would-be-good-too/323227 "2011-06-21T19:05:37Z")

</div>

Hi. I'm looking for a conscious all-in-one-place BNF description of our cherished language \[smile\] I've found some results in Google, but they are incomplete or bizarre \[smile\] I need this because I think I've made alrea…

---

## [Unload SWF error](https://forum.kirupa.com/t/unload-swf-error/323226)

<div class="topic-metadata">

**Author:** [@itscloudy614](https://forum.kirupa.com/u/itscloudy614)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 6:57pm UTC](https://forum.kirupa.com/t/unload-swf-error/323226 "2011-06-21T18:57:16Z")

</div>

I'm writing an Android app and I have a loader that brings in an external swf. I want to create an event so that when the back button is pressed it unloads the swf. But I can's seem to get it to work. Any ideas? p…

---

## [Visible reads false when true and vice-versa](https://forum.kirupa.com/t/visible-reads-false-when-true-and-vice-versa/323225)

<div class="topic-metadata">

**Author:** [@kirikuji](https://forum.kirupa.com/u/kirikuji)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 6:47pm UTC](https://forum.kirupa.com/t/visible-reads-false-when-true-and-vice-versa/323225 "2011-06-21T18:47:54Z")

</div>

\[FONT=Calibri\] Hello, \[/FONT\] \[FONT=Calibri\]In brief... I am trying to use the \_visible property of loaded swf files to trigger the opening animations of these files to prevent the animations from playing before t…

---

## [How can I bring my CurtainRight\_mc to right like I used it for CurtainLeft\_mc?](https://forum.kirupa.com/t/how-can-i-bring-my-curtainright-mc-to-right-like-i-used-it-for-curtainleft-mc/323224)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 6:38pm UTC](https://forum.kirupa.com/t/how-can-i-bring-my-curtainright-mc-to-right-like-i-used-it-for-curtainleft-mc/323224 "2011-06-21T18:38:55Z")

</div>

Hi, I have 2 pieces of curtains. 1) CurtainLeft\_mc 2) CurtainRight\_mc. I want to give it a real curtain style as Left curtain should move to Left from center of the stage and Right curtain should move to Right from cen…

---

## [External Image as New Tab? \[Click to load an Image\]](https://forum.kirupa.com/t/external-image-as-new-tab-click-to-load-an-image/323221)

<div class="topic-metadata">

**Author:** [@Doushte](https://forum.kirupa.com/u/Doushte)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 4:53pm UTC](https://forum.kirupa.com/t/external-image-as-new-tab-click-to-load-an-image/323221 "2011-06-21T16:53:42Z")

</div>

Hello all, I am really new to actionscript 3.0, so barely with me. I would like to set my buttons to load external images within a new tab of the browser as I also have the swf file loaded within a html file. I have t…

---

## [Strange Internet Explorer Problem](https://forum.kirupa.com/t/strange-internet-explorer-problem/323220)

<div class="topic-metadata">

**Author:** [@michaelchandler](https://forum.kirupa.com/u/michaelchandler)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 4:42pm UTC](https://forum.kirupa.com/t/strange-internet-explorer-problem/323220 "2011-06-21T16:42:18Z")

</div>

I've got a strange problem on my hands, and I think I've tried everything I know how to do, and still made only little progress. I have a homepage to a shop. The homepage has a flash slideshow (what I'm assuming is the…

---

## [IDE flash builder 4 help](https://forum.kirupa.com/t/ide-flash-builder-4-help/323219)

<div class="topic-metadata">

**Author:** [@lostinthecame](https://forum.kirupa.com/u/lostinthecame)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 4:25pm UTC](https://forum.kirupa.com/t/ide-flash-builder-4-help/323219 "2011-06-21T16:25:55Z")

</div>

hello I'm learning actionscript 3 and I'm using adobe flash builder 4.5 but the console I get a message saying "no consoles to display at this time".i not know what to do

---

## [Empty variable after switching timeline or MC](https://forum.kirupa.com/t/empty-variable-after-switching-timeline-or-mc/323218)

<div class="topic-metadata">

**Author:** [@flasher333](https://forum.kirupa.com/u/flasher333)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 4:23pm UTC](https://forum.kirupa.com/t/empty-variable-after-switching-timeline-or-mc/323218 "2011-06-21T16:23:25Z")

</div>

Hi, I'm having difficulty accessing a variable value within nested MCs. On Scene 1 in the addFullPanel function, the variable panelNames exists. However, I'd like to use this variable value within the MC FullProjectP…

---

## [Package Cannot be Nested](https://forum.kirupa.com/t/package-cannot-be-nested/323216)

<div class="topic-metadata">

**Author:** [@FlashAj325](https://forum.kirupa.com/u/FlashAj325)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 3:57pm UTC](https://forum.kirupa.com/t/package-cannot-be-nested/323216 "2011-06-21T15:57:40Z")

</div>

\[FONT="Courier New"\]I want to get into Object-Oriented Programming, but when I even try to code even one line: package{ //code here } I get an error: packages cannot be nested. I know what this means, but I ha…

---

## [XML string into pages](https://forum.kirupa.com/t/xml-string-into-pages/323214)

<div class="topic-metadata">

**Author:** [@cliffmusic29](https://forum.kirupa.com/u/cliffmusic29)\
**Replies:** 0\
**Last updated:** [June 21, 2011, 2:28pm UTC](https://forum.kirupa.com/t/xml-string-into-pages/323214 "2011-06-21T14:28:26Z")

</div>

Hi all, Hopefully you guys can give me some advice on my XML issue... I have some flash code and an XML file that creates dynamic buttons that allow you to cycle through the XML file. Im trying to integrate this code…

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

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