# programming

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

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

**Page:** 415

---

## [FPS loss with fade](https://forum.kirupa.com/t/fps-loss-with-fade/314050)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 8:36pm UTC](https://forum.kirupa.com/t/fps-loss-with-fade/314050 "2010-09-16T20:36:33Z")

</div>

Hey, In my game I am making, when the character dies, I call a MC with a 1.5 second fade. It goes from alpha 1 to alpha 0 within the 1.5 seconds. It drops the FPS drastically from 40 FPS to average of 15 FPS. Any id…

---

## [Getting objects to move with Hero](https://forum.kirupa.com/t/getting-objects-to-move-with-hero/314049)

<div class="topic-metadata">

**Author:** [@Rifts1103](https://forum.kirupa.com/u/Rifts1103)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 8:01pm UTC](https://forum.kirupa.com/t/getting-objects-to-move-with-hero/314049 "2010-09-16T20:01:52Z")

</div>

Sorry for all the posts I'm just learning flash and learning fast! here is my question my hero moves around the screen but I need to get the "scores" to move with him here is the swf you can actually see how he run…

---

## [Strange Question (Touch Screen)](https://forum.kirupa.com/t/strange-question-touch-screen/314048)

<div class="topic-metadata">

**Author:** [@Rifts1103](https://forum.kirupa.com/u/Rifts1103)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 7:25pm UTC](https://forum.kirupa.com/t/strange-question-touch-screen/314048 "2010-09-16T19:25:46Z")

</div>

Hey everyone, I have a kind of strange question I have a touch screen computer and I want to make a little flash game for it. picture this: the game screen will be like \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ | …

---

## [Random Motion tutorial question](https://forum.kirupa.com/t/random-motion-tutorial-question/314046)

<div class="topic-metadata">

**Author:** [@ni3wi3m](https://forum.kirupa.com/u/ni3wi3m)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 6:19pm UTC](https://forum.kirupa.com/t/random-motion-tutorial-question/314046 "2010-09-16T18:19:45Z")

</div>

Hi. Here is the link to this tutorial I have a question about: http://www.kirupa.com/developer/actionscript/random\_motion.htm As you can see objects (flowers) in this example are moving only in straight lines. I…

---

## [Timers + Strings strange problem](https://forum.kirupa.com/t/timers-strings-strange-problem/314045)

<div class="topic-metadata">

**Author:** [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:58pm UTC](https://forum.kirupa.com/t/timers-strings-strange-problem/314045 "2010-09-16T17:58:13Z")

</div>

Ok so I'm facing loads of challenges at the moment. I'm building a java TCP server and flash game client together. It's going well. But I have a strange problem. All works fine on my MacBookPro I can run many instances…

---

## [\[CS3\] Help needed urgently with sound loops!](https://forum.kirupa.com/t/cs3-help-needed-urgently-with-sound-loops/314044)

<div class="topic-metadata">

**Author:** [@mgmrea](https://forum.kirupa.com/u/mgmrea)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:50pm UTC](https://forum.kirupa.com/t/cs3-help-needed-urgently-with-sound-loops/314044 "2010-09-16T17:50:10Z")

</div>

I have spent the last four hours trying to work this out, using a number of different tutorials and always running into roadblocks in one form or another. I'm using Flash CS3 with Action Script 2.0 enabled. Essentia…

---

## [CS5 acting terribly weird](https://forum.kirupa.com/t/cs5-acting-terribly-weird/314043)

<div class="topic-metadata">

**Author:** [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:50pm UTC](https://forum.kirupa.com/t/cs5-acting-terribly-weird/314043 "2010-09-16T17:50:02Z")

</div>

Whenever I select the rectangle tool, the corner radius automatically tries to shrink itself until it looks like a star with 4 vertexes. So if I 'ninja' a rectangle in a split second it looks like a rounded rectangle, bu…

---

## [How do I get component assets to appear in the symbol library of my main fla file?](https://forum.kirupa.com/t/how-do-i-get-component-assets-to-appear-in-the-symbol-library-of-my-main-fla-file/314042)

<div class="topic-metadata">

**Author:** [@bencam](https://forum.kirupa.com/u/bencam)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:47pm UTC](https://forum.kirupa.com/t/how-do-i-get-component-assets-to-appear-in-the-symbol-library-of-my-main-fla-file/314042 "2010-09-16T17:47:54Z")

</div>

Hi, I have built a component, but the assets do not appear in the symbol library of the destination fla when I drag the component to the stage. This is fine, except that I have embedded a font in the component. To ensu…

---

## [Understanding AS2 \> AS3 Programming Habbits](https://forum.kirupa.com/t/understanding-as2-as3-programming-habbits/314041)

<div class="topic-metadata">

**Author:** [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:39pm UTC](https://forum.kirupa.com/t/understanding-as2-as3-programming-habbits/314041 "2010-09-16T17:39:37Z")

</div>

Hello, I recently purchased Flash CS5 and I want to get into AS3, but I have a hard time trying to migrate my AS2 knowledge over to AS3. Using AS2, I've always used a container to contain all my MC, but now I have no i…

---

## [How to getURL on stop instead of looping](https://forum.kirupa.com/t/how-to-geturl-on-stop-instead-of-looping/314038)

<div class="topic-metadata">

**Author:** [@peterindublin](https://forum.kirupa.com/u/peterindublin)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 4:14pm UTC](https://forum.kirupa.com/t/how-to-geturl-on-stop-instead-of-looping/314038 "2010-09-16T16:14:09Z")

</div>

\[COLOR=#808080\]\*Does Anybody know how should look my code if I want to redirect my page to different url, when my intro stops playing? Video is located externally, not in \*fla file, so I can't use getUrl code in the last…

---

## [Sending php - For loop problem](https://forum.kirupa.com/t/sending-php-for-loop-problem/314037)

<div class="topic-metadata">

**Author:** [@volkamin](https://forum.kirupa.com/u/volkamin)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 3:35pm UTC](https://forum.kirupa.com/t/sending-php-for-loop-problem/314037 "2010-09-16T15:35:40Z")

</div>

var request:URLRequest=new URLRequest("/alici.asp"); request.method=URLRequestMethod.POST; var gidenDegiskenler:URLVariables = new URLVariables(); for(var i:number=0;i\<=10;i++){ gidenDegiskenler.(no+i)="example"; } re…

---

## [Storing data best practice](https://forum.kirupa.com/t/storing-data-best-practice/314032)

<div class="topic-metadata">

**Author:** [@zeeto](https://forum.kirupa.com/u/zeeto)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 3:01pm UTC](https://forum.kirupa.com/t/storing-data-best-practice/314032 "2010-09-16T15:01:49Z")

</div>

I hope this is not another silly question, if so please let me know, I'll try to deal with it \[smile\] I'm converting from AS2 to AS3 and on that ocasion from timeline coding to class coding. I want to build a project, …

---

## [Moving function to external .as file](https://forum.kirupa.com/t/moving-function-to-external-as-file/314027)

<div class="topic-metadata">

**Author:** [@zeeto](https://forum.kirupa.com/u/zeeto)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 11:58am UTC](https://forum.kirupa.com/t/moving-function-to-external-as-file/314027 "2010-09-16T11:58:38Z")

</div>

Hello. I've started to learn class based AS3, and I came across the problem that I can't find the solution for. My current code: package { import flash.display.MovieClip; import flash.display.StageAlign; impo…

---

## ["localToGlobal" and non-stage items](https://forum.kirupa.com/t/localtoglobal-and-non-stage-items/314026)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 11:57am UTC](https://forum.kirupa.com/t/localtoglobal-and-non-stage-items/314026 "2010-09-16T11:57:17Z")

</div>

I'm not sure why I haven't run into this before, but I was working a bit with "localToGlobal" and realized that it even works for items that are not on the stage: import flash.display.Sprite; import flash.geom.Point; …

---

## [Multi level menu problem](https://forum.kirupa.com/t/multi-level-menu-problem/314025)

<div class="topic-metadata">

**Author:** [@TCDown](https://forum.kirupa.com/u/TCDown)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 11:45am UTC](https://forum.kirupa.com/t/multi-level-menu-problem/314025 "2010-09-16T11:45:53Z")

</div>

Hi there I have been working on creating a menu that will be driven by an Articulate presentation. I have used senocular's XML-Driven Drop-Down-Menu tutorial (THANKS FOR THE TUT BTW) as the base and adapted it to read …

---

## [Different behaviour](https://forum.kirupa.com/t/different-behaviour/314022)

<div class="topic-metadata">

**Author:** [@IlTimido](https://forum.kirupa.com/u/IlTimido)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 10:44am UTC](https://forum.kirupa.com/t/different-behaviour/314022 "2010-09-16T10:44:19Z")

</div>

Hi, Today while debugging an application I found a really strange behaviour. Here it is what I have found: Create a new as3 FLA and type this in the first frame: var p:Object = new Object(); p\["052"\] = "052"; p\["002"…

---

## [Finally moving to AS3](https://forum.kirupa.com/t/finally-moving-to-as3/314020)

<div class="topic-metadata">

**Author:** [@Michael\_Knight](https://forum.kirupa.com/u/Michael_Knight)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 10:13am UTC](https://forum.kirupa.com/t/finally-moving-to-as3/314020 "2010-09-16T10:13:58Z")

</div>

the thing is my mind still thinks like as2 :diss:, i did some test it works but somehow i know theres somthing wrong on what i did. in this sample that i created i just simply loading 3 different colors all of them are e…

---

## [\[CS3+4, AS2\] Scrolling thumbnail gallery](https://forum.kirupa.com/t/cs3-4-as2-scrolling-thumbnail-gallery/314019)

<div class="topic-metadata">

**Author:** [@a2c7](https://forum.kirupa.com/u/a2c7)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 9:27am UTC](https://forum.kirupa.com/t/cs3-4-as2-scrolling-thumbnail-gallery/314019 "2010-09-16T09:27:32Z")

</div>

Hey, I'm not an expert with Flash - all I know how to do is by having to do it, I've never sat down and learnt flash from the basics so I realise a lot of my knowledge and logic is probably missing. I've created two do…

---

## [Send xml to Flex app with AMF](https://forum.kirupa.com/t/send-xml-to-flex-app-with-amf/314017)

<div class="topic-metadata">

**Author:** [@yung](https://forum.kirupa.com/u/yung)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 7:32am UTC](https://forum.kirupa.com/t/send-xml-to-flex-app-with-amf/314017 "2010-09-16T07:32:48Z")

</div>

Hi!, we need to send a XML file to our Flex client, and we decided to do with AMF instead of URLLoader/URLRequest because with these functions the xml file is stored in the "Temp" folder of th browser, and for security r…

---

## [Calling an object from external to root?](https://forum.kirupa.com/t/calling-an-object-from-external-to-root/314016)

<div class="topic-metadata">

**Author:** [@Rifts1103](https://forum.kirupa.com/u/Rifts1103)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 7:19am UTC](https://forum.kirupa.com/t/calling-an-object-from-external-to-root/314016 "2010-09-16T07:19:35Z")

</div>

Hey all I'm pretty new to AS3 I was wondering how you would do this. I have my main fla and then I have a actionscript named bullet.as in the bullet.as I create a bullet using "this" throughout the script now how wou…

---

## [AS3 event slider problem within a class](https://forum.kirupa.com/t/as3-event-slider-problem-within-a-class/314015)

<div class="topic-metadata">

**Author:** [@LordScruffo](https://forum.kirupa.com/u/LordScruffo)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 6:08am UTC](https://forum.kirupa.com/t/as3-event-slider-problem-within-a-class/314015 "2010-09-16T06:08:47Z")

</div>

Hi, I've got this code inside a package, and it's not working... i get nothing. it seems to allow me to move movieclips around, but not change the value of the slider. or change the value of text fields. what…

---

## [Destroy the object](https://forum.kirupa.com/t/destroy-the-object/314014)

<div class="topic-metadata">

**Author:** [@foryou\_sandeep](https://forum.kirupa.com/u/foryou_sandeep)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 5:37am UTC](https://forum.kirupa.com/t/destroy-the-object/314014 "2010-09-16T05:37:32Z")

</div>

I have created an enemy object from document class. if my enemy score becomes zero, the enemy must get removed. Is there any way to remove that object by destroy the object from document class?.

---

## [Removing children individually](https://forum.kirupa.com/t/removing-children-individually/314011)

<div class="topic-metadata">

**Author:** [@inkSheep](https://forum.kirupa.com/u/inkSheep)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 2:50am UTC](https://forum.kirupa.com/t/removing-children-individually/314011 "2010-09-16T02:50:30Z")

</div>

Hi! I’ve been sitting with this code for way too long now and need some new perspective to help. Watch out for a huuuge lump of code below :diss: I’m trying to make an animation that with a few bouncy balls that on co…

---

## [SWF link not working in HTML](https://forum.kirupa.com/t/swf-link-not-working-in-html/314008)

<div class="topic-metadata">

**Author:** [@davis\_1114](https://forum.kirupa.com/u/davis_1114)\
**Replies:** 0\
**Last updated:** [September 16, 2010, 12:48am UTC](https://forum.kirupa.com/t/swf-link-not-working-in-html/314008 "2010-09-16T00:48:10Z")

</div>

I know this has been an issue for a lot of people in the past, but I am looking for a fresh answer. I created 7 SWF files and put them each into their own html file. Links function in my Home.html but the swf does not wa…

---

## [Help with removing a displayObject](https://forum.kirupa.com/t/help-with-removing-a-displayobject/314003)

<div class="topic-metadata">

**Author:** [@acerbist](https://forum.kirupa.com/u/acerbist)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 9:39pm UTC](https://forum.kirupa.com/t/help-with-removing-a-displayobject/314003 "2010-09-15T21:39:33Z")

</div>

I need help badly, I've tried to google this several times with no luck. I'm loading in an external swf with the code below (which works great), but occasionally I need to clear out "gameHolder" with a call of "removeC…

---

## [Custom Cursor Blocks RollOver and MouseClick Events for Other Buttons and MovieClips](https://forum.kirupa.com/t/custom-cursor-blocks-rollover-and-mouseclick-events-for-other-buttons-and-movieclips/314001)

<div class="topic-metadata">

**Author:** [@walker6o9](https://forum.kirupa.com/u/walker6o9)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 8:51pm UTC](https://forum.kirupa.com/t/custom-cursor-blocks-rollover-and-mouseclick-events-for-other-buttons-and-movieclips/314001 "2010-09-15T20:51:54Z")

</div>

I need to hide my mouse and have a bullseye movie clip as a custom cursor. The problem is, I also need to click on things, and the code that I found on forums to create a custom cursor blocks the mouse from clicking on a…

---

## [Casting string to number doesn't work!](https://forum.kirupa.com/t/casting-string-to-number-doesnt-work/313999)

<div class="topic-metadata">

**Author:** [@Bojan](https://forum.kirupa.com/u/Bojan)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 8:39pm UTC](https://forum.kirupa.com/t/casting-string-to-number-doesnt-work/313999 "2010-09-15T20:39:24Z")

</div>

\[FONT=Calibri\]Hi,\[/FONT\] \[FONT=Calibri\]I have Input text field on Scene with instance name number\_txt.\[/FONT\] \[FONT=Calibri\]This example throws NaN in otput window.\[/FONT\] \[FONT=Calibri\]Why?\[/FONT\] \[FONT=Calibri\]…

---

## [SWF 100% of window size](https://forum.kirupa.com/t/swf-100-of-window-size/313998)

<div class="topic-metadata">

**Author:** [@vivefree](https://forum.kirupa.com/u/vivefree)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 8:38pm UTC](https://forum.kirupa.com/t/swf-100-of-window-size/313998 "2010-09-15T20:38:51Z")

</div>

I want my SWF file to fill the window. I set the height and width to 100% and the scale param to "noscale". It looks great except that when I resize the window vertically, the contents of the SWF file center vertically…

---

## [(HELP!) 360-Degree Projectile Firing](https://forum.kirupa.com/t/help-360-degree-projectile-firing/313996)

<div class="topic-metadata">

**Author:** [@Nightshade4051](https://forum.kirupa.com/u/Nightshade4051)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 8:07pm UTC](https://forum.kirupa.com/t/help-360-degree-projectile-firing/313996 "2010-09-15T20:07:01Z")

</div>

Hi! This is my first week of learning Flash and ActionScript, and because I don't have a good ActionScript book yet, I've been reading several basic Flash game programming tutorials online and doing my best to understand…

---

## [Embedding bold font in separate text field not working, please help -](https://forum.kirupa.com/t/embedding-bold-font-in-separate-text-field-not-working-please-help/313995)

<div class="topic-metadata">

**Author:** [@sethwb](https://forum.kirupa.com/u/sethwb)\
**Replies:** 0\
**Last updated:** [September 15, 2010, 7:00pm UTC](https://forum.kirupa.com/t/embedding-bold-font-in-separate-text-field-not-working-please-help/313995 "2010-09-15T19:00:39Z")

</div>

Using: -Adobe Flash IDE (CS3) -AS3 First off let me say I did try creating an extra text field off of the main stage set to Bold, and it's Verdana so I'm not exactly "selecting" a second font file all together to be em…

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

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