# programming

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

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

**Page:** 540

---

## [Switch statement for AS3 - Flash CS3](https://forum.kirupa.com/t/switch-statement-for-as3-flash-cs3/306268)

<div class="topic-metadata">

**Author:** [@Sith717](https://forum.kirupa.com/u/Sith717)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:31pm UTC](https://forum.kirupa.com/t/switch-statement-for-as3-flash-cs3/306268 "2010-03-11T22:31:54Z")

</div>

Hey guys, I currently have a code of a switch statement for as1 - as2. This is it: switch (int(Math.random() \* 20)) { case 0: { hint = "The total amount of confusion in this world remains constant. I…

---

## [Control multiple video files simultaneously](https://forum.kirupa.com/t/control-multiple-video-files-simultaneously/306267)

<div class="topic-metadata">

**Author:** [@Ransom1337](https://forum.kirupa.com/u/Ransom1337)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:06pm UTC](https://forum.kirupa.com/t/control-multiple-video-files-simultaneously/306267 "2010-03-11T22:06:57Z")

</div>

Hello, I have five videos playing at the same time in a .swf. They are each .flv files of the exact same length, I'm keeping them external rather than embedding the files within the Flash, and it's imperative that t…

---

## [How to Control the dimensions of a pop-up window in AS3 and Java](https://forum.kirupa.com/t/how-to-control-the-dimensions-of-a-pop-up-window-in-as3-and-java/306266)

<div class="topic-metadata">

**Author:** [@ArdorEdor](https://forum.kirupa.com/u/ArdorEdor)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:00pm UTC](https://forum.kirupa.com/t/how-to-control-the-dimensions-of-a-pop-up-window-in-as3-and-java/306266 "2010-03-11T22:00:04Z")

</div>

Hello, How do I control the size dimensions of a pop window called from a Flash file.. I found some code to open the the window (it works great in all browzers), but I'm not sure how to control the size dimensions of t…

---

## [Is there something in between Event.COMPLETE and Event.INIT](https://forum.kirupa.com/t/is-there-something-in-between-event-complete-and-event-init/306265)

<div class="topic-metadata">

**Author:** [@ccbayer](https://forum.kirupa.com/u/ccbayer)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 9:56pm UTC](https://forum.kirupa.com/t/is-there-something-in-between-event-complete-and-event-init/306265 "2010-03-11T21:56:06Z")

</div>

So, i'm loading external swfs into a master controller. I am showing a preloader animation which is triggered by the ProgressEvent. i'm also tracing when Event.INIT gets triggered. i'm only putting the loaded swf on…

---

## [Quick question on JQuery and functions](https://forum.kirupa.com/t/quick-question-on-jquery-and-functions/306264)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 9:48pm UTC](https://forum.kirupa.com/t/quick-question-on-jquery-and-functions/306264 "2010-03-11T21:48:15Z")

</div>

I'm just getting started with learning JQuery, and in the video tutorial I'm following, the writer uses conventions like this: $(function() { //blablabla }); I find that to be a little too many brackets, especiall…

---

## [Load URL then go to frame](https://forum.kirupa.com/t/load-url-then-go-to-frame/306261)

<div class="topic-metadata">

**Author:** [@mikalh78](https://forum.kirupa.com/u/mikalh78)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 9:01pm UTC](https://forum.kirupa.com/t/load-url-then-go-to-frame/306261 "2010-03-11T21:01:44Z")

</div>

So I have this code. stop (); import flash.events.MouseEvent; next\_btn.addEventListener(MouseEvent.CLICK, powerClick3); function powerClick3(Event:MouseEvent):void { var ld:Loader = new Loader() ld.load(new URLReques…

---

## [Button acting funny](https://forum.kirupa.com/t/button-acting-funny/306257)

<div class="topic-metadata">

**Author:** [@ciulla86](https://forum.kirupa.com/u/ciulla86)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 8:10pm UTC](https://forum.kirupa.com/t/button-acting-funny/306257 "2010-03-11T20:10:25Z")

</div>

Hey guys, You can probably guess my Flash level of noobary by the question im about to ask and the problems im having. So ive finally figured out how to play a movie clip on roll over, stop it at the half way point, a…

---

## [Adition of two strings... How? (cast)?](https://forum.kirupa.com/t/adition-of-two-strings-how-cast/306256)

<div class="topic-metadata">

**Author:** [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 8:08pm UTC](https://forum.kirupa.com/t/adition-of-two-strings-how-cast/306256 "2010-03-11T20:08:29Z")

</div>

Here we go... i know, that i have to CAST them... but how? The idea is to add (adition) two strings... a:String = "20"; b:String = "10"; c:String = a+b; I get c=2010 and not 30 as i expected... i guess i have to cast, bu…

---

## [Send to back / Bring to Front](https://forum.kirupa.com/t/send-to-back-bring-to-front/306254)

<div class="topic-metadata">

**Author:** [@miketh2005](https://forum.kirupa.com/u/miketh2005)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 7:49pm UTC](https://forum.kirupa.com/t/send-to-back-bring-to-front/306254 "2010-03-11T19:49:11Z")

</div>

I have a similar problem as stated here: http://www.kirupa.com/forum/showthread.php?t=290886 But, with CS3. Thanks alot! EDIT: Nevermind, answered on yahoo answers quicker than here: Command/Control Shift Up Arr…

---

## [Help with a grid/array of objects](https://forum.kirupa.com/t/help-with-a-grid-array-of-objects/306253)

<div class="topic-metadata">

**Author:** [@armyvisual](https://forum.kirupa.com/u/armyvisual)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 7:41pm UTC](https://forum.kirupa.com/t/help-with-a-grid-array-of-objects/306253 "2010-03-11T19:41:59Z")

</div>

Hey Guys, I'm trying to create a simple game similar to a bunch of games I've seen floating around. Here is an example: http://bowlerhatgames.com/games/gridshock/ The part I'm having trouble with, is manag…

---

## [Problem extending a ComboBox in Flash](https://forum.kirupa.com/t/problem-extending-a-combobox-in-flash/306250)

<div class="topic-metadata">

**Author:** [@oneiros](https://forum.kirupa.com/u/oneiros)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 6:50pm UTC](https://forum.kirupa.com/t/problem-extending-a-combobox-in-flash/306250 "2010-03-11T18:50:54Z")

</div>

Hi all, I'm currently working on a project, and in it I'm extending a ComboBox like so: package test.dropdowns { import fl.controls.ComboBox; public class Propertytypes extends ComboBox { …

---

## [Flash, PHP & sandbox security](https://forum.kirupa.com/t/flash-php-sandbox-security/306249)

<div class="topic-metadata">

**Author:** [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 6:47pm UTC](https://forum.kirupa.com/t/flash-php-sandbox-security/306249 "2010-03-11T18:47:56Z")

</div>

Does anyknow if the same type of issues you run into with images or xml files across domains, are an issue when the SWF and a PHP file are on different domains? I thought I would ask before developing, just to test, an…

---

## [Help Loading series of images using XML](https://forum.kirupa.com/t/help-loading-series-of-images-using-xml/306244)

<div class="topic-metadata">

**Author:** [@andrewF](https://forum.kirupa.com/u/andrewF)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 4:50pm UTC](https://forum.kirupa.com/t/help-loading-series-of-images-using-xml/306244 "2010-03-11T16:50:10Z")

</div>

Hi, I am trying to load a series of images into a MC using XML to provide URLs and other image data. The ultimate goal is to place each image (as a sprite?) in it's correct position in a MC, assign it an instance name…

---

## [1st FLV Stop then 2nd FLV Go Question](https://forum.kirupa.com/t/1st-flv-stop-then-2nd-flv-go-question/306242)

<div class="topic-metadata">

**Author:** [@Unregistered00](https://forum.kirupa.com/u/Unregistered00)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 4:01pm UTC](https://forum.kirupa.com/t/1st-flv-stop-then-2nd-flv-go-question/306242 "2010-03-11T16:01:23Z")

</div>

I have an flv video that is an intro of sorts that I want to stop on its last frame. On this last frame, I want the 2nd flv video (the menu) to begin. How can I make this work? Yes. I don't have any code yet except for…

---

## [Keeping the session alive in Flash AS3 using keys](https://forum.kirupa.com/t/keeping-the-session-alive-in-flash-as3-using-keys/306240)

<div class="topic-metadata">

**Author:** [@dubheart](https://forum.kirupa.com/u/dubheart)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:29pm UTC](https://forum.kirupa.com/t/keeping-the-session-alive-in-flash-as3-using-keys/306240 "2010-03-11T15:29:31Z")

</div>

\[COLOR=#1f497d\]Hi\[/COLOR\] \[COLOR=#1f497d\]\[/COLOR\] \[COLOR=#1f497d\]Here's the deal, working with a AS3 flash movie button linking to an html form\[/COLOR\] \[COLOR=#1f497d\]\[/COLOR\]\[COLOR=#1f497d\]\[/COLOR\] \[COLOR=#1f497d\]I ha…

---

## [Most popular technology?](https://forum.kirupa.com/t/most-popular-technology/306239)

<div class="topic-metadata">

**Author:** [@mark\_smith](https://forum.kirupa.com/u/mark_smith)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:22pm UTC](https://forum.kirupa.com/t/most-popular-technology/306239 "2010-03-11T15:22:24Z")

</div>

Hey folks, I will appreciate if you have used HTML 5, Flash or Silverlight. What can we do in a certain technology that we cannot do in the other. What do you think, which of the three will be popular a year or two out…

---

## [Use HTML5 or otherwise](https://forum.kirupa.com/t/use-html5-or-otherwise/306238)

<div class="topic-metadata">

**Author:** [@mark\_smith](https://forum.kirupa.com/u/mark_smith)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:21pm UTC](https://forum.kirupa.com/t/use-html5-or-otherwise/306238 "2010-03-11T15:21:36Z")

</div>

Hey folks, I have a background in traditional enterprise software, and I am trying to gain expertise on newer technologies. I will greatly appreciate, if you could help me understand, when to use HTML5, when to use Flas…

---

## [MP3 issues](https://forum.kirupa.com/t/mp3-issues/306237)

<div class="topic-metadata">

**Author:** [@PDidee](https://forum.kirupa.com/u/PDidee)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:20pm UTC](https://forum.kirupa.com/t/mp3-issues/306237 "2010-03-11T15:20:47Z")

</div>

Hey Everyone!, I have a site I'm building that imports an MP3 from an external file and plays. var my\_sound:Sound = new Sound(); my\_sound.loadSound("audio/Music.mp3", true); I'd like to be able to fade the mp3 out…

---

## [Trying to fix a bug in a Menu](https://forum.kirupa.com/t/trying-to-fix-a-bug-in-a-menu/306236)

<div class="topic-metadata">

**Author:** [@PDidee](https://forum.kirupa.com/u/PDidee)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 3:10pm UTC](https://forum.kirupa.com/t/trying-to-fix-a-bug-in-a-menu/306236 "2010-03-11T15:10:26Z")

</div>

Hey everyone! I'm using a Wordpress plugin called MenuBar for a site I'm working on and have created a style sheet for my menu. It looks good except I'm running into a small bug with the links that have a submenu. When…

---

## [Flash swf loading very slowly on website](https://forum.kirupa.com/t/flash-swf-loading-very-slowly-on-website/306235)

<div class="topic-metadata">

**Author:** [@Madevilz](https://forum.kirupa.com/u/Madevilz)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 2:44pm UTC](https://forum.kirupa.com/t/flash-swf-loading-very-slowly-on-website/306235 "2010-03-11T14:44:08Z")

</div>

Have a look at this: http://www.tsocommunication.ca/test/...x/index\_en.php and then this: http://www.biotonix.com/beta/index\_en.php notice how it doesn't take any time to load on first URL, but on the second URL, …

---

## [Links like these](https://forum.kirupa.com/t/links-like-these/306233)

<div class="topic-metadata">

**Author:** [@joshrwtn](https://forum.kirupa.com/u/joshrwtn)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 1:46pm UTC](https://forum.kirupa.com/t/links-like-these/306233 "2010-03-11T13:46:21Z")

</div>

Hello, thank you in advance for this forum & your help. I am a total Flash noob, I have flash CS3 and I love it! I am trying to re-create the buttons and sub buttons that are used on this site, and was wondering if anyon…

---

## [Google Maps directions](https://forum.kirupa.com/t/google-maps-directions/306232)

<div class="topic-metadata">

**Author:** [@nusphere](https://forum.kirupa.com/u/nusphere)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 1:32pm UTC](https://forum.kirupa.com/t/google-maps-directions/306232 "2010-03-11T13:32:25Z")

</div>

I have added the a Google Map to a Flash based site I'm working on by following an excellent tutorial by tunevision: http://www.developphp.com/Flash\_tutorials/show\_tutorial.php?tid=594 I wish to expand upon this by a…

---

## [Math/sqrt problem!](https://forum.kirupa.com/t/math-sqrt-problem/306228)

<div class="topic-metadata">

**Author:** [@Atroxe](https://forum.kirupa.com/u/Atroxe)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 12:46pm UTC](https://forum.kirupa.com/t/math-sqrt-problem/306228 "2010-03-11T12:46:57Z")

</div>

Second thread of the day, it's rainin noobfish. Buteh, I sat down to creat a small app to calculate X in order to solve 2nd grade equations. So, in order to manage this I had to translate "x = -p/2 +- sqrt((p/2)^2 - …

---

## [Best usage for a basic button class?](https://forum.kirupa.com/t/best-usage-for-a-basic-button-class/306226)

<div class="topic-metadata">

**Author:** [@eb\_dev](https://forum.kirupa.com/u/eb_dev)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 12:33pm UTC](https://forum.kirupa.com/t/best-usage-for-a-basic-button-class/306226 "2010-03-11T12:33:31Z")

</div>

Hi, I've created a basic button class called BasicButton, the purpose of which is to allow me to create an mc in the library with various states for the button and then just add the button class to the class path in th…

---

## [removeChild being silly](https://forum.kirupa.com/t/removechild-being-silly/306225)

<div class="topic-metadata">

**Author:** [@FunkMaster\_J](https://forum.kirupa.com/u/FunkMaster_J)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 12:30pm UTC](https://forum.kirupa.com/t/removechild-being-silly/306225 "2010-03-11T12:30:51Z")

</div>

I could easily do this in Excel, but thought I'd set myself a challenge and one massive learning curve lol. I have a function that is started on the click of a MC, which builds a menu dynamically. The function creates …

---

## [Creating a Drag and Drop Quiz](https://forum.kirupa.com/t/creating-a-drag-and-drop-quiz/306223)

<div class="topic-metadata">

**Author:** [@gia\_g21](https://forum.kirupa.com/u/gia_g21)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 11:50am UTC](https://forum.kirupa.com/t/creating-a-drag-and-drop-quiz/306223 "2010-03-11T11:50:29Z")

</div>

Hello, I know there are quite a few examples of drag and drop quizzes but what I need is a tad bit different. I will have a list of answers that a user must put in the correct order in some slots. When the user drags a p…

---

## [Incorrect # of args](https://forum.kirupa.com/t/incorrect-of-args/306220)

<div class="topic-metadata">

**Author:** [@Atroxe](https://forum.kirupa.com/u/Atroxe)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:12am UTC](https://forum.kirupa.com/t/incorrect-of-args/306220 "2010-03-11T10:12:41Z")

</div>

So, I've come across 2 problems I'm unable to solve by myself. The first one is from a project in which my aim is to develop an RPG game engine, right? So I've been working on a system handling inventory, since you'r…

---

## [Copy/duplicate array! (Concat and slice not working!)](https://forum.kirupa.com/t/copy-duplicate-array-concat-and-slice-not-working/306218)

<div class="topic-metadata">

**Author:** [@MarMel](https://forum.kirupa.com/u/MarMel)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:03am UTC](https://forum.kirupa.com/t/copy-duplicate-array-concat-and-slice-not-working/306218 "2010-03-11T10:03:29Z")

</div>

Heey guys! I'm working on programming some sort of weekagenda. I built this week from arrays. You have an arrayWeek, with in it arrayMonday (being arrayWeek\[0\]), arrayTuesday (arrayWeek\[1\]), ..., arraySunday (being arr…

---

## [Removing a child spawned from an array](https://forum.kirupa.com/t/removing-a-child-spawned-from-an-array/306213)

<div class="topic-metadata">

**Author:** [@eternalnoob](https://forum.kirupa.com/u/eternalnoob)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 8:16am UTC](https://forum.kirupa.com/t/removing-a-child-spawned-from-an-array/306213 "2010-03-11T08:16:53Z")

</div>

Hello, I'm having trouble removing a child that I have spawned from an array. If I try to use the same for each loop that I use to address the children in the array in other functions, it removes all children that are in…

---

## [Making movieclip randomly move around a constrained area](https://forum.kirupa.com/t/making-movieclip-randomly-move-around-a-constrained-area/306210)

<div class="topic-metadata">

**Author:** [@tcabaco](https://forum.kirupa.com/u/tcabaco)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 6:35am UTC](https://forum.kirupa.com/t/making-movieclip-randomly-move-around-a-constrained-area/306210 "2010-03-11T06:35:49Z")

</div>

Hi everyone, I have an array of display objects that are simple scattered circles on the stage. My goal is to have them move around randomly within, say, a 5/10 pixel radius/range from their original x and y. Sort of l…

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

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