# programming

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

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

**Page:** 846

---

## [Scale9 on complex clips](https://forum.kirupa.com/t/scale9-on-complex-clips/286518)

<div class="topic-metadata">

**Author:** [@cesig](https://forum.kirupa.com/u/cesig)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 3:48pm UTC](https://forum.kirupa.com/t/scale9-on-complex-clips/286518 "2009-04-16T15:48:05Z")

</div>

I'm having an issue where a MovieClip with a scale9 grid on it isn't scaling properly. The MC contains some vector elements, and a nested movie clip with some filters on it. If the sectors are laid out this way: 1 2…

---

## [Replacing spaces in a string, the RegExp way](https://forum.kirupa.com/t/replacing-spaces-in-a-string-the-regexp-way/286515)

<div class="topic-metadata">

**Author:** [@greatbigbrain](https://forum.kirupa.com/u/greatbigbrain)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 3:06pm UTC](https://forum.kirupa.com/t/replacing-spaces-in-a-string-the-regexp-way/286515 "2009-04-16T15:06:10Z")

</div>

Hi Crew, So I'd like to remove all spaces from an input text box, and replace them with commas, and I'd like to learn how to do this with RegExp, which I've never before used. This doesn't work (though if I do s.search…

---

## [Spiral Bound Notebook animation](https://forum.kirupa.com/t/spiral-bound-notebook-animation/286514)

<div class="topic-metadata">

**Author:** [@jpearl](https://forum.kirupa.com/u/jpearl)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:56pm UTC](https://forum.kirupa.com/t/spiral-bound-notebook-animation/286514 "2009-04-16T14:56:40Z")

</div>

Hi I'm trying to develop a website in flash where the main content will be delivered as "pages" in a spiral bound notebook. In simplist terms, i want to have the image of a spiral bound notebook with "tabs" on the side …

---

## [Directory Tree Issue](https://forum.kirupa.com/t/directory-tree-issue/286513)

<div class="topic-metadata">

**Author:** [@redelite](https://forum.kirupa.com/u/redelite)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:54pm UTC](https://forum.kirupa.com/t/directory-tree-issue/286513 "2009-04-16T14:54:22Z")

</div>

\<ul id="topLevelDirectoryFiles"\> \<li class="toggle" id="applications"\>applications \<ul id="applications-child" class="open"\> \<li class="toggle" id="applications-lib"\>lib\</li\> \<li class="toggle" id="app…

---

## [Framerates](https://forum.kirupa.com/t/framerates/286512)

<div class="topic-metadata">

**Author:** [@trundrumbalind](https://forum.kirupa.com/u/trundrumbalind)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:49pm UTC](https://forum.kirupa.com/t/framerates/286512 "2009-04-16T14:49:59Z")

</div>

Hi guys, you might remember my previous post about making images follow positions on a movie and the problems I was having. Anyways, it's fixed now but basically my setup is as follows... I have my main movie on the s…

---

## [Need Flash Developer - Freelance](https://forum.kirupa.com/t/need-flash-developer-freelance/286510)

<div class="topic-metadata">

**Author:** [@ezviv](https://forum.kirupa.com/u/ezviv)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:07pm UTC](https://forum.kirupa.com/t/need-flash-developer-freelance/286510 "2009-04-16T14:07:22Z")

</div>

Urgently in need of Flash coder - action scripting, XML, album etc... for Freelance projects. Contact Viv - ezviv@hotmail.com Thx

---

## [Generic swf for loading image slideshows. Different sizes](https://forum.kirupa.com/t/generic-swf-for-loading-image-slideshows-different-sizes/286509)

<div class="topic-metadata">

**Author:** [@fdqepd](https://forum.kirupa.com/u/fdqepd)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:04pm UTC](https://forum.kirupa.com/t/generic-swf-for-loading-image-slideshows-different-sizes/286509 "2009-04-16T14:04:02Z")

</div>

Hello, i have a swf that loads dynamic images from an xml. that part is working great. Also i give the swf a parameter with the xml to load through the embed code. thats working to. What is not working I want to give…

---

## [enemyAI()](https://forum.kirupa.com/t/enemyai/286506)

<div class="topic-metadata">

**Author:** [@Jephz](https://forum.kirupa.com/u/Jephz)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 1:07pm UTC](https://forum.kirupa.com/t/enemyai/286506 "2009-04-16T13:07:18Z")

</div>

I'm trying to code my own battle engine. Its not exactly complex, but not basic either. Unfortunately, I'm having trouble with the enemy AI when it comes to randomizing enemy attacks. Take a look at this SWF: http://s…

---

## [\[as3\]loading xml data | last added pic's](https://forum.kirupa.com/t/as3-loading-xml-data-last-added-pics/286504)

<div class="topic-metadata">

**Author:** [@skabszo](https://forum.kirupa.com/u/skabszo)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 12:24pm UTC](https://forum.kirupa.com/t/as3-loading-xml-data-last-added-pics/286504 "2009-04-16T12:24:13Z")

</div>

Hi i have a small problem. I use some script of grid gallery. it works great and its based on xml file with this structure: \<?xml version="1.0" encoding="utf-8"?\> \<GALLERY XPOSITION="5" YPOSITION="5" WIDTH="100" HEIGH…

---

## [Saving information from the output panel to a text file](https://forum.kirupa.com/t/saving-information-from-the-output-panel-to-a-text-file/286503)

<div class="topic-metadata">

**Author:** [@crazy\_clairey](https://forum.kirupa.com/u/crazy_clairey)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 12:19pm UTC](https://forum.kirupa.com/t/saving-information-from-the-output-panel-to-a-text-file/286503 "2009-04-16T12:19:37Z")

</div>

Hi there, I am trying to save information that I have displaying in my output panel to a .txt fille. I have tried this tutorial here: http://www.peachpit.com/articles/article.aspx?p=170506&seqNum=3 but it is not workin…

---

## [XML and AS 3.0](https://forum.kirupa.com/t/xml-and-as-3-0/286500)

<div class="topic-metadata">

**Author:** [@deerowbear](https://forum.kirupa.com/u/deerowbear)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 11:29am UTC](https://forum.kirupa.com/t/xml-and-as-3-0/286500 "2009-04-16T11:29:45Z")

</div>

Hi there, I am writing a class in AS 3.0 to read in a xml file to create content for a quiz. Once I instantiate the xml obj and pass in a string that determines the xml name in the constructor for the xml class I read i…

---

## [Preloader on imported Flash Video?](https://forum.kirupa.com/t/preloader-on-imported-flash-video/286499)

<div class="topic-metadata">

**Author:** [@Lewwy](https://forum.kirupa.com/u/Lewwy)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 10:42am UTC](https://forum.kirupa.com/t/preloader-on-imported-flash-video/286499 "2009-04-16T10:42:23Z")

</div>

Hello all, I'm wondering if its possible to set up a custom preloader on a video that Flash has imported for me? To get a better idea, take a look at this : http://www.packer-products.co.uk/waste-converters-maintenance…

---

## [MP4 H.264 - Flash Media Server](https://forum.kirupa.com/t/mp4-h-264-flash-media-server/286494)

<div class="topic-metadata">

**Author:** [@sci](https://forum.kirupa.com/u/sci)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 9:37am UTC](https://forum.kirupa.com/t/mp4-h-264-flash-media-server/286494 "2009-04-16T09:37:07Z")

</div>

Greetings all I have a stack of MP4 H.264 videos that I have been asked to create a flash player for. This flash player will be put up online to view. So my question is the following... Do I need Flash Media Server …

---

## [Restricting movieclip movement along a path](https://forum.kirupa.com/t/restricting-movieclip-movement-along-a-path/286490)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 8:36am UTC](https://forum.kirupa.com/t/restricting-movieclip-movement-along-a-path/286490 "2009-04-16T08:36:18Z")

</div>

Hi, I know how to do motion guides, but now I also want to control this movieclip with actionscript code, so that I modify the x and y properties, but STILL restrict the position of the movieclip only to that motion gu…

---

## [Php date and time function](https://forum.kirupa.com/t/php-date-and-time-function/286489)

<div class="topic-metadata">

**Author:** [@stedem](https://forum.kirupa.com/u/stedem)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 8:25am UTC](https://forum.kirupa.com/t/php-date-and-time-function/286489 "2009-04-16T08:25:01Z")

</div>

Hello, I'm busy with my new website and want to do some things with "date". I would like to create a function in my site that shows/hides a product based on date. For example in the field "show" i put the date 2009…

---

## [Flash, Shaving-game, performance issues](https://forum.kirupa.com/t/flash-shaving-game-performance-issues/286488)

<div class="topic-metadata">

**Author:** [@jnsjohansson](https://forum.kirupa.com/u/jnsjohansson)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 7:27am UTC](https://forum.kirupa.com/t/flash-shaving-game-performance-issues/286488 "2009-04-16T07:27:15Z")

</div>

(I re-post my original post here, perhaps it's a more relevant topic) Hey, I've almost finished making a game where you shave the surface inside the borders. It's a bit slow.. So I was hoping you could suggest which …

---

## [Preloader for high speed connections](https://forum.kirupa.com/t/preloader-for-high-speed-connections/286486)

<div class="topic-metadata">

**Author:** [@W84me](https://forum.kirupa.com/u/W84me)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 6:22am UTC](https://forum.kirupa.com/t/preloader-for-high-speed-connections/286486 "2009-04-16T06:22:32Z")

</div>

Hi all, I am making a preloader with different animations every 10% The problem is that it works as it should when simulating with 56k but in higher connection speeds the animation chunks... What i do is to check t…

---

## [Load and unload question](https://forum.kirupa.com/t/load-and-unload-question/286484)

<div class="topic-metadata">

**Author:** [@titoqan](https://forum.kirupa.com/u/titoqan)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 5:34am UTC](https://forum.kirupa.com/t/load-and-unload-question/286484 "2009-04-16T05:34:58Z")

</div>

Hello, I have a question about loading .swf's. If I load a swf then unload it, when I reload it will it need to be downloaded again or is it now local and load fast? Thanks, Titoqan

---

## [Publish with percentage dimensions ruins my masks](https://forum.kirupa.com/t/publish-with-percentage-dimensions-ruins-my-masks/286482)

<div class="topic-metadata">

**Author:** [@nunonaos](https://forum.kirupa.com/u/nunonaos)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 4:35am UTC](https://forum.kirupa.com/t/publish-with-percentage-dimensions-ruins-my-masks/286482 "2009-04-16T04:35:54Z")

</div>

Hello, i need heal to create a mask with as3. I dray a rectangle in the right place. But when i add the code to transform that rectangle in a mask the rectangle doesn't keep it's size, wich means that the mask doesn't ge…

---

## [Flash Embed Tutorials?](https://forum.kirupa.com/t/flash-embed-tutorials/286480)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 4:02am UTC](https://forum.kirupa.com/t/flash-embed-tutorials/286480 "2009-04-16T04:02:49Z")

</div>

Are there any tutorials out there for how to properly use Embed? (as well as other similar keywords) \[Embed(source='MyCollada.dae', symbol='MyCollada')\] Searching Google for "AS3 Embed" isn't really giving any good res…

---

## [Help with onEnterFrame inside a Class](https://forum.kirupa.com/t/help-with-onenterframe-inside-a-class/286479)

<div class="topic-metadata">

**Author:** [@Thefox14](https://forum.kirupa.com/u/Thefox14)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 3:11am UTC](https://forum.kirupa.com/t/help-with-onenterframe-inside-a-class/286479 "2009-04-16T03:11:33Z")

</div>

I've been trying to run some functions in my class every frame and have come up with this code: class playercam extends MovieClip { var ThefocusX:Number=0; var ThefocusY:Number=0; var smootherscrollX:Number=0; var…

---

## [How do I add form fields to contact mailer?](https://forum.kirupa.com/t/how-do-i-add-form-fields-to-contact-mailer/286478)

<div class="topic-metadata">

**Author:** [@rupo](https://forum.kirupa.com/u/rupo)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:44am UTC](https://forum.kirupa.com/t/how-do-i-add-form-fields-to-contact-mailer/286478 "2009-04-16T02:44:04Z")

</div>

hi, i am very new to php...basically all i have done is made a simple contact mailer form like the ones in the tutorials section, with an email field,a message textarea, and a submit button. i want to make a form that ha…

---

## [Help fixing a power bar](https://forum.kirupa.com/t/help-fixing-a-power-bar/286474)

<div class="topic-metadata">

**Author:** [@Thefox14](https://forum.kirupa.com/u/Thefox14)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 1:29am UTC](https://forum.kirupa.com/t/help-fixing-a-power-bar/286474 "2009-04-16T01:29:59Z")

</div>

'm trying to make a simple power bar seen in PC billiard games, in which the power bar extends as far as the mouse is. But I've been having some problems. If you'd like to see the problem its very obvious heh, ::FILE:: …

---

## [Loading multiples clips from library and unloading it](https://forum.kirupa.com/t/loading-multiples-clips-from-library-and-unloading-it/286473)

<div class="topic-metadata">

**Author:** [@Dan008](https://forum.kirupa.com/u/Dan008)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 12:40am UTC](https://forum.kirupa.com/t/loading-multiples-clips-from-library-and-unloading-it/286473 "2009-04-16T00:40:41Z")

</div>

Hi to all, I am trying to create a gallery using loading of clips from the library when I select one of the thumbnails and then a close button on the clip to unload it. I am using the custom scrolling script I got from…

---

## [How would I get an MC to resize proportionally with embedded swf](https://forum.kirupa.com/t/how-would-i-get-an-mc-to-resize-proportionally-with-embedded-swf/286472)

<div class="topic-metadata">

**Author:** [@kanji2000](https://forum.kirupa.com/u/kanji2000)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 11:52pm UTC](https://forum.kirupa.com/t/how-would-i-get-an-mc-to-resize-proportionally-with-embedded-swf/286472 "2009-04-15T23:52:35Z")

</div>

his isn't as simple as it seems. Basically, I'm loading an external swf that calls an XML file and plays a slideshow animation that enlarges or contracts the pics being loaded (similar to a Ken Burns effect). The exter…

---

## [Scrolling dynamic text in MC - PROBLEM](https://forum.kirupa.com/t/scrolling-dynamic-text-in-mc-problem/286469)

<div class="topic-metadata">

**Author:** [@realdoyle](https://forum.kirupa.com/u/realdoyle)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 10:01pm UTC](https://forum.kirupa.com/t/scrolling-dynamic-text-in-mc-problem/286469 "2009-04-15T22:01:28Z")

</div>

I need help solving a small problem I am having with scrolling dynamic text inside a movieclip. I followed and combined the two wonderful Kirupa tutorials below. My problem is now that I have to preset the textbox height…

---

## [jQuery problem in php](https://forum.kirupa.com/t/jquery-problem-in-php/286467)

<div class="topic-metadata">

**Author:** [@jack3985](https://forum.kirupa.com/u/jack3985)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:25pm UTC](https://forum.kirupa.com/t/jquery-problem-in-php/286467 "2009-04-15T21:25:34Z")

</div>

thank you all .problem is solve ^^ if any one have about this problem welcome to share with here

---

## [AS2 Button headaches!](https://forum.kirupa.com/t/as2-button-headaches/286466)

<div class="topic-metadata">

**Author:** [@BeerOclock](https://forum.kirupa.com/u/BeerOclock)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:05pm UTC](https://forum.kirupa.com/t/as2-button-headaches/286466 "2009-04-15T21:05:48Z")

</div>

Im actually pretty experienced in AS3 but I'm a complete noob at AS2: I have a button that opens a url like so: buttonA.onPress = navToPageA; function navToPageA() { getURL("http://www.urlA.com", "\_blank"); } Th…

---

## [AS 2.0 Form Filled Page HELP!](https://forum.kirupa.com/t/as-2-0-form-filled-page-help/286464)

<div class="topic-metadata">

**Author:** [@mattozawa](https://forum.kirupa.com/u/mattozawa)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 9:01pm UTC](https://forum.kirupa.com/t/as-2-0-form-filled-page-help/286464 "2009-04-15T21:01:28Z")

</div>

I am taking over a site that has already been built. It was built in either 1.0 or 2.0 and I am not familiar with either of those versions. Normally when I build a form (3.0) I use .php but this guy seemed to have don…

---

## [Why my motion tweens look so jagged?](https://forum.kirupa.com/t/why-my-motion-tweens-look-so-jagged/286462)

<div class="topic-metadata">

**Author:** [@mov2046](https://forum.kirupa.com/u/mov2046)\
**Replies:** 0\
**Last updated:** [April 15, 2009, 8:30pm UTC](https://forum.kirupa.com/t/why-my-motion-tweens-look-so-jagged/286462 "2009-04-15T20:30:41Z")

</div>

Hi, I have been working on this banner ad using motion tweens (with scaling) for four objects, three road signs and a background. Sometimes it runs very smoothly, but most of the time, the four objects run in a very ja…

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

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