# programming

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

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

**Page:** 134

---

## [How to call a function in another function?](https://forum.kirupa.com/t/how-to-call-a-function-in-another-function/330426)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [January 19, 2013, 7:10pm UTC](https://forum.kirupa.com/t/how-to-call-a-function-in-another-function/330426 "2013-01-19T19:10:49Z")

</div>

Hi, I have the following code which I need to call it again and again. How can I create a function which can be called in another function. MainContainer.EHSSNav.Area.addEventListener(MouseEvent.CLICK,AreaClickHandl…

---

## [How to open a PDF file only using folder & file name?](https://forum.kirupa.com/t/how-to-open-a-pdf-file-only-using-folder-file-name/330425)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [January 19, 2013, 6:56pm UTC](https://forum.kirupa.com/t/how-to-open-a-pdf-file-only-using-folder-file-name/330425 "2013-01-19T18:56:57Z")

</div>

Hi, The following code is working fine. But I want to open the same file using short file path. I am keeping the folder (with all PDF files) in same folder where my index.html file exists. How to modify the following…

---

## [How to rotate MC continuously and stop it?](https://forum.kirupa.com/t/how-to-rotate-mc-continuously-and-stop-it/330424)

<div class="topic-metadata">

**Author:** [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Replies:** 0\
**Last updated:** [January 19, 2013, 11:00am UTC](https://forum.kirupa.com/t/how-to-rotate-mc-continuously-and-stop-it/330424 "2013-01-19T11:00:16Z")

</div>

How can I rotate an MC continuously and stop it using a button? MC.rotation += 1; I tried using the code above but it won't rotate it continuously. Then I tried searching the web,what I get is : MC.addEventListe…

---

## [Move Bitmap Horizontally Without Redrawing Every Step](https://forum.kirupa.com/t/move-bitmap-horizontally-without-redrawing-every-step/330423)

<div class="topic-metadata">

**Author:** [@pittsburghjoe](https://forum.kirupa.com/u/pittsburghjoe)\
**Replies:** 0\
**Last updated:** [January 18, 2013, 2:54pm UTC](https://forum.kirupa.com/t/move-bitmap-horizontally-without-redrawing-every-step/330423 "2013-01-18T14:54:39Z")

</div>

What's the best way to move an image across without making flash redraw every tiny movement? I'm getting choppy/lag with the simplest of animation you can think of ..600x400 project with an image of that size moving from…

---

## [Access to parent class variables](https://forum.kirupa.com/t/access-to-parent-class-variables/330422)

<div class="topic-metadata">

**Author:** [@Vito\_Lipari](https://forum.kirupa.com/u/Vito_Lipari)\
**Replies:** 0\
**Last updated:** [January 18, 2013, 1:44am UTC](https://forum.kirupa.com/t/access-to-parent-class-variables/330422 "2013-01-18T01:44:43Z")

</div>

\[COLOR=#333333\]\[FONT=Verdana\]Hi.\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[FONT=Verdana\]I have this situation:\[/FONT\]\[/COLOR\] \[COLOR=#333333\]\[FONT=Verdana\] public class BBB extends MovieClip{ var id : String; public functio…

---

## [Hiddenly preload multiple SWF files?](https://forum.kirupa.com/t/hiddenly-preload-multiple-swf-files/330419)

<div class="topic-metadata">

**Author:** [@Neuromance](https://forum.kirupa.com/u/Neuromance)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 5:21pm UTC](https://forum.kirupa.com/t/hiddenly-preload-multiple-swf-files/330419 "2013-01-17T17:21:22Z")

</div>

First of all, I want to clarify I'm a newbie with flash. I have started looking into it very recently, and I'm still a big noob in the subject, so PLEASE if you want to answer my question, use easy/understandeable instru…

---

## [Uploading and embedding fonts during runtime](https://forum.kirupa.com/t/uploading-and-embedding-fonts-during-runtime/330418)

<div class="topic-metadata">

**Author:** [@AlexLucas](https://forum.kirupa.com/u/AlexLucas)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 10:23am UTC](https://forum.kirupa.com/t/uploading-and-embedding-fonts-during-runtime/330418 "2013-01-17T10:23:07Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Good day.\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I'm stuck with the following issue:\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I have multiple fonts embedded into my application, but i…

---

## [Checking parent class or type](https://forum.kirupa.com/t/checking-parent-class-or-type/330416)

<div class="topic-metadata">

**Author:** [@Roman\_Ivanickij](https://forum.kirupa.com/u/Roman_Ivanickij)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 8:32am UTC](https://forum.kirupa.com/t/checking-parent-class-or-type/330416 "2013-01-17T08:32:02Z")

</div>

Hello I got a situation, where in my class i need to check parent class. I am trying that code inside class MenuItem public function addItem(item:MenuItem):void { if (item.parent is MenuItem) {code} //…

---

## [Resetting state in a keyframe?](https://forum.kirupa.com/t/resetting-state-in-a-keyframe/330415)

<div class="topic-metadata">

**Author:** [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 7:33am UTC](https://forum.kirupa.com/t/resetting-state-in-a-keyframe/330415 "2013-01-17T07:33:41Z")

</div>

In a keyframe that I created,there are multiple MCs, each one of them contains many frames. So when I clicked on them individually ,they changed frames. Is it possible to make a "reset button" so that the MCs back to t…

---

## [AS3 Character start posistion reset](https://forum.kirupa.com/t/as3-character-start-posistion-reset/330414)

<div class="topic-metadata">

**Author:** [@cluin14](https://forum.kirupa.com/u/cluin14)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 4:08am UTC](https://forum.kirupa.com/t/as3-character-start-posistion-reset/330414 "2013-01-17T04:08:22Z")

</div>

Hey there, so I'm working on an AS3 side scrolling game where essentially you have to get your character from point "A" to "B" then it jumps to a new frame to do it again just a different layout and enemies. The trouble …

---

## [Flash Registration Form with php and mysql integration using AS2](https://forum.kirupa.com/t/flash-registration-form-with-php-and-mysql-integration-using-as2/330412)

<div class="topic-metadata">

**Author:** [@bracelett](https://forum.kirupa.com/u/bracelett)\
**Replies:** 0\
**Last updated:** [January 17, 2013, 12:45am UTC](https://forum.kirupa.com/t/flash-registration-form-with-php-and-mysql-integration-using-as2/330412 "2013-01-17T00:45:05Z")

</div>

I created registration form layout in flash composed of first name, middle name, last name, date joined, last login date,country, state, city , email address(validation), password, comments section and uploading photos …

---

## [Falling objects Easing Effects in AS2](https://forum.kirupa.com/t/falling-objects-easing-effects-in-as2/330411)

<div class="topic-metadata">

**Author:** [@bracelett](https://forum.kirupa.com/u/bracelett)\
**Replies:** 0\
**Last updated:** [January 16, 2013, 5:25pm UTC](https://forum.kirupa.com/t/falling-objects-easing-effects-in-as2/330411 "2013-01-16T17:25:22Z")

</div>

How can I put to the object when it touches and press it will fall down with easing out effects in AS2? I converted the object into movieclip, so far what I did is when it click it the object disappear quickly, I want to…

---

## [Swapping instances in a symbol with code,is it possible?](https://forum.kirupa.com/t/swapping-instances-in-a-symbol-with-code-is-it-possible/330409)

<div class="topic-metadata">

**Author:** [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Replies:** 0\
**Last updated:** [January 16, 2013, 8:39am UTC](https://forum.kirupa.com/t/swapping-instances-in-a-symbol-with-code-is-it-possible/330409 "2013-01-16T08:39:24Z")

</div>

I have a movie clip called A that contains instance A1. Is it possible to swap to instance A2 using code? Thank you.

---

## [Help: HTML email creating unwanted breaks in Outlook 2007, 2010](https://forum.kirupa.com/t/help-html-email-creating-unwanted-breaks-in-outlook-2007-2010/330405)

<div class="topic-metadata">

**Author:** [@wes\_design](https://forum.kirupa.com/u/wes_design)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 9:16pm UTC](https://forum.kirupa.com/t/help-html-email-creating-unwanted-breaks-in-outlook-2007-2010/330405 "2013-01-15T21:16:56Z")

</div>

Hey All: I am currently doing some email blasts and I have noticed a small consistent problem where my emails are getting breaks when they reach a significant length. They get random breaks in the html. I have done all…

---

## [Using Xml in flash problems](https://forum.kirupa.com/t/using-xml-in-flash-problems/330403)

<div class="topic-metadata">

**Author:** [@Tyrone\_Leyland](https://forum.kirupa.com/u/Tyrone_Leyland)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 3:08pm UTC](https://forum.kirupa.com/t/using-xml-in-flash-problems/330403 "2013-01-15T15:08:23Z")

</div>

I am getting this error code : TypeError: Error #1006: value is not a function. at ProjectMain\_Scene5\_fla::MainTimeline/frame1() I am basically trying to load my xml file in flash and keep getting that error. My…

---

## [Flash UI Components](https://forum.kirupa.com/t/flash-ui-components/330402)

<div class="topic-metadata">

**Author:** [@flashnve](https://forum.kirupa.com/u/flashnve)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 12:58pm UTC](https://forum.kirupa.com/t/flash-ui-components/330402 "2013-01-15T12:58:01Z")

</div>

Hello All, I am still learning ActionScript 3.0 but i feel i am genuinely improving all the time. Anyhow, i need a little bit of help. I am building a small basic chat app. I have a button component, a text input comp…

---

## [NEED HELP! Php form submit redirect](https://forum.kirupa.com/t/need-help-php-form-submit-redirect/330400)

<div class="topic-metadata">

**Author:** [@aydeayem](https://forum.kirupa.com/u/aydeayem)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 8:49am UTC](https://forum.kirupa.com/t/need-help-php-form-submit-redirect/330400 "2013-01-15T08:49:26Z")

</div>

Hi, Im going insane. Im new at all this and basically i a php code for my form to send it to my email and then redirect to a thank you page and if any fields are blank an error page . heres my form code = \<form action…

---

## [FPS, Memory Usage, Time Elapse - Code optimization](https://forum.kirupa.com/t/fps-memory-usage-time-elapse-code-optimization/330399)

<div class="topic-metadata">

**Author:** [@BlueWallet](https://forum.kirupa.com/u/BlueWallet)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 4:39am UTC](https://forum.kirupa.com/t/fps-memory-usage-time-elapse-code-optimization/330399 "2013-01-15T04:39:12Z")

</div>

Greetings all, I am making a FPS counter, Memory Usage and Time elapse tool for myself to see what my SWF's are doing. Anyone see where I can improve it? Any helpful advice is appreciated. package { import flas…

---

## [Programming pixels/second deceleration of tween](https://forum.kirupa.com/t/programming-pixels-second-deceleration-of-tween/330397)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [January 14, 2013, 11:02pm UTC](https://forum.kirupa.com/t/programming-pixels-second-deceleration-of-tween/330397 "2013-01-14T23:02:03Z")

</div>

I have a simple project where squares move from one side of the stage to the other. I have to be able to slow them down at a constant rate, specifically in pixels/second (cm/s really, but I'm using a generic conversion r…

---

## [Extracting argument from array](https://forum.kirupa.com/t/extracting-argument-from-array/330395)

<div class="topic-metadata">

**Author:** [@chilliroom](https://forum.kirupa.com/u/chilliroom)\
**Replies:** 0\
**Last updated:** [January 14, 2013, 1:52pm UTC](https://forum.kirupa.com/t/extracting-argument-from-array/330395 "2013-01-14T13:52:13Z")

</div>

I have 4 arrows (up, down, left, right) and wish to activate only one whilst deactivating the rest. I have cast their instance names in an array & would like to pass one as an argument to a function (to activate). But ho…

---

## [Onclick replace div?](https://forum.kirupa.com/t/onclick-replace-div/330394)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [January 14, 2013, 1:30pm UTC](https://forum.kirupa.com/t/onclick-replace-div/330394 "2013-01-14T13:30:28Z")

</div>

Hi guys, I just wondering if any of the javascript wiz kids have a code for replacing one div of text with another when their corresponding links are clicked? Thanks if you can help!

---

## [Textbox Character Glitch](https://forum.kirupa.com/t/textbox-character-glitch/330393)

<div class="topic-metadata">

**Author:** [@TheOtherTedium](https://forum.kirupa.com/u/TheOtherTedium)\
**Replies:** 0\
**Last updated:** [January 14, 2013, 10:07am UTC](https://forum.kirupa.com/t/textbox-character-glitch/330393 "2013-01-14T10:07:20Z")

</div>

I don't know how common this glitch is, but it seemed to happen pretty easily, so... Anyway, when I was coding an input box, there was a point where it would only type certain letters in either uppercase or lowercase. If…

---

## [How to apply a condition that should check if the page is loaded or not?](https://forum.kirupa.com/t/how-to-apply-a-condition-that-should-check-if-the-page-is-loaded-or-not/330391)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [January 13, 2013, 6:22pm UTC](https://forum.kirupa.com/t/how-to-apply-a-condition-that-should-check-if-the-page-is-loaded-or-not/330391 "2013-01-13T18:22:12Z")

</div>

Hi, I have the following code which is working quite nice. But the problem is, it won't check whether the requested page is already loaded or not. It simply loads the page whenever the related buttons is pressed. Wha…

---

## [Please help on colliding MC](https://forum.kirupa.com/t/please-help-on-colliding-mc/330390)

<div class="topic-metadata">

**Author:** [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Replies:** 0\
**Last updated:** [January 13, 2013, 2:35pm UTC](https://forum.kirupa.com/t/please-help-on-colliding-mc/330390 "2013-01-13T14:35:02Z")

</div>

I wanted to create an android app using accelerometer in as3 based on the template. \*\*I have 2 MC : \*\* -ball (the red one) -balla (the green one) The accelerometer things are fine,but what I want is both of the balls…

---

## [Change an object's layer in 2D](https://forum.kirupa.com/t/change-an-objects-layer-in-2d/330389)

<div class="topic-metadata">

**Author:** [@DSlish](https://forum.kirupa.com/u/DSlish)\
**Replies:** 0\
**Last updated:** [January 13, 2013, 1:51am UTC](https://forum.kirupa.com/t/change-an-objects-layer-in-2d/330389 "2013-01-13T01:51:56Z")

</div>

When you add objects to the stage, they layer in the order that you place them. Is there a way in AS3 to send an ojbect backwards or to the back? Thanks!

---

## [Twitter php Problem](https://forum.kirupa.com/t/twitter-php-problem/330388)

<div class="topic-metadata">

**Author:** [@marvker](https://forum.kirupa.com/u/marvker)\
**Replies:** 0\
**Last updated:** [January 12, 2013, 6:45pm UTC](https://forum.kirupa.com/t/twitter-php-problem/330388 "2013-01-12T18:45:19Z")

</div>

Hi everyone, For a while I'have been looking for a solution for my problem with a twitter php file what used to work at first. I' found out that it's because my server doesn't support the old php anymore. So on the i…

---

## [Header and footer in Flash AS3](https://forum.kirupa.com/t/header-and-footer-in-flash-as3/330387)

<div class="topic-metadata">

**Author:** [@VillaRava](https://forum.kirupa.com/u/VillaRava)\
**Replies:** 0\
**Last updated:** [January 12, 2013, 5:58pm UTC](https://forum.kirupa.com/t/header-and-footer-in-flash-as3/330387 "2013-01-12T17:58:53Z")

</div>

\[FONT=Helvetica\]I've been trying to figure out how to do a header and a footer in Flash, but without success. The tutorials I have found are either of the mark or above my level as a Flash(CS5) and AS3 beginner.\[/FONT\] …

---

## [Mobile Auto Sizing on various phones issue! Please Help!](https://forum.kirupa.com/t/mobile-auto-sizing-on-various-phones-issue-please-help/330385)

<div class="topic-metadata">

**Author:** [@john\_wayne](https://forum.kirupa.com/u/john_wayne)\
**Replies:** 0\
**Last updated:** [January 12, 2013, 6:47am UTC](https://forum.kirupa.com/t/mobile-auto-sizing-on-various-phones-issue-please-help/330385 "2013-01-12T06:47:03Z")

</div>

Hello all \[smile\] just cant figure out what im doing wrong in my code. http://www.stagewest.com/astoneymobile/stoneymobile.html it wont automatically scale to all the different mobile sizes for some reason. Anyone …

---

## [Cross domain issue between AS3 and JSON](https://forum.kirupa.com/t/cross-domain-issue-between-as3-and-json/330384)

<div class="topic-metadata">

**Author:** [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)\
**Replies:** 0\
**Last updated:** [January 11, 2013, 8:56pm UTC](https://forum.kirupa.com/t/cross-domain-issue-between-as3-and-json/330384 "2013-01-11T20:56:31Z")

</div>

Hey all, A very quick question ... Why when I test my fla file do I get the result I want but when I either open the swf file or upload it to my website does it stop working? The URL Request is for the same website a…

---

## [Button sticking issue](https://forum.kirupa.com/t/button-sticking-issue/330375)

<div class="topic-metadata">

**Author:** [@fwof1976](https://forum.kirupa.com/u/fwof1976)\
**Replies:** 0\
**Last updated:** [January 10, 2013, 7:11pm UTC](https://forum.kirupa.com/t/button-sticking-issue/330375 "2013-01-10T19:11:53Z")

</div>

I have built a flash website. The problem I am having is that I can click home, and it goes there, I can click ABOUT US, and it goes there...but it wont work on any of the other pages. I am not sure what I am missing. …

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

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