# programming

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

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

**Page:** 844

---

## [Adding button actions in loop](https://forum.kirupa.com/t/adding-button-actions-in-loop/286650)

<div class="topic-metadata">

**Author:** [@Arkade](https://forum.kirupa.com/u/Arkade)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 11:57am UTC](https://forum.kirupa.com/t/adding-button-actions-in-loop/286650 "2009-04-18T11:57:28Z")

</div>

Hey, I'm trying to add button actions in a loop. In the scene i have one empty movie clip. The loop code in this MC clip looks like this for (i=0; i\<\_root.myImagesTotal; i++) { imageURL = \_root.myImages\*.attribut…

---

## [Need flash code](https://forum.kirupa.com/t/need-flash-code/286648)

<div class="topic-metadata">

**Author:** [@richardramsey](https://forum.kirupa.com/u/richardramsey)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 11:08am UTC](https://forum.kirupa.com/t/need-flash-code/286648 "2009-04-18T11:08:40Z")

</div>

I need some changes in my site theamazonacaiberry.com. I would like to see a flash effect on top of the page. I have flash video but don’t know how to add that in heard part. Can you provide the code? Thanks, Richa…

---

## [Can't get external gallery to load into mc](https://forum.kirupa.com/t/cant-get-external-gallery-to-load-into-mc/286646)

<div class="topic-metadata">

**Author:** [@evil\_genius](https://forum.kirupa.com/u/evil_genius)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 10:05am UTC](https://forum.kirupa.com/t/cant-get-external-gallery-to-load-into-mc/286646 "2009-04-18T10:05:31Z")

</div>

I bought a 3D gallery thing for a site i'm doing and it wont load into a movie clip. i've tried moving everything into the same directory, although i have another gallery on a different site that worked just fine in it…

---

## [Autorefresh external dynamic text?](https://forum.kirupa.com/t/autorefresh-external-dynamic-text/286645)

<div class="topic-metadata">

**Author:** [@GuitarLord](https://forum.kirupa.com/u/GuitarLord)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 9:09am UTC](https://forum.kirupa.com/t/autorefresh-external-dynamic-text/286645 "2009-04-18T09:09:02Z")

</div>

Hi, I created a flash that's loading dynamic text from an external txt file. It's ON AIR flash that you can see on top right on www.topfm.rs Now the thing is that I WANT THIS TXT CONTENT TO REFRESH AUTOMATICALLY... bec…

---

## [Mouse Angle](https://forum.kirupa.com/t/mouse-angle/286643)

<div class="topic-metadata">

**Author:** [@nav\_sonu](https://forum.kirupa.com/u/nav_sonu)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 6:39am UTC](https://forum.kirupa.com/t/mouse-angle/286643 "2009-04-18T06:39:59Z")

</div>

Hi, Wanna learn how to get angle of mouse its very simple. use this Script (copy and past in your file). A sample file which runs only on CS4 is attached. //Start........................................................…

---

## [SWFobject - Getting site to fill window?](https://forum.kirupa.com/t/swfobject-getting-site-to-fill-window/286642)

<div class="topic-metadata">

**Author:** [@cbrf23](https://forum.kirupa.com/u/cbrf23)\
**Replies:** 0\
**Last updated:** [April 18, 2009, 5:11am UTC](https://forum.kirupa.com/t/swfobject-getting-site-to-fill-window/286642 "2009-04-18T05:11:46Z")

</div>

Hello everyone. I'm using swfobject for my first time, and I'm having a little trouble getting the site to work the way I want it to.... I want the movie to fill the browser window, and resize itself with the window. I…

---

## [Can't unloadAndStop AS3 SWF after it is on stage](https://forum.kirupa.com/t/cant-unloadandstop-as3-swf-after-it-is-on-stage/286627)

<div class="topic-metadata">

**Author:** [@ShooterMG](https://forum.kirupa.com/u/ShooterMG)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 8:50pm UTC](https://forum.kirupa.com/t/cant-unloadandstop-as3-swf-after-it-is-on-stage/286627 "2009-04-17T20:50:59Z")

</div>

Help. Some of my SWFs refuse to stop playing and I can’t figure out why. Quick background: My SWF player brings a series of AS3 SWFs onto the stage and later unloads them using the UnloadAndStop function. While some of m…

---

## [Is there a commerical AS3 (2D) game engine?](https://forum.kirupa.com/t/is-there-a-commerical-as3-2d-game-engine/286626)

<div class="topic-metadata">

**Author:** [@Extrakun](https://forum.kirupa.com/u/Extrakun)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 8:26pm UTC](https://forum.kirupa.com/t/is-there-a-commerical-as3-2d-game-engine/286626 "2009-04-17T20:26:04Z")

</div>

Hi all, I am just wondering if there is any commerical game-engine middle-ware or library for ActionScript 3 (I am big fan of "don't reinvent the box unless necessary"). I have checked out some Open Source ones such as…

---

## [Prototype, Dojo, jQuery...which javascript library?](https://forum.kirupa.com/t/prototype-dojo-jquery-which-javascript-library/286624)

<div class="topic-metadata">

**Author:** [@Extrakun](https://forum.kirupa.com/u/Extrakun)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 8:05pm UTC](https://forum.kirupa.com/t/prototype-dojo-jquery-which-javascript-library/286624 "2009-04-17T20:05:09Z")

</div>

Hi all, I have been reading up on AJAX/Javascript (basically one of the SitePoint's books) and decide that because of how different browser implements DOM, XMLHTTPRequest and WC3 event models, I will use a Javascript l…

---

## [5 file uploads = 5 requests?](https://forum.kirupa.com/t/5-file-uploads-5-requests/286623)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 7:37pm UTC](https://forum.kirupa.com/t/5-file-uploads-5-requests/286623 "2009-04-17T19:37:04Z")

</div>

I am playing around with multiple image uploads. I'm using this code from adobe: fileRefList.addEventListener(Event.SELECT, selectHandler); fileRefList.browse(); function selectHandler(event:Event):void{ …

---

## [IE Changing relative-positioned divs to absolute](https://forum.kirupa.com/t/ie-changing-relative-positioned-divs-to-absolute/286621)

<div class="topic-metadata">

**Author:** [@shane\_c](https://forum.kirupa.com/u/shane_c)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 7:33pm UTC](https://forum.kirupa.com/t/ie-changing-relative-positioned-divs-to-absolute/286621 "2009-04-17T19:33:40Z")

</div>

I'm having a weird issue with a site I'm working on... My menu is a relatively positioned div, with a set height, width, display, position, and all that, so the IE "hasLayout" issue shouldn't be a problem. Within that me…

---

## [htmlText anchor tag killing me](https://forum.kirupa.com/t/htmltext-anchor-tag-killing-me/286620)

<div class="topic-metadata">

**Author:** [@akrantz](https://forum.kirupa.com/u/akrantz)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 7:15pm UTC](https://forum.kirupa.com/t/htmltext-anchor-tag-killing-me/286620 "2009-04-17T19:15:41Z")

</div>

hey guys, been awhile since I have posted for help but this one is killing me. for some reason the href tag in my AS3 code will not execute. It works fine when I publish the .swf but when I embed the swf into an html pag…

---

## [Better to thumbnail client side or server side?](https://forum.kirupa.com/t/better-to-thumbnail-client-side-or-server-side/286619)

<div class="topic-metadata">

**Author:** [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 7:09pm UTC](https://forum.kirupa.com/t/better-to-thumbnail-client-side-or-server-side/286619 "2009-04-17T19:09:05Z")

</div>

I am making an app where people upload a bunch of images and it thumbnails them and saves them to the server. Is it better to create thumbnails from the uploaded images, or to upload them to the server then re-download t…

---

## [Passing Variables -- HELP!](https://forum.kirupa.com/t/passing-variables-help/286618)

<div class="topic-metadata">

**Author:** [@atomstore](https://forum.kirupa.com/u/atomstore)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 7:07pm UTC](https://forum.kirupa.com/t/passing-variables-help/286618 "2009-04-17T19:07:08Z")

</div>

Hello! I currently have a login form in flash that needs to pass variables to a PHP script. That part works fine. The problem I am having is that when Flash passes the variables to PHP, it also passes the style of th…

---

## [Performance Issue](https://forum.kirupa.com/t/performance-issue/286617)

<div class="topic-metadata">

**Author:** [@Cpt\_Awesome](https://forum.kirupa.com/u/Cpt_Awesome)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:57pm UTC](https://forum.kirupa.com/t/performance-issue/286617 "2009-04-17T18:57:00Z")

</div>

I´m having trouble with a flash application I'm working on. You´re this dude walking around in a bar. . \[smile\] Problem is that atm I have the dude standing still and move the background instead and seeing that the back…

---

## [AIR kicking my butt!](https://forum.kirupa.com/t/air-kicking-my-butt/286616)

<div class="topic-metadata">

**Author:** [@ORNj](https://forum.kirupa.com/u/ORNj)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:43pm UTC](https://forum.kirupa.com/t/air-kicking-my-butt/286616 "2009-04-17T18:43:43Z")

</div>

Ok so I have a site prototype we are trying to show to the client and I'm we are trying to package it as an AIR app to make it easier for them to run it locally. I have video players on some pages that are refusing to fi…

---

## [onRollOut not alway working?](https://forum.kirupa.com/t/onrollout-not-alway-working/286614)

<div class="topic-metadata">

**Author:** [@artriste](https://forum.kirupa.com/u/artriste)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:28pm UTC](https://forum.kirupa.com/t/onrollout-not-alway-working/286614 "2009-04-17T18:28:03Z")

</div>

I will keep the question simple for now and provide example if needed. I just have a simple button set up to move a \[COLOR=DarkOrange\]BOX\[/COLOR\] on rollOver using tweens and move it back into position onRollOut. \*\*P…

---

## [Math.random() for certain numbers](https://forum.kirupa.com/t/math-random-for-certain-numbers/286613)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:11pm UTC](https://forum.kirupa.com/t/math-random-for-certain-numbers/286613 "2009-04-17T18:11:55Z")

</div>

I have a function that creates a Movieclip every two seconds. I want each Movieclip to go to a random frame. But if there is already a Movieclip on the stage that is currently on frame 4 (for example), then no other Movi…

---

## [removeChild() Question](https://forum.kirupa.com/t/removechild-question/286611)

<div class="topic-metadata">

**Author:** [@madhat](https://forum.kirupa.com/u/madhat)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:01pm UTC](https://forum.kirupa.com/t/removechild-question/286611 "2009-04-17T18:01:43Z")

</div>

Hi Everyone, I'm an AS2 programmer making the jump to AS3. I'm having trouble grasping the display set. Here's what I'm trying to do: \[LIST\] \[\*\]I have a button on the stage. When you press it, it duplicates an object f…

---

## [How to tell what packages to import?](https://forum.kirupa.com/t/how-to-tell-what-packages-to-import/286610)

<div class="topic-metadata">

**Author:** [@fhickler](https://forum.kirupa.com/u/fhickler)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 6:01pm UTC](https://forum.kirupa.com/t/how-to-tell-what-packages-to-import/286610 "2009-04-17T18:01:16Z")

</div>

This might be a dumb question, but I am making the move from intermedite timeline scripting to more advanced object oriented document class scripting. So this is the question: how does one know what packages need to b…

---

## [AS3 - how to add event listener to multiple dynamically created objects](https://forum.kirupa.com/t/as3-how-to-add-event-listener-to-multiple-dynamically-created-objects/286607)

<div class="topic-metadata">

**Author:** [@EmmsieLu](https://forum.kirupa.com/u/EmmsieLu)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 5:14pm UTC](https://forum.kirupa.com/t/as3-how-to-add-event-listener-to-multiple-dynamically-created-objects/286607 "2009-04-17T17:14:52Z")

</div>

Hi there, I know this is a real newbie question, but I've been going over it for days, so before I tear all my hair out, I thought I'd see if anyone could give me some advice. So I have an object, generated on each c…

---

## [3d Carousel with MC background?](https://forum.kirupa.com/t/3d-carousel-with-mc-background/286606)

<div class="topic-metadata">

**Author:** [@screamster](https://forum.kirupa.com/u/screamster)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 4:51pm UTC](https://forum.kirupa.com/t/3d-carousel-with-mc-background/286606 "2009-04-17T16:51:04Z")

</div>

Howdy, I am a newb to CS4 AS3 and am working on a 3d carousel with a background MC. I am having a tough time trying to get setChildIndex to work. I want the MC to be a background image behind the 3d carousel, but wh…

---

## [Problems with unloading swf](https://forum.kirupa.com/t/problems-with-unloading-swf/286605)

<div class="topic-metadata">

**Author:** [@soundmatic](https://forum.kirupa.com/u/soundmatic)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 4:10pm UTC](https://forum.kirupa.com/t/problems-with-unloading-swf/286605 "2009-04-17T16:10:07Z")

</div>

I am loading an external swf into the main stage. The close button is within the new swf. What I need is when user clicks the close button the animation in the loaded swf plays until the end of the timeline than unloads …

---

## [Getting the user's login name](https://forum.kirupa.com/t/getting-the-users-login-name/286599)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 3:11pm UTC](https://forum.kirupa.com/t/getting-the-users-login-name/286599 "2009-04-17T15:11:43Z")

</div>

Question - I can't seem to find this anywhere... is it possible to get the user's login name with as3? I'm referring to the name they log into the OS with... this is possible in just about every other language... Any …

---

## [Drawing lines in flash](https://forum.kirupa.com/t/drawing-lines-in-flash/286597)

<div class="topic-metadata">

**Author:** [@sebby64](https://forum.kirupa.com/u/sebby64)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 2:41pm UTC](https://forum.kirupa.com/t/drawing-lines-in-flash/286597 "2009-04-17T14:41:01Z")

</div>

Hello everyone, I'm trying to design an application where you can draw lines. This is my code. onMouseDown = function (){ original\_x = \_root.\_xmouse original\_y = \_root.\_ymouse value\_obtained = true } on…

---

## [My array is empty](https://forum.kirupa.com/t/my-array-is-empty/286596)

<div class="topic-metadata">

**Author:** [@vanderwaal](https://forum.kirupa.com/u/vanderwaal)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 2:38pm UTC](https://forum.kirupa.com/t/my-array-is-empty/286596 "2009-04-17T14:38:40Z")

</div>

i know it has to be something simple but i've been staring at it too long now to see what it is. can someone tell me why my array is empty when i trace it at the end of the script? it's really simple code. should work…

---

## [Can't wrap my head around 3.0 "\_root"](https://forum.kirupa.com/t/cant-wrap-my-head-around-3-0--root/286593)

<div class="topic-metadata">

**Author:** [@CkretAjint](https://forum.kirupa.com/u/CkretAjint)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 1:28pm UTC](https://forum.kirupa.com/t/cant-wrap-my-head-around-3-0--root/286593 "2009-04-17T13:28:07Z")

</div>

Originally this file I have was built using AS 2.0. The boss wants it converted over to AS 3.0.For some reason i am having a difficult time getting my head around the fact there there is no longer a root/parent AND what …

---

## [Adding hyperlinks to customized Pop-up](https://forum.kirupa.com/t/adding-hyperlinks-to-customized-pop-up/286590)

<div class="topic-metadata">

**Author:** [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 12:58pm UTC](https://forum.kirupa.com/t/adding-hyperlinks-to-customized-pop-up/286590 "2009-04-17T12:58:17Z")

</div>

Hi all, I need to add as many number of hyperlinks to a custom "pop-up". The properties for customised Pop-up are as follows: A pop-up is a retangle shaped figure with BackgroundColour = #FFFFCC, Width=1…

---

## [Dragging Issue](https://forum.kirupa.com/t/dragging-issue/286589)

<div class="topic-metadata">

**Author:** [@DJR](https://forum.kirupa.com/u/DJR)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 12:33pm UTC](https://forum.kirupa.com/t/dragging-issue/286589 "2009-04-17T12:33:29Z")

</div>

This seems to be a problematic day. I have built an example file to demonstrate the following problem: I have externally loaded an image onto a button (to act as an image button). I have made the button draggable and w…

---

## [Flash cs4 and xml item](https://forum.kirupa.com/t/flash-cs4-and-xml-item/286588)

<div class="topic-metadata">

**Author:** [@wassim](https://forum.kirupa.com/u/wassim)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 12:14pm UTC](https://forum.kirupa.com/t/flash-cs4-and-xml-item/286588 "2009-04-17T12:14:42Z")

</div>

hello, i'm using adobe flash cs4 to make my web site template, and also i'm using an xml file to add the menu and the item, it works ok... but when i'm trying to write an arabic text in the xml file, the specific item …

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

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