# programming

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

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

**Page:** 801

---

## [\[CS4\] 3D rotation via AS resets pivot point?](https://forum.kirupa.com/t/cs4-3d-rotation-via-as-resets-pivot-point/289398)

<div class="topic-metadata">

**Author:** [@efos](https://forum.kirupa.com/u/efos)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 7:39pm UTC](https://forum.kirupa.com/t/cs4-3d-rotation-via-as-resets-pivot-point/289398 "2009-05-29T19:39:07Z")

</div>

Trying to make a gearshift. I've set the 3d rotation point of the head and shaft to the base of the shaft. But when I execute the following code: function frEvt(e:MouseEvent):void{ if (bDrag){ mcHead.rot…

---

## [Shared Library Symbol and AS3 Class Linkage](https://forum.kirupa.com/t/shared-library-symbol-and-as3-class-linkage/289395)

<div class="topic-metadata">

**Author:** [@DrZoop](https://forum.kirupa.com/u/DrZoop)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 7:25pm UTC](https://forum.kirupa.com/t/shared-library-symbol-and-as3-class-linkage/289395 "2009-05-29T19:25:58Z")

</div>

I have created a symbol that imports a movie clip from another FLA/SWF (MovieClip, Property, Import for Runtime Sharing). It imports all right, but, I would also like that imported MovieClip to have its own class and ha…

---

## [autoMoveObject to (x,y) coordinates instead of randomly](https://forum.kirupa.com/t/automoveobject-to-x-y-coordinates-instead-of-randomly/289393)

<div class="topic-metadata">

**Author:** [@almaline03](https://forum.kirupa.com/u/almaline03)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 6:52pm UTC](https://forum.kirupa.com/t/automoveobject-to-x-y-coordinates-instead-of-randomly/289393 "2009-05-29T18:52:23Z")

</div>

\[cop\]I have this function that moves the cursor automatically to random points. I want to know how I can make them move to 4 specific points (x,y coordinates) instead. I am assuming I need to create an array of the of…

---

## [Help with math](https://forum.kirupa.com/t/help-with-math/289392)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 6:44pm UTC](https://forum.kirupa.com/t/help-with-math/289392 "2009-05-29T18:44:07Z")

</div>

I am not too familiar with Actionscripts math capabilities, and searching forums hasnt helped either. Im trying to program a solver for a power function regression. I have the equation, i just need to figure how to pro…

---

## [Negative To Positive](https://forum.kirupa.com/t/negative-to-positive/289390)

<div class="topic-metadata">

**Author:** [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 6:20pm UTC](https://forum.kirupa.com/t/negative-to-positive/289390 "2009-05-29T18:20:20Z")

</div>

im doing a calculation where no matter what i want the outcome to be positive so if i get say -1.28 i want it to become 1.28. how can i do this?

---

## [Can't find missing font](https://forum.kirupa.com/t/cant-find-missing-font/289389)

<div class="topic-metadata">

**Author:** [@greetification](https://forum.kirupa.com/u/greetification)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 6:08pm UTC](https://forum.kirupa.com/t/cant-find-missing-font/289389 "2009-05-29T18:08:27Z")

</div>

Hi, I was hoping someone had a way to solve this: When I open one of my files i'm getting an error that flash can't find the font, I checked and I don't seem to even have that font, but more importantly i'm not sure wh…

---

## [UNLOAD swf file from nav button](https://forum.kirupa.com/t/unload-swf-file-from-nav-button/289386)

<div class="topic-metadata">

**Author:** [@nwglow](https://forum.kirupa.com/u/nwglow)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 5:55pm UTC](https://forum.kirupa.com/t/unload-swf-file-from-nav-button/289386 "2009-05-29T17:55:18Z")

</div>

I can load swf file from nav buttons. Gallery page is my default page. When I click about button \*\*I want gallery.swf to unload and about page to show up. \*\* Currently, gallery page is still in the background when I clic…

---

## [Flash XML Photogallery Links anyone? Little help?](https://forum.kirupa.com/t/flash-xml-photogallery-links-anyone-little-help/289381)

<div class="topic-metadata">

**Author:** [@fogtownlove](https://forum.kirupa.com/u/fogtownlove)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 5:17pm UTC](https://forum.kirupa.com/t/flash-xml-photogallery-links-anyone-little-help/289381 "2009-05-29T17:17:37Z")

</div>

Hey guys I am trying to figure out how to add hyperlinks in the captions of this gallery through XML. I enable the html button in the properties menu of the dynamic text field but it seems to brake the gallery and subseq…

---

## [What is \_loc used in games?](https://forum.kirupa.com/t/what-is--loc-used-in-games/289379)

<div class="topic-metadata">

**Author:** [@lordali](https://forum.kirupa.com/u/lordali)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 5:03pm UTC](https://forum.kirupa.com/t/what-is--loc-used-in-games/289379 "2009-05-29T17:03:02Z")

</div>

I have seen loc1,loc2 etc used in games. Whats the purpose of that? thanks

---

## [Library Items Exported for Actionscript in Externally Loaded SWF not Showing](https://forum.kirupa.com/t/library-items-exported-for-actionscript-in-externally-loaded-swf-not-showing/289378)

<div class="topic-metadata">

**Author:** [@stanmc](https://forum.kirupa.com/u/stanmc)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 4:58pm UTC](https://forum.kirupa.com/t/library-items-exported-for-actionscript-in-externally-loaded-swf-not-showing/289378 "2009-05-29T16:58:34Z")

</div>

Hopefully I explain this adequately. I have several SWF's (secondary) published that I want to load into a main (primary) SWF file when the corresponding button is released. I'm currently using loadMovie to load extern…

---

## [Flash Custom Product Builder Question](https://forum.kirupa.com/t/flash-custom-product-builder-question/289377)

<div class="topic-metadata">

**Author:** [@adam3000](https://forum.kirupa.com/u/adam3000)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 4:50pm UTC](https://forum.kirupa.com/t/flash-custom-product-builder-question/289377 "2009-05-29T16:50:04Z")

</div>

Flash Custom Product Builder Question I want to make a flash custom product builder. Anyone know of any tutorials to get me started / point me in the right direction: I've found some samples of what I'm trying to do …

---

## [setChildIndex problems](https://forum.kirupa.com/t/setchildindex-problems/289376)

<div class="topic-metadata">

**Author:** [@icekomo](https://forum.kirupa.com/u/icekomo)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 4:32pm UTC](https://forum.kirupa.com/t/setchildindex-problems/289376 "2009-05-29T16:32:59Z")

</div>

Hey all, I have a series of buttons that are calling in dynamic movie clips. Here is a sample of 1 of those buttons //Puts the movie clip on the stage var resrV:scene1 = new scene1(); stage.addChild(resrV); resrV.x = 4…

---

## [\[AS2\] Flash video Problem](https://forum.kirupa.com/t/as2-flash-video-problem/289375)

<div class="topic-metadata">

**Author:** [@yorren](https://forum.kirupa.com/u/yorren)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 4:05pm UTC](https://forum.kirupa.com/t/as2-flash-video-problem/289375 "2009-05-29T16:05:04Z")

</div>

hi guys, I kinda need your help :hair: I just make a website www.garudadidadaku.com but I got a problem with the movie trailer that I attached on the main page. the problem is... if you go to http://www.garudadidadak…

---

## [Incorporate ESCAPE key into fullscreen code](https://forum.kirupa.com/t/incorporate-escape-key-into-fullscreen-code/289374)

<div class="topic-metadata">

**Author:** [@jodi](https://forum.kirupa.com/u/jodi)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 3:27pm UTC](https://forum.kirupa.com/t/incorporate-escape-key-into-fullscreen-code/289374 "2009-05-29T15:27:09Z")

</div>

hello, all i have a nice piece of code to set the fullscreen with dynamic text formatting (below) what i am trying to do is add in a key event listener for the escape key, so that if the user hits esc instead of the …

---

## [Tower Defense - Shooting](https://forum.kirupa.com/t/tower-defense-shooting/289373)

<div class="topic-metadata">

**Author:** [@dewey](https://forum.kirupa.com/u/dewey)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 3:20pm UTC](https://forum.kirupa.com/t/tower-defense-shooting/289373 "2009-05-29T15:20:12Z")

</div>

Hey Gang, I'm having a ton of issues at the moment trying to figure out how to get the firing done for my Tower Defense game. I've been looking at 3 tutorials for the most part... Taking pieces of each to try and bui…

---

## [Tilting Flash Object, possible?](https://forum.kirupa.com/t/tilting-flash-object-possible/289369)

<div class="topic-metadata">

**Author:** [@Kirbyprime](https://forum.kirupa.com/u/Kirbyprime)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 2:40pm UTC](https://forum.kirupa.com/t/tilting-flash-object-possible/289369 "2009-05-29T14:40:56Z")

</div>

I apologize beforehand but this probably isn't directly related to flash. However I'm not sure exactly which front-end code would deal with this and thought flash developers might know something about it. Is it possibl…

---

## [Third party local shared object](https://forum.kirupa.com/t/third-party-local-shared-object/289368)

<div class="topic-metadata">

**Author:** [@mashu](https://forum.kirupa.com/u/mashu)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 1:45pm UTC](https://forum.kirupa.com/t/third-party-local-shared-object/289368 "2009-05-29T13:45:58Z")

</div>

Every one speaks about it but seems no one explains how to use it. I need to build a flash banner that presents some products and I need that banner to remember the last product that was clicked by a visitor in any web…

---

## [Flash Compilation](https://forum.kirupa.com/t/flash-compilation/289365)

<div class="topic-metadata">

**Author:** [@jcbradley](https://forum.kirupa.com/u/jcbradley)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 11:51am UTC](https://forum.kirupa.com/t/flash-compilation/289365 "2009-05-29T11:51:54Z")

</div>

Hi, I download the flash CS4 trial, and started to play with it. When I do create a new "Flash file (AS3)", the script will works only until saving the file. For example, a simple graphic symbol, and made motion twe…

---

## [Create Family Tree](https://forum.kirupa.com/t/create-family-tree/289362)

<div class="topic-metadata">

**Author:** [@rupali24](https://forum.kirupa.com/u/rupali24)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 11:06am UTC](https://forum.kirupa.com/t/create-family-tree/289362 "2009-05-29T11:06:20Z")

</div>

Does anyone know how to create family tree. Reference of http://www.geni.com Anybody knows solution for this please help me!!!

---

## [Overlapping graphics](https://forum.kirupa.com/t/overlapping-graphics/289361)

<div class="topic-metadata">

**Author:** [@Deborah](https://forum.kirupa.com/u/Deborah)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 11:01am UTC](https://forum.kirupa.com/t/overlapping-graphics/289361 "2009-05-29T11:01:18Z")

</div>

Hi, This code draws a template example. //charmedV2 var charmedV2:Sprite = new Sprite(); with (charmedV2.graphics) { lineStyle();//removes line beginFill(0xd6b2d4, 1); drawRect(0,0,239,41);//header …

---

## [\[fl8 as2\] thought I'd put this out one more time- no one ansrd it yet](https://forum.kirupa.com/t/fl8-as2-thought-id-put-this-out-one-more-time-no-one-ansrd-it-yet/289356)

<div class="topic-metadata">

**Author:** [@proeliumfessus](https://forum.kirupa.com/u/proeliumfessus)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 9:56am UTC](https://forum.kirupa.com/t/fl8-as2-thought-id-put-this-out-one-more-time-no-one-ansrd-it-yet/289356 "2009-05-29T09:56:00Z")

</div>

I know I have to have a serverside script to interact with a sql database efficiently... but here's my question: I prefer (of course) the user interface I can achieve with flash to anything I could do in php... so her…

---

## [Question on image uploading](https://forum.kirupa.com/t/question-on-image-uploading/289354)

<div class="topic-metadata">

**Author:** [@cRoss05](https://forum.kirupa.com/u/cRoss05)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 9:07am UTC](https://forum.kirupa.com/t/question-on-image-uploading/289354 "2009-05-29T09:07:25Z")

</div>

Why is it image is not uploading when im running on swf version, but image uploading works when im running the exe version of the flash project? And how can i add a progress bar to check if the image is uploading or n…

---

## [Loading external text file in htmlText](https://forum.kirupa.com/t/loading-external-text-file-in-htmltext/289353)

<div class="topic-metadata">

**Author:** [@rav3](https://forum.kirupa.com/u/rav3)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 9:01am UTC](https://forum.kirupa.com/t/loading-external-text-file-in-htmltext/289353 "2009-05-29T09:01:07Z")

</div>

Hi, i have an external txt file that i wanna display as a htmlText in flash. i have the following code. var rhetoric:TextField = this.createTextField("rhetoric", this.getNextHighestDepth(), 0, 0, 400, 200); var r…

---

## [Detecting keyboard presses on the stage from an external class?](https://forum.kirupa.com/t/detecting-keyboard-presses-on-the-stage-from-an-external-class/289348)

<div class="topic-metadata">

**Author:** [@Vathian](https://forum.kirupa.com/u/Vathian)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 7:24am UTC](https://forum.kirupa.com/t/detecting-keyboard-presses-on-the-stage-from-an-external-class/289348 "2009-05-29T07:24:51Z")

</div>

Hello there! I am working on a small section of my game and am attempting to detect key presses from an external class but I cannot get it to work. This code worked just fine when within the document class but now it's u…

---

## [Flash drawing by pencil automatically](https://forum.kirupa.com/t/flash-drawing-by-pencil-automatically/289346)

<div class="topic-metadata">

**Author:** [@almaline03](https://forum.kirupa.com/u/almaline03)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 6:43am UTC](https://forum.kirupa.com/t/flash-drawing-by-pencil-automatically/289346 "2009-05-29T06:43:41Z")

</div>

So I am using this tutorial: http://twshot.com/?H9C But I am trying to accomplish the following: • Animate the pencil within the timeline to start drawing by itself. • Allow a user to interfere with the animation(auto…

---

## [Anyone have or know of a good library for advanced string manipulation?](https://forum.kirupa.com/t/anyone-have-or-know-of-a-good-library-for-advanced-string-manipulation/289339)

<div class="topic-metadata">

**Author:** [@8bitninja](https://forum.kirupa.com/u/8bitninja)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 4:28am UTC](https://forum.kirupa.com/t/anyone-have-or-know-of-a-good-library-for-advanced-string-manipulation/289339 "2009-05-29T04:28:26Z")

</div>

I really like the string.Format() method and the StringBuilder class in C# quite a bit. I sucks AS3 isn't as robust (yet, hopefully) with regard to string manipulation. Consider the following in C# decimal money =…

---

## [Traceroute function in AS3?](https://forum.kirupa.com/t/traceroute-function-in-as3/289337)

<div class="topic-metadata">

**Author:** [@RichSad](https://forum.kirupa.com/u/RichSad)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 3:36am UTC](https://forum.kirupa.com/t/traceroute-function-in-as3/289337 "2009-05-29T03:36:18Z")

</div>

Hi. I searched the web and this forum and so far haven't found exactly what I am looking for. I am looking for either example AS3 code or an as3 library for performing a traceroute from AS3. I am assuming this can be don…

---

## [A Tremendously Annoying Z-Index Problem](https://forum.kirupa.com/t/a-tremendously-annoying-z-index-problem/289335)

<div class="topic-metadata">

**Author:** [@thegrrraue](https://forum.kirupa.com/u/thegrrraue)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 2:43am UTC](https://forum.kirupa.com/t/a-tremendously-annoying-z-index-problem/289335 "2009-05-29T02:43:31Z")

</div>

I have a site I've worked on, and there is just ONE little problem left on this page: http://www.madatoms.com/site/writer/most-viewed/all/P0/ If you try to click on Writers and Artists, you can only click on the part…

---

## [XML auto crossfading gallery..stop looping after one round?](https://forum.kirupa.com/t/xml-auto-crossfading-gallery-stop-looping-after-one-round/289334)

<div class="topic-metadata">

**Author:** [@max999](https://forum.kirupa.com/u/max999)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 2:42am UTC](https://forum.kirupa.com/t/xml-auto-crossfading-gallery-stop-looping-after-one-round/289334 "2009-05-29T02:42:54Z")

</div>

I have this code for an auto slideshow(supposed to be with thumbs but i am not using them), how do i stop from looping after all the pics run once? Thanks a lot Code: var delay:Number = 2500; var init:Boolean = false; v…

---

## [Button overlap problem](https://forum.kirupa.com/t/button-overlap-problem/289328)

<div class="topic-metadata">

**Author:** [@ralphiedee](https://forum.kirupa.com/u/ralphiedee)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 2:04am UTC](https://forum.kirupa.com/t/button-overlap-problem/289328 "2009-05-29T02:04:21Z")

</div>

I have a set of navigation buttons that go to frames and open different .swfs The Commercial button and Music Video button are two movieclips Commercial clip has 5 buttons inside the clip that stretch out 600 pxls acros…

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

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