# programming

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

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

**Page:** 1418

---

## [Switch/Case multiple conditions](https://forum.kirupa.com/t/switch-case-multiple-conditions/247888)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 8:45pm UTC](https://forum.kirupa.com/t/switch-case-multiple-conditions/247888 "2007-12-31T20:45:26Z")

</div>

hi! I have this switch here .. which doesn't seem to be working.. Power = 100; switch(Power){ case 0\<Power and Power\<140 : trace("level1"); play(); //==== level 1 ====// break; } Could someone tell …

---

## [Recreating Super Smash Bros Camera Effect](https://forum.kirupa.com/t/recreating-super-smash-bros-camera-effect/247885)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 8:22pm UTC](https://forum.kirupa.com/t/recreating-super-smash-bros-camera-effect/247885 "2007-12-31T20:22:38Z")

</div>

Hi, Yeah.. lol I know this has talked about a few times.. but there was never a straight answer! lol So, I want to ask.. How would i go about re-creating the camera script like in Super Smash Bros where it constantl…

---

## [Clearing Sound Position in AS2.0](https://forum.kirupa.com/t/clearing-sound-position-in-as2-0/247883)

<div class="topic-metadata">

**Author:** [@audioholic](https://forum.kirupa.com/u/audioholic)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 7:48pm UTC](https://forum.kirupa.com/t/clearing-sound-position-in-as2-0/247883 "2007-12-31T19:48:32Z")

</div>

Hi, I'm building an e-learning package and I'm using Play/Pause buttons for voiceovers for different movie clips. I have separate movie clips for slides and a separate layer for the audio functions. Here's my script: …

---

## [parseFloat problem with decimals](https://forum.kirupa.com/t/parsefloat-problem-with-decimals/247879)

<div class="topic-metadata">

**Author:** [@540media](https://forum.kirupa.com/u/540media)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 6:12pm UTC](https://forum.kirupa.com/t/parsefloat-problem-with-decimals/247879 "2007-12-31T18:12:02Z")

</div>

can someone have a look and see if they can help me out with this problem?? I'm creating a math test where the user multiples a decimal with a whole number, the numbers are being created at random. the problem I am h…

---

## [Newbie simple question big answer](https://forum.kirupa.com/t/newbie-simple-question-big-answer/247878)

<div class="topic-metadata">

**Author:** [@uaintgotthisid](https://forum.kirupa.com/u/uaintgotthisid)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 6:02pm UTC](https://forum.kirupa.com/t/newbie-simple-question-big-answer/247878 "2007-12-31T18:02:55Z")

</div>

Ok guys HELLO. I'm a newbie, just signed up and here's what's going down. I got a flash file ('swhy I'm here). I am building a website. (still making sense) I made a little loop that is what the website should do…

---

## [Customizing Flash Templates "Newbie"](https://forum.kirupa.com/t/customizing-flash-templates-newbie/247876)

<div class="topic-metadata">

**Author:** [@igotregistered](https://forum.kirupa.com/u/igotregistered)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 5:09pm UTC](https://forum.kirupa.com/t/customizing-flash-templates-newbie/247876 "2007-12-31T17:09:11Z")

</div>

Hi, I am currently getting myself acclimated with flash design; as this whole concept is new to me. Basically I am limiting myself to only template re-configuration. The templates are from template monster and come mainl…

---

## [\[AS3\] Changing alpha doesn't work?](https://forum.kirupa.com/t/as3-changing-alpha-doesnt-work/247875)

<div class="topic-metadata">

**Author:** [@Pixelcache](https://forum.kirupa.com/u/Pixelcache)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 4:56pm UTC](https://forum.kirupa.com/t/as3-changing-alpha-doesnt-work/247875 "2007-12-31T16:56:31Z")

</div>

I am trying to change the current day's movieclip alpha to 75% but it doesn't seem to be working. I have included the complete class in the attachment. public function getDay(event:Event) { //day\_m…

---

## [XML in image galleries](https://forum.kirupa.com/t/xml-in-image-galleries/247872)

<div class="topic-metadata">

**Author:** [@notSoMuch](https://forum.kirupa.com/u/notSoMuch)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 3:07pm UTC](https://forum.kirupa.com/t/xml-in-image-galleries/247872 "2007-12-31T15:07:14Z")

</div>

OK. I have an xml gallery that loads images into a mc(called thumbsContainer). I have a dropdown menu with 3 portfolios which, ideally, would load a different xml file for each. So far, everything works fine for first …

---

## [Load movie clip in FIXED SIZE help](https://forum.kirupa.com/t/load-movie-clip-in-fixed-size-help/247867)

<div class="topic-metadata">

**Author:** [@johnny79](https://forum.kirupa.com/u/johnny79)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 11:50am UTC](https://forum.kirupa.com/t/load-movie-clip-in-fixed-size-help/247867 "2007-12-31T11:50:36Z")

</div>

hello everybody ,1st post here please i need your help i've made a flash site that will be 100% in the broswer so it will be scretched and scaled this is not problem for me cause this movie is mostly the backround and so…

---

## [AI(artificial intelligence)](https://forum.kirupa.com/t/ai-artificial-intelligence/247865)

<div class="topic-metadata">

**Author:** [@e\_monster](https://forum.kirupa.com/u/e_monster)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 10:55am UTC](https://forum.kirupa.com/t/ai-artificial-intelligence/247865 "2007-12-31T10:55:24Z")

</div>

hi, I'm making a super smash bros game and need help with artificial intelligence and i can make a character move and attack but the only problems i need is the enemy. i want to know how to make him move, attack, jump an…

---

## [Senocular DashedLine.as ported to AS3](https://forum.kirupa.com/t/senocular-dashedline-as-ported-to-as3/247863)

<div class="topic-metadata">

**Author:** [@longroper](https://forum.kirupa.com/u/longroper)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 8:35am UTC](https://forum.kirupa.com/t/senocular-dashedline-as-ported-to-as3/247863 "2007-12-31T08:35:51Z")

</div>

I ported Senocular's DashedLine AS2 class to AS3 for a project I'm working on. I though I'd make it available for download. I only had to make a couple of changes so it was actually quite easy to port. I hope it's ok…

---

## [How to make a single mouseover for an area which controls buttons/etc. inside it?](https://forum.kirupa.com/t/how-to-make-a-single-mouseover-for-an-area-which-controls-buttons-etc-inside-it/247862)

<div class="topic-metadata">

**Author:** [@redruin](https://forum.kirupa.com/u/redruin)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 8:29am UTC](https://forum.kirupa.com/t/how-to-make-a-single-mouseover-for-an-area-which-controls-buttons-etc-inside-it/247862 "2007-12-31T08:29:57Z")

</div>

I'm not sure how to even put the question but my situation is this: I have a 400x300 area that needs to detect a rollover and animate several buttons, text fields, etc. sliding into it when the mouse rolls into the are…

---

## [How to load a movieclip into another one from library](https://forum.kirupa.com/t/how-to-load-a-movieclip-into-another-one-from-library/247859)

<div class="topic-metadata">

**Author:** [@chethan](https://forum.kirupa.com/u/chethan)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 6:31am UTC](https://forum.kirupa.com/t/how-to-load-a-movieclip-into-another-one-from-library/247859 "2007-12-31T06:31:12Z")

</div>

Thanks for looking into my post. Hope you can help me. I'm trying to load a movieclip into a "movieclipholder" in the Flash project. I don't want any external SWF's, everything is put together in the same project. An…

---

## [Problem with formmail](https://forum.kirupa.com/t/problem-with-formmail/247854)

<div class="topic-metadata">

**Author:** [@Gaia](https://forum.kirupa.com/u/Gaia)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 4:07am UTC](https://forum.kirupa.com/t/problem-with-formmail/247854 "2007-12-31T04:07:22Z")

</div>

I am using the code below to send an e-mail form. It sends the e-mail, but it also opens a new window that says "Thank You For Filling Out This Form". How can I get rid of this message, and the new window. I am using th…

---

## [CPU Usage, how to](https://forum.kirupa.com/t/cpu-usage-how-to/247853)

<div class="topic-metadata">

**Author:** [@gregmax](https://forum.kirupa.com/u/gregmax)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 3:46am UTC](https://forum.kirupa.com/t/cpu-usage-how-to/247853 "2007-12-31T03:46:29Z")

</div>

One quick question, and apologizes if this has been mentioned before, but how do you find out how much CPU usage the .swf file is using when its running? I know how to calculate the actual frames per second, but not CPU,…

---

## [Trouble Instatiating Multidimensional Array Of Movie Clips From Inside Of A Class](https://forum.kirupa.com/t/trouble-instatiating-multidimensional-array-of-movie-clips-from-inside-of-a-class/247851)

<div class="topic-metadata">

**Author:** [@svenson](https://forum.kirupa.com/u/svenson)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 3:02am UTC](https://forum.kirupa.com/t/trouble-instatiating-multidimensional-array-of-movie-clips-from-inside-of-a-class/247851 "2007-12-31T03:02:09Z")

</div>

I am trying to set up a script that will generate a matrix repeating the same symbol X by Y times. For example, b(3,2); should generate... OOO OOO ...and after many days of being tested by this problem I have narrow…

---

## [90% there. need help though](https://forum.kirupa.com/t/90-there-need-help-though/247849)

<div class="topic-metadata">

**Author:** [@2dfruit](https://forum.kirupa.com/u/2dfruit)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 11:55pm UTC](https://forum.kirupa.com/t/90-there-need-help-though/247849 "2007-12-30T23:55:55Z")

</div>

I have this brilliant little slideshow made by this fellow here http://theflashblog.com/?p=225 it's really great, but i've never coded in actionscript (php i can handle) so i'm completely lost looking at the code. Wh…

---

## [Flash Button Activation](https://forum.kirupa.com/t/flash-button-activation/247845)

<div class="topic-metadata">

**Author:** [@alblack15](https://forum.kirupa.com/u/alblack15)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 11:12pm UTC](https://forum.kirupa.com/t/flash-button-activation/247845 "2007-12-30T23:12:44Z")

</div>

\[LEFT\]Hello, I am having a bit of difficulty with button activation. I have designed a new button and converted it to a symbol. I then wanted to have the button play a sound on its release. I tried multiple codes and…

---

## [Potential AS3 compiler bug](https://forum.kirupa.com/t/potential-as3-compiler-bug/247844)

<div class="topic-metadata">

**Author:** [@Rezmason](https://forum.kirupa.com/u/Rezmason)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 10:56pm UTC](https://forum.kirupa.com/t/potential-as3-compiler-bug/247844 "2007-12-30T22:56:19Z")

</div>

Would you mind trying this? At first glance, the following statement should either output "Hiya!" or throw some kind of runtime error. But it causes my Flash compiler to leave out all AS3 code when it publishes. I'd like…

---

## [Progressive JPEG as CSS background](https://forum.kirupa.com/t/progressive-jpeg-as-css-background/247842)

<div class="topic-metadata">

**Author:** [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 10:25pm UTC](https://forum.kirupa.com/t/progressive-jpeg-as-css-background/247842 "2007-12-30T22:25:52Z")

</div>

I noticed that if I set a progressive JPEG as the background of a DIV, that JPEG will not load progressively (blury to sharp). Is there some additional property I must set for the DIV for the progressiveness to work?

---

## [Formating XML Parsed Through PHP](https://forum.kirupa.com/t/formating-xml-parsed-through-php/247837)

<div class="topic-metadata">

**Author:** [@jp182](https://forum.kirupa.com/u/jp182)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 8:20pm UTC](https://forum.kirupa.com/t/formating-xml-parsed-through-php/247837 "2007-12-30T20:20:10Z")

</div>

Alright, so I'm trying to create this page where data is displayed from a XML file on the page however, I'm having trouble formatting the text once it is displayed. I tried using CSS on the PHP file but I only got it t…

---

## [Number Issues](https://forum.kirupa.com/t/number-issues/247836)

<div class="topic-metadata">

**Author:** [@theonlycarmire](https://forum.kirupa.com/u/theonlycarmire)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 8:14pm UTC](https://forum.kirupa.com/t/number-issues/247836 "2007-12-30T20:14:20Z")

</div>

Hey, got a strange question for you guys. I'm trying to display a number in a dynamic text field. It keeps telling me that I cannot convert a variable with a Number type to a string, thus cannot display it in the text …

---

## [Transparent FLV video in flash presentation](https://forum.kirupa.com/t/transparent-flv-video-in-flash-presentation/247834)

<div class="topic-metadata">

**Author:** [@Rynraf](https://forum.kirupa.com/u/Rynraf)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 7:10pm UTC](https://forum.kirupa.com/t/transparent-flv-video-in-flash-presentation/247834 "2007-12-30T19:10:00Z")

</div>

I see this trick at few websites: a) one part of flash presentation is normal vector flash objects b) second part is external flash video (FLV) file added to flash movie, which have one color background - this color in f…

---

## [GD Alpha Text Outline](https://forum.kirupa.com/t/gd-alpha-text-outline/247833)

<div class="topic-metadata">

**Author:** [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 6:57pm UTC](https://forum.kirupa.com/t/gd-alpha-text-outline/247833 "2007-12-30T18:57:03Z")

</div>

Just playing with another ugly layout and i want to use Avenir with GD to create text with an alpha background, that is all accomplished. However, there is an ugly, jaggy white single pixel outline that looks like a bag …

---

## [Need help with pan and zoom effect](https://forum.kirupa.com/t/need-help-with-pan-and-zoom-effect/247831)

<div class="topic-metadata">

**Author:** [@celica](https://forum.kirupa.com/u/celica)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 6:45pm UTC](https://forum.kirupa.com/t/need-help-with-pan-and-zoom-effect/247831 "2007-12-30T18:45:40Z")

</div>

Hopefully someone will be able to help me with this pan and zoom file. I found a cool flash file online that allows the view to pan and zoom with the mouse. For my own uses, I modified it somewhat, adding buttons that…

---

## [Flash Video with Menu](https://forum.kirupa.com/t/flash-video-with-menu/247829)

<div class="topic-metadata">

**Author:** [@Devante](https://forum.kirupa.com/u/Devante)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 5:14pm UTC](https://forum.kirupa.com/t/flash-video-with-menu/247829 "2007-12-30T17:14:40Z")

</div>

Hi All, Does any body know where I can download a free or under $50 Flash video player with menu on the side with image that I can use on my site? Examples: http://media.ps2.ign.com/media/811/811719/vids\_1.html - …

---

## [Depth Based Timeline Control](https://forum.kirupa.com/t/depth-based-timeline-control/247824)

<div class="topic-metadata">

**Author:** [@djstaz0ne](https://forum.kirupa.com/u/djstaz0ne)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 2:37pm UTC](https://forum.kirupa.com/t/depth-based-timeline-control/247824 "2007-12-30T14:37:02Z")

</div>

I am stuck. I need to know how to control a MovieClip based on it's depth. ...MovieClip at n depth .gotoAndStop(2); how do i do this? any advice?:puzzled:

---

## [Download multiple images from server](https://forum.kirupa.com/t/download-multiple-images-from-server/247823)

<div class="topic-metadata">

**Author:** [@N3oo](https://forum.kirupa.com/u/N3oo)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 2:16pm UTC](https://forum.kirupa.com/t/download-multiple-images-from-server/247823 "2007-12-30T14:16:41Z")

</div>

I tried to download multiple images with FileReference from my server to my PC, but then I have to confirm each download. Is there a way to download multiple images without any dialogbox to confirm for each images?

---

## [How to create your own sounds](https://forum.kirupa.com/t/how-to-create-your-own-sounds/247821)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 12:05pm UTC](https://forum.kirupa.com/t/how-to-create-your-own-sounds/247821 "2007-12-30T12:05:00Z")

</div>

Excuse my ignorance; does anybody know what would be the best program to create your own sounds? Any suggestion, is GarageBand an option? I’m planning to use sounds in my flash site. Thanks fs\_tigre

---

## [Flex dynamic functions? EventDispatchers?](https://forum.kirupa.com/t/flex-dynamic-functions-eventdispatchers/247817)

<div class="topic-metadata">

**Author:** [@Z11](https://forum.kirupa.com/u/Z11)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 9:23am UTC](https://forum.kirupa.com/t/flex-dynamic-functions-eventdispatchers/247817 "2007-12-30T09:23:14Z")

</div>

I have noticed that in flex you can have something and setup a \<object click="runthisfunction()"\> and onclick it will run the function, however you can also pass variables like. \<object click="runthisfunction('hey…

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

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