# programming

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

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

**Page:** 918

---

## [Center a popup window](https://forum.kirupa.com/t/center-a-popup-window/281993)

<div class="topic-metadata">

**Author:** [@startrooper85](https://forum.kirupa.com/u/startrooper85)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 2:30pm UTC](https://forum.kirupa.com/t/center-a-popup-window/281993 "2009-02-16T14:30:10Z")

</div>

Hi, I'm using this code but the x and y is not working for me. The window goes to top-left of screen automatically. Is possible to center the window to the whole screen? this.onPress = function(){ this.\_parent.a…

---

## [externalInterface inside Document Class](https://forum.kirupa.com/t/externalinterface-inside-document-class/281992)

<div class="topic-metadata">

**Author:** [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 2:27pm UTC](https://forum.kirupa.com/t/externalinterface-inside-document-class/281992 "2009-02-16T14:27:59Z")

</div>

Hello, I'm having trouble getting externalInterface to work in my Document Class. I suppose it is because externalInteface.call is a static function. If I change the function it calls to static, it calls the function…

---

## [as3 menu navigation class](https://forum.kirupa.com/t/as3-menu-navigation-class/281991)

<div class="topic-metadata">

**Author:** [@legalizeit](https://forum.kirupa.com/u/legalizeit)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 2:06pm UTC](https://forum.kirupa.com/t/as3-menu-navigation-class/281991 "2009-02-16T14:06:06Z")

</div>

There is a problem that drives me crazy, but I'm sure there is an easy way to solve this. So... I want to build a flash based website and place there 4 button MovieClip instances. Once the user clicks a button, all the E…

---

## [Prevent custom cursor scaling?](https://forum.kirupa.com/t/prevent-custom-cursor-scaling/281990)

<div class="topic-metadata">

**Author:** [@wmarcello](https://forum.kirupa.com/u/wmarcello)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 2:02pm UTC](https://forum.kirupa.com/t/prevent-custom-cursor-scaling/281990 "2009-02-16T14:02:03Z")

</div>

I've created a piece that uses various custom cursors depending on what "tool" the user is using (like in the Flash or Photoshop UI). I was wondering... is there was a way to disable the scaling of these custom movieCli…

---

## [User Login](https://forum.kirupa.com/t/user-login/281987)

<div class="topic-metadata">

**Author:** [@gasper000](https://forum.kirupa.com/u/gasper000)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 1:53pm UTC](https://forum.kirupa.com/t/user-login/281987 "2009-02-16T13:53:24Z")

</div>

I was searching for an example on how to make a user login page for my flash trivia game. I came across that one on your site called " \[FONT=Verdana\] \[COLOR=#003366\]Login Using Flash MX, PHP, …

---

## [Advice needed on cleaning up some script](https://forum.kirupa.com/t/advice-needed-on-cleaning-up-some-script/281986)

<div class="topic-metadata">

**Author:** [@Sapster](https://forum.kirupa.com/u/Sapster)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 1:47pm UTC](https://forum.kirupa.com/t/advice-needed-on-cleaning-up-some-script/281986 "2009-02-16T13:47:02Z")

</div>

Hi, I'm a complete beginner who ventured into the world of Flash and programming only a couple of days ago and need some advice on how to clean up some as2 script I've put together because I haven't been able to find tut…

---

## [Is there a BIND type method so event can point at parent/class rather than target](https://forum.kirupa.com/t/is-there-a-bind-type-method-so-event-can-point-at-parent-class-rather-than-target/281982)

<div class="topic-metadata">

**Author:** [@biznuge](https://forum.kirupa.com/u/biznuge)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 12:06pm UTC](https://forum.kirupa.com/t/is-there-a-bind-type-method-so-event-can-point-at-parent-class-rather-than-target/281982 "2009-02-16T12:06:09Z")

</div>

hi all, just recently been using a lot of prototype javascript stuff, and was wondering there was anything like the "bind" method, for use in AS3. It's proved quite useful to be able to look both at the event.target as…

---

## [Frustrating problem](https://forum.kirupa.com/t/frustrating-problem/281981)

<div class="topic-metadata">

**Author:** [@nufish](https://forum.kirupa.com/u/nufish)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 12:05pm UTC](https://forum.kirupa.com/t/frustrating-problem/281981 "2009-02-16T12:05:08Z")

</div>

I've been trying to solve this for my self for a couple of hours now, but it's really getting frustrating when I can't find a working solution. I'll try to explain below: I have main.swf, which contains MovieClips as b…

---

## [Help with a simple mouse over and out](https://forum.kirupa.com/t/help-with-a-simple-mouse-over-and-out/281980)

<div class="topic-metadata">

**Author:** [@phurieda](https://forum.kirupa.com/u/phurieda)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 11:04am UTC](https://forum.kirupa.com/t/help-with-a-simple-mouse-over-and-out/281980 "2009-02-16T11:04:47Z")

</div>

I've got this Movie Clip and I wanted it so that when you click it, it moves out; when you click it again it moves back in. The effect I have on the movie clip is when you roll over it, it goes lighter and when you roll …

---

## [How To Load the first movie](https://forum.kirupa.com/t/how-to-load-the-first-movie/281979)

<div class="topic-metadata">

**Author:** [@Beebs](https://forum.kirupa.com/u/Beebs)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 11:03am UTC](https://forum.kirupa.com/t/how-to-load-the-first-movie/281979 "2009-02-16T11:03:37Z")

</div>

I am very new with AS3, so please bear with me. To load external movie, My button event listener has function as follows. All are well executed no error whatsoever. My question : How to load the first movie ( the fir…

---

## [Make button link to next scene](https://forum.kirupa.com/t/make-button-link-to-next-scene/281975)

<div class="topic-metadata">

**Author:** [@Anna1981](https://forum.kirupa.com/u/Anna1981)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 10:16am UTC](https://forum.kirupa.com/t/make-button-link-to-next-scene/281975 "2009-02-16T10:16:51Z")

</div>

Hey, I'm trying to link a button to the next scene. But the problem is that I can't give an action to the button in the scene, because in the action panel appears: 'Current selection cannot have actions applied to it.' …

---

## [Native stage width](https://forum.kirupa.com/t/native-stage-width/281974)

<div class="topic-metadata">

**Author:** [@Tim\_John](https://forum.kirupa.com/u/Tim_John)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 10:15am UTC](https://forum.kirupa.com/t/native-stage-width/281974 "2009-02-16T10:15:34Z")

</div>

Hi, I've had a look for this answer elsewhere, but it never seems to actually get answered for sure. How do I get the actual stage width or height as specified in the flash movie itself. I want to keep the stage scal…

---

## [as3 HTML text issue - bewildering](https://forum.kirupa.com/t/as3-html-text-issue-bewildering/281969)

<div class="topic-metadata">

**Author:** [@partimer](https://forum.kirupa.com/u/partimer)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 9:31am UTC](https://forum.kirupa.com/t/as3-html-text-issue-bewildering/281969 "2009-02-16T09:31:24Z")

</div>

Hi all, I've got this tiny bit of code that adds html text to a text box on the click of a button. Another button clears the textField and another adds different html text. Trouble is that the first text includes list …

---

## [Bind ASP Results to Flex Combo Box](https://forum.kirupa.com/t/bind-asp-results-to-flex-combo-box/281967)

<div class="topic-metadata">

**Author:** [@sethu](https://forum.kirupa.com/u/sethu)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 9:17am UTC](https://forum.kirupa.com/t/bind-asp-results-to-flex-combo-box/281967 "2009-02-16T09:17:18Z")

</div>

I'm new Flex Web development. How do i bind ASP Results to Combo box? i've used HTTP service object and result format is "e4x"

---

## [Very weird SharedObject behavior on customized domains!](https://forum.kirupa.com/t/very-weird-sharedobject-behavior-on-customized-domains/281963)

<div class="topic-metadata">

**Author:** [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:43am UTC](https://forum.kirupa.com/t/very-weird-sharedobject-behavior-on-customized-domains/281963 "2009-02-16T07:43:50Z")

</div>

I met some very strange issues when debugging a project with SharedObject features. Everything works fine in Flash CS3 IDE but since I use a customized domain (by changing HOST file) for my local projects, I try to deb…

---

## [Problem with uploading .jpeg files](https://forum.kirupa.com/t/problem-with-uploading-jpeg-files/281961)

<div class="topic-metadata">

**Author:** [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:08am UTC](https://forum.kirupa.com/t/problem-with-uploading-jpeg-files/281961 "2009-02-16T07:08:41Z")

</div>

Hi all, I am new to flash. How can we get .jpeg/.gif/.swf files present in server onto the stage dynamically? Reply me as soon as possible.... It's urgent..... Thanks in advance... Srihari.Ch

---

## [Calling Fileference.browse from javascript](https://forum.kirupa.com/t/calling-fileference-browse-from-javascript/281960)

<div class="topic-metadata">

**Author:** [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 6:58am UTC](https://forum.kirupa.com/t/calling-fileference-browse-from-javascript/281960 "2009-02-16T06:58:17Z")

</div>

hi i am trying to trigger Filereference browse method from javascript. but am failing cause flash gives error saying you cant do this sort of thing without user interaction. then i tried calling a button's dispatch Ev…

---

## [Using Tween class with a moving target](https://forum.kirupa.com/t/using-tween-class-with-a-moving-target/281954)

<div class="topic-metadata">

**Author:** [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 2:58am UTC](https://forum.kirupa.com/t/using-tween-class-with-a-moving-target/281954 "2009-02-16T02:58:39Z")

</div>

Hello! Does anyone know whether it is possible to create a Tween object where the finish property is based on a changing variable? \_tween = new Tween(object, "x", Regular.easeInOut, object.x, movingTarget.x, 60, fals…

---

## [Here's a Puzzle I wish to solve with actionscript](https://forum.kirupa.com/t/heres-a-puzzle-i-wish-to-solve-with-actionscript/281947)

<div class="topic-metadata">

**Author:** [@kikon](https://forum.kirupa.com/u/kikon)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 12:02am UTC](https://forum.kirupa.com/t/heres-a-puzzle-i-wish-to-solve-with-actionscript/281947 "2009-02-16T00:02:10Z")

</div>

I posted this in "Actionscript 1.0-2.0" but I feel it's more appropriate here: Imagine six squares touching in two rows (3x2) layout. Now let's say I call the first square "0", the second "1", third "2" and so on going…

---

## [addChild from an external .as file](https://forum.kirupa.com/t/addchild-from-an-external-as-file/281946)

<div class="topic-metadata">

**Author:** [@kevin416](https://forum.kirupa.com/u/kevin416)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 11:54pm UTC](https://forum.kirupa.com/t/addchild-from-an-external-as-file/281946 "2009-02-15T23:54:15Z")

</div>

Hello Everyone, I was trying to add a TextField to the stage from an external class. I've made a small example of the part that isn't working for me. The basic idea of the external class: package { import flash.dis…

---

## [Instant Messenger API](https://forum.kirupa.com/t/instant-messenger-api/281941)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 7:54pm UTC](https://forum.kirupa.com/t/instant-messenger-api/281941 "2009-02-15T19:54:53Z")

</div>

How are www.gmail.com, www.meebo.com, and www.iloveim.com connecting to AIM, MSN, and ICQ? Is there a public API that I don't know of or is this a result of a private agreement between the website and the IM company?

---

## [Dynamically placing new buttons](https://forum.kirupa.com/t/dynamically-placing-new-buttons/281940)

<div class="topic-metadata">

**Author:** [@Elbudster](https://forum.kirupa.com/u/Elbudster)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 7:52pm UTC](https://forum.kirupa.com/t/dynamically-placing-new-buttons/281940 "2009-02-15T19:52:32Z")

</div>

Hello, It's been a few years since I've last used ActionScript, so I'm a bit rusty \[stuck\_out\_tongue\] Anyways, I have 16 buttons in my library with linkage names btn0-btn15. I can successfully add them onto the stage…

---

## [URL via XML on button in child swf](https://forum.kirupa.com/t/url-via-xml-on-button-in-child-swf/281938)

<div class="topic-metadata">

**Author:** [@rawnewdlz](https://forum.kirupa.com/u/rawnewdlz)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 6:40pm UTC](https://forum.kirupa.com/t/url-via-xml-on-button-in-child-swf/281938 "2009-02-15T18:40:46Z")

</div>

Hi, I need advice on how to connect a URL via XML to a button in a swf that's brought into a main swf. Any ideas would be greatly appreciated! \[smile\]

---

## [LOGIN if/else STATEMENTS](https://forum.kirupa.com/t/login-if-else-statements/281935)

<div class="topic-metadata">

**Author:** [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 5:01pm UTC](https://forum.kirupa.com/t/login-if-else-statements/281935 "2009-02-15T17:01:00Z")

</div>

I am working on a login system that I would like to allow: admin users to only see the admin header standard users to only see the standard header Anyways, I would like to know how to make an if/else statement that …

---

## [Rotation using left, right, up and down](https://forum.kirupa.com/t/rotation-using-left-right-up-and-down/281934)

<div class="topic-metadata">

**Author:** [@TZP](https://forum.kirupa.com/u/TZP)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 4:21pm UTC](https://forum.kirupa.com/t/rotation-using-left-right-up-and-down/281934 "2009-02-15T16:21:42Z")

</div>

Good day to you. First of all: Forgive me for my englisch, because I´m from germany. I hope no one blames me for that. ^^ Anyway I got a question and maybe one of you guys can help me. The problem: I want to rotate and m…

---

## [Children Scale with Parent?](https://forum.kirupa.com/t/children-scale-with-parent/281932)

<div class="topic-metadata">

**Author:** [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 4:16pm UTC](https://forum.kirupa.com/t/children-scale-with-parent/281932 "2009-02-15T16:16:18Z")

</div>

I have a container object that i add children to. I want to change the height & width of the container without the children scaling. In this case I draw a rectangle in flash which I'll use as the container object then …

---

## [How to sort this Multi-D array?](https://forum.kirupa.com/t/how-to-sort-this-multi-d-array/281930)

<div class="topic-metadata">

**Author:** [@nikomax](https://forum.kirupa.com/u/nikomax)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 3:25pm UTC](https://forum.kirupa.com/t/how-to-sort-this-multi-d-array/281930 "2009-02-15T15:25:45Z")

</div>

EDIT:: Just realised I could of asked this a lot shorter =/ How / Can I use array.push() to make an associative array that keeps its order the way I added the item? Sorry if this is confusing!! ORIGINAL:: So I have t…

---

## [Alternative to FileReference upload function](https://forum.kirupa.com/t/alternative-to-filereference-upload-function/281929)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 2:48pm UTC](https://forum.kirupa.com/t/alternative-to-filereference-upload-function/281929 "2009-02-15T14:48:03Z")

</div>

For 2 weeks now I've been trying to debug what's wrong with my application, in failing to upload a file. I traced using firebug, and flash doesnt even TRY to access the aspx script which uploads. Im going nuts. So Im t…

---

## [Insert link in movieclip](https://forum.kirupa.com/t/insert-link-in-movieclip/281928)

<div class="topic-metadata">

**Author:** [@zeux](https://forum.kirupa.com/u/zeux)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 2:44pm UTC](https://forum.kirupa.com/t/insert-link-in-movieclip/281928 "2009-02-15T14:44:29Z")

</div>

Hi all I want to parse an xml to read some link to images and the link that should point to. Im using actionscript 2 and I have parsed correctly the xml and i have put the correct image in the stage as a new moviecli…

---

## [HELP! Textfield resizing](https://forum.kirupa.com/t/help-textfield-resizing/281923)

<div class="topic-metadata">

**Author:** [@nico](https://forum.kirupa.com/u/nico)\
**Replies:** 0\
**Last updated:** [February 15, 2009, 11:29am UTC](https://forum.kirupa.com/t/help-textfield-resizing/281923 "2009-02-15T11:29:56Z")

</div>

Hello Guys, I have a simple problem which i cant seem to solve. I have a dynamic tf and it has a background. If the tf's height is resized, the background will also resize it self. tf.height = bg.height; Im arran…

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

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