# programming

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

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

**Page:** 1306

---

## [Issue with numbers](https://forum.kirupa.com/t/issue-with-numbers/255704)

<div class="topic-metadata">

**Author:** [@cytech](https://forum.kirupa.com/u/cytech)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 2:25am UTC](https://forum.kirupa.com/t/issue-with-numbers/255704 "2008-03-26T02:25:27Z")

</div>

Hey All, I am having issues subtracting numbers -- yes subtracting haha Basically I add 0.99 + 0.99 + 0.99 I get: 2.97 - great! Now when I subtract 0.99 one at a time (using AS) It goes like this: 2.97 - 0.99 = 1…

---

## [Parsing XML issues](https://forum.kirupa.com/t/parsing-xml-issues/255703)

<div class="topic-metadata">

**Author:** [@koltz](https://forum.kirupa.com/u/koltz)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 2:06am UTC](https://forum.kirupa.com/t/parsing-xml-issues/255703 "2008-03-26T02:06:29Z")

</div>

For some reason, I am unable to pull information from an XML I am download from Shopzilla. I can trace the entire xml which displays, but when trying to get to a specific node to get the specific data, it doesn't want t…

---

## [AMFPHP to RecordSet in Actionscript 3.0? Help?](https://forum.kirupa.com/t/amfphp-to-recordset-in-actionscript-3-0-help/255702)

<div class="topic-metadata">

**Author:** [@Groady](https://forum.kirupa.com/u/Groady)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 1:47am UTC](https://forum.kirupa.com/t/amfphp-to-recordset-in-actionscript-3-0-help/255702 "2008-03-26T01:47:36Z")

</div>

Can someone explain to me how to retrieve a RecordSet in an Actionscript 3.0 based file from AMFPHP. The example below is taken from the homepage at http://www.amfphp.org/. It's showing how to retrieve a MySQL query d…

---

## [Possible to clip bounds of Sprite/Movieclip?](https://forum.kirupa.com/t/possible-to-clip-bounds-of-sprite-movieclip/255698)

<div class="topic-metadata">

**Author:** [@rinogo](https://forum.kirupa.com/u/rinogo)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 12:42am UTC](https://forum.kirupa.com/t/possible-to-clip-bounds-of-sprite-movieclip/255698 "2008-03-26T00:42:06Z")

</div>

Easy noob question for you: I'm using addChild() to add bitmaps to a 100x100 Sprite. I'm positioning these bitmaps with their x and y parameters. However, if the bitmap 'spills' over the edge of the 100x100 Sprite, I wan…

---

## [Ancient Asia Era \[Strategy Game\]](https://forum.kirupa.com/t/ancient-asia-era-strategy-game/255695)

<div class="topic-metadata">

**Author:** [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 12:08am UTC](https://forum.kirupa.com/t/ancient-asia-era-strategy-game/255695 "2008-03-26T00:08:20Z")

</div>

No problem yet... =============================================== \[COLOR=Silver\]\*\* The Game...\*\* Yes, the titles a bit funky, I do agree. But that's exactly what I plan on making. A strategy game utilizing ancient Asia…

---

## [Reloading an SWF](https://forum.kirupa.com/t/reloading-an-swf/255693)

<div class="topic-metadata">

**Author:** [@The1nternet](https://forum.kirupa.com/u/The1nternet)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 11:58pm UTC](https://forum.kirupa.com/t/reloading-an-swf/255693 "2008-03-25T23:58:52Z")

</div>

I've got a flash application I'm creating that loads external XML data and displays it. The application also lets you enter new data that then uses PHP to write the new data to the external XML file. I have all of this…

---

## [Loaded SWF Background dissappears on load!](https://forum.kirupa.com/t/loaded-swf-background-dissappears-on-load/255690)

<div class="topic-metadata">

**Author:** [@zerobars](https://forum.kirupa.com/u/zerobars)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 11:51pm UTC](https://forum.kirupa.com/t/loaded-swf-background-dissappears-on-load/255690 "2008-03-25T23:51:46Z")

</div>

I'm loading a SWF into my movie -- using code below. The only thing is that if I have a SWF that has a colored background, and content above that, on loading the background of the imported SWF comes through as transparen…

---

## [Transition between external swfs Tutorial Tweak](https://forum.kirupa.com/t/transition-between-external-swfs-tutorial-tweak/255687)

<div class="topic-metadata">

**Author:** [@ad\_rock](https://forum.kirupa.com/u/ad_rock)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 11:13pm UTC](https://forum.kirupa.com/t/transition-between-external-swfs-tutorial-tweak/255687 "2008-03-25T23:13:32Z")

</div>

My transition scripting is based off of the tutorial "Transitions Between External SWFs" by Voetsjoeba. How can I make the main nav buttons change the current SWF being loaded if they are pressed during the intro pha…

---

## [Need another set of eyes](https://forum.kirupa.com/t/need-another-set-of-eyes/255686)

<div class="topic-metadata">

**Author:** [@alh](https://forum.kirupa.com/u/alh)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 11:10pm UTC](https://forum.kirupa.com/t/need-another-set-of-eyes/255686 "2008-03-25T23:10:20Z")

</div>

Hello! I have a Flash script I've been working on that is so very close to being complete. I think I've just been staring at the AS and everything far too long. It's a simple image rotator with clickable areas that tak…

---

## [AS timing functions](https://forum.kirupa.com/t/as-timing-functions/255684)

<div class="topic-metadata">

**Author:** [@suvenier](https://forum.kirupa.com/u/suvenier)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 10:29pm UTC](https://forum.kirupa.com/t/as-timing-functions/255684 "2008-03-25T22:29:27Z")

</div>

setInterval and setTimeOut both call a function in x mili seconds. But the code keeps running. Insent there a Sleep function? well to be more specific I'm making a Sports manager game. I got the game algoritm all…

---

## [How to calculate size of folder?](https://forum.kirupa.com/t/how-to-calculate-size-of-folder/255677)

<div class="topic-metadata">

**Author:** [@chrisclick](https://forum.kirupa.com/u/chrisclick)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:48pm UTC](https://forum.kirupa.com/t/how-to-calculate-size-of-folder/255677 "2008-03-25T21:48:37Z")

</div>

Ok, how would I make a php get the size of a folder...? What im trying to do is: Get size of folder with contents see if the size of folder is equal to limit

---

## [Execute function in embedded flex app from swf](https://forum.kirupa.com/t/execute-function-in-embedded-flex-app-from-swf/255676)

<div class="topic-metadata">

**Author:** [@Thundercat](https://forum.kirupa.com/u/Thundercat)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:48pm UTC](https://forum.kirupa.com/t/execute-function-in-embedded-flex-app-from-swf/255676 "2008-03-25T21:48:10Z")

</div>

Hi, I have a flex flv player application that I'm loading into a wrapper flash movie. The flv player works great with the exception of one thing... when you go to a different area, any playing movies are not unloaded pro…

---

## [Problem Streaming big mp3s... (AS2)](https://forum.kirupa.com/t/problem-streaming-big-mp3s-as2/255675)

<div class="topic-metadata">

**Author:** [@jblaster](https://forum.kirupa.com/u/jblaster)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:28pm UTC](https://forum.kirupa.com/t/problem-streaming-big-mp3s-as2/255675 "2008-03-25T21:28:40Z")

</div>

Hi, I've made my own flash mp3 player and it works grate. My only problem is that the mp3s I want to stream are between 20MB and 40MB. When I try to stream them my browser starts to slow down as more of the mp3 is cach…

---

## [Issues with PHP reading XML](https://forum.kirupa.com/t/issues-with-php-reading-xml/255674)

<div class="topic-metadata">

**Author:** [@rydog65](https://forum.kirupa.com/u/rydog65)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:17pm UTC](https://forum.kirupa.com/t/issues-with-php-reading-xml/255674 "2008-03-25T21:17:41Z")

</div>

Hi, I am having problems with this. I have a php page that reads from an XML document and displays the current listings in an html table. It all works great, except for some reason it runs through the script an extra tim…

---

## [How to stop FLV after going different frames?](https://forum.kirupa.com/t/how-to-stop-flv-after-going-different-frames/255673)

<div class="topic-metadata">

**Author:** [@spark067](https://forum.kirupa.com/u/spark067)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:14pm UTC](https://forum.kirupa.com/t/how-to-stop-flv-after-going-different-frames/255673 "2008-03-25T21:14:24Z")

</div>

Hi everyone! I have three FLV files and I created a movieclip and put these FLV files. My problem is that after viewing FLV and I go to different frames, then FLV is still playing. How to stop this? This is how I wrote…

---

## [Deep copying Arrays with Class association?](https://forum.kirupa.com/t/deep-copying-arrays-with-class-association/255672)

<div class="topic-metadata">

**Author:** [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 9:12pm UTC](https://forum.kirupa.com/t/deep-copying-arrays-with-class-association/255672 "2008-03-25T21:12:56Z")

</div>

I have no idea what that (the thread title) means. I'm trying to duplicate an array that contains a bunch of custom class instances. I've tried using the "cloning arrays" example from the Flash CS3 help (which is the s…

---

## [BitmapData memory leak is AS3](https://forum.kirupa.com/t/bitmapdata-memory-leak-is-as3/255669)

<div class="topic-metadata">

**Author:** [@iasseo](https://forum.kirupa.com/u/iasseo)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 8:58pm UTC](https://forum.kirupa.com/t/bitmapdata-memory-leak-is-as3/255669 "2008-03-25T20:58:55Z")

</div>

Hello, I have a problem with drawing bitmapData in AS3 with an onEnterFrame action. It worked great in AS2, and now that I converted it to AS3, it's bogging down on my system rather slowly.... I'm using the dispose() …

---

## [Problem with Background in Flash](https://forum.kirupa.com/t/problem-with-background-in-flash/255668)

<div class="topic-metadata">

**Author:** [@novatron6](https://forum.kirupa.com/u/novatron6)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 8:52pm UTC](https://forum.kirupa.com/t/problem-with-background-in-flash/255668 "2008-03-25T20:52:15Z")

</div>

My client is having a problem with the background of a flash movie. I can't replicate the problem on my computer, so I don't know if it is a flash issue or something with their screen resolution or something. Here i…

---

## [RE: Buttons outside the stage](https://forum.kirupa.com/t/re-buttons-outside-the-stage/255667)

<div class="topic-metadata">

**Author:** [@george2409](https://forum.kirupa.com/u/george2409)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 8:50pm UTC](https://forum.kirupa.com/t/re-buttons-outside-the-stage/255667 "2008-03-25T20:50:12Z")

</div>

I have placed three buttons which appear outside the stage (to the bottom left literally just underneath the stage). Anyone got any ideas to how I can publish it so they appear in the browser. I have tried changing the d…

---

## [Firefox issue regarding SWFObject transparency](https://forum.kirupa.com/t/firefox-issue-regarding-swfobject-transparency/255666)

<div class="topic-metadata">

**Author:** [@Mciver](https://forum.kirupa.com/u/Mciver)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 8:27pm UTC](https://forum.kirupa.com/t/firefox-issue-regarding-swfobject-transparency/255666 "2008-03-25T20:27:30Z")

</div>

Hello Forum, I have a SWFObject that I want to show a certain section of it but when a link is clicked show the full SWFObject. What I've done was put the swf which has a height of 680px in a div with a defined height …

---

## [Sound animation as background in Flash](https://forum.kirupa.com/t/sound-animation-as-background-in-flash/255664)

<div class="topic-metadata">

**Author:** [@Grabo](https://forum.kirupa.com/u/Grabo)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 7:53pm UTC](https://forum.kirupa.com/t/sound-animation-as-background-in-flash/255664 "2008-03-25T19:53:47Z")

</div>

Hi, I'm new to this forum, so I hope my question is at the right place... I'm looking for an answer about my problem since quite along time on the web, but up to now I haven't found a solution. I try to make a home…

---

## [Newbie, Page Flip v2, with scroll bar?](https://forum.kirupa.com/t/newbie-page-flip-v2-with-scroll-bar/255659)

<div class="topic-metadata">

**Author:** [@auzzieb53](https://forum.kirupa.com/u/auzzieb53)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 7:10pm UTC](https://forum.kirupa.com/t/newbie-page-flip-v2-with-scroll-bar/255659 "2008-03-25T19:10:47Z")

</div>

I'm currently using Page Flip v2 action script and am having trouble incorporating a scrolling text box mc on top of one of the pages. This thread has an example of the script so I don't have to re-paste the code up he…

---

## [FLVPlayback and attachCamera](https://forum.kirupa.com/t/flvplayback-and-attachcamera/255654)

<div class="topic-metadata">

**Author:** [@dColumbus](https://forum.kirupa.com/u/dColumbus)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 6:42pm UTC](https://forum.kirupa.com/t/flvplayback-and-attachcamera/255654 "2008-03-25T18:42:39Z")

</div>

I'm not sure how to work around this, but the attachCamera is not a part of the FLVPlayback class. How do you use the FLVPlayback when you want to capture video from your webcam?

---

## [Adv BitmapData CollisionDetection?](https://forum.kirupa.com/t/adv-bitmapdata-collisiondetection/255652)

<div class="topic-metadata">

**Author:** [@Enix591](https://forum.kirupa.com/u/Enix591)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 6:38pm UTC](https://forum.kirupa.com/t/adv-bitmapdata-collisiondetection/255652 "2008-03-25T18:38:23Z")

</div>

I want to do collision detection between two display objects, a Bitmap and a mc. However i only want to test collision between the non transparent pixels. How would i do this? See, ive got a sprite sheet, and i a…

---

## [Simple Question: Importing Package Functions](https://forum.kirupa.com/t/simple-question-importing-package-functions/255643)

<div class="topic-metadata">

**Author:** [@Alpha\_eX](https://forum.kirupa.com/u/Alpha_eX)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:59pm UTC](https://forum.kirupa.com/t/simple-question-importing-package-functions/255643 "2008-03-25T15:59:06Z")

</div>

Hi everyone, I'm new to Flash AS3, just trying to get my head around it. At the moment I'm trying to figure out packages and how to make a package full of functions. I wrote a package with a function in it, I want to…

---

## [Tapered linestyle](https://forum.kirupa.com/t/tapered-linestyle/255642)

<div class="topic-metadata">

**Author:** [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:58pm UTC](https://forum.kirupa.com/t/tapered-linestyle/255642 "2008-03-25T15:58:28Z")

</div>

Is it possible to draw a tapered linestyle with AS 2/3.0 ? graphics.lineStyle has a weight parameter, but I don't think it's possible to animate its value without changing the whole drawn line. I can think of just one so…

---

## [Embedded swf not working](https://forum.kirupa.com/t/embedded-swf-not-working/255639)

<div class="topic-metadata">

**Author:** [@derm116](https://forum.kirupa.com/u/derm116)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:35pm UTC](https://forum.kirupa.com/t/embedded-swf-not-working/255639 "2008-03-25T15:35:43Z")

</div>

Hi all, I'm using an embedded swf for a progress indicator in a flex app i'm working on! When I run the mxml file in flex builder the embedded swf plays fine!! However, when I run the published flex app, the embedded s…

---

## [Why won't link in xml open from html?](https://forum.kirupa.com/t/why-wont-link-in-xml-open-from-html/255635)

<div class="topic-metadata">

**Author:** [@adamjw3](https://forum.kirupa.com/u/adamjw3)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:16pm UTC](https://forum.kirupa.com/t/why-wont-link-in-xml-open-from-html/255635 "2008-03-25T15:16:25Z")

</div>

hi all i have a small problem with a flash scroller that i am using. its a standard link the xml file that calls images and url for that image. when i text movie everything works fine but if i preview it in html none…

---

## [Help with inicial start :)](https://forum.kirupa.com/t/help-with-inicial-start/255634)

<div class="topic-metadata">

**Author:** [@di3go](https://forum.kirupa.com/u/di3go)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 2:48pm UTC](https://forum.kirupa.com/t/help-with-inicial-start/255634 "2008-03-25T14:48:21Z")

</div>

Hi guys \[smile\] This is my 1st post, im making a game in ruby using gosu (a game framework for ruby) but im thinking in make it in flash so i can run it on desktop (air) or web(flex/flash) with the same code, and im pl…

---

## [Stop on frame 121? (quick question)](https://forum.kirupa.com/t/stop-on-frame-121-quick-question/255631)

<div class="topic-metadata">

**Author:** [@JaymeNYC](https://forum.kirupa.com/u/JaymeNYC)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 2:16pm UTC](https://forum.kirupa.com/t/stop-on-frame-121-quick-question/255631 "2008-03-25T14:16:28Z")

</div>

I made a new layer, created a keyframe on frame 121 (the end of the movie) and put "stop();" but it doesnt play further than frame 1.. could someone tell me what I'm doin wrong?

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

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