# programming

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

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

**Page:** 187

---

## [AS3 N00B help! :(](https://forum.kirupa.com/t/as3-n00b-help/327467)

<div class="topic-metadata">

**Author:** [@martinnitus](https://forum.kirupa.com/u/martinnitus)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 6:32pm UTC](https://forum.kirupa.com/t/as3-n00b-help/327467 "2012-03-02T18:32:08Z")

</div>

Okay so I'm using wiiFlash with Adobe Flash Professional. On Keyframe One I want interaction with the wiimote, but on Keyframe Two and onwards there will be no further interaction. Here is my code: Keyframe One: s…

---

## [AS3 internal code to external](https://forum.kirupa.com/t/as3-internal-code-to-external/327465)

<div class="topic-metadata">

**Author:** [@Elaine\_Powell](https://forum.kirupa.com/u/Elaine_Powell)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 5:22pm UTC](https://forum.kirupa.com/t/as3-internal-code-to-external/327465 "2012-03-02T17:22:52Z")

</div>

I've used kirupa.com as a resource for several years. You all have been so much help. I've got a project that I've been avoiding because it's something I've never done before. I have a concept game that I put together …

---

## [Trying to send a session variable to javascript](https://forum.kirupa.com/t/trying-to-send-a-session-variable-to-javascript/327464)

<div class="topic-metadata">

**Author:** [@andrewlong](https://forum.kirupa.com/u/andrewlong)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 2:28pm UTC](https://forum.kirupa.com/t/trying-to-send-a-session-variable-to-javascript/327464 "2012-03-02T14:28:38Z")

</div>

Ideally, I would like to send a session variable to javascript. I figured I would do something like this: echo("\<script type='text/javascript'\>var id=".$\_SESSION\['id'\].";alert(id);\</script\>"; On the page the php sc…

---

## [Back button as like web browser back button in flash movie](https://forum.kirupa.com/t/back-button-as-like-web-browser-back-button-in-flash-movie/327462)

<div class="topic-metadata">

**Author:** [@biswacflash](https://forum.kirupa.com/u/biswacflash)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 12:35pm UTC](https://forum.kirupa.com/t/back-button-as-like-web-browser-back-button-in-flash-movie/327462 "2012-03-02T12:35:38Z")

</div>

Trying to create a back button which should be like web browser back button. I have a Flash page with several buttons so that every button has a different route. If I can place a back button over there then the user ca…

---

## [I need help reflecting movieclips](https://forum.kirupa.com/t/i-need-help-reflecting-movieclips/327461)

<div class="topic-metadata">

**Author:** [@GentleMad](https://forum.kirupa.com/u/GentleMad)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 12:02pm UTC](https://forum.kirupa.com/t/i-need-help-reflecting-movieclips/327461 "2012-03-02T12:02:51Z")

</div>

Hello. I'm very new to AS3 and I decided to try and make a game.In this game I'm making the level on one side of the stage and I want it to reflect itself on the otherside of the stage. I guess I can just move all the pl…

---

## [Deep linking help](https://forum.kirupa.com/t/deep-linking-help/327459)

<div class="topic-metadata">

**Author:** [@raman\_arena](https://forum.kirupa.com/u/raman_arena)\
**Replies:** 0\
**Last updated:** [March 2, 2012, 10:32am UTC](https://forum.kirupa.com/t/deep-linking-help/327459 "2012-03-02T10:32:17Z")

</div>

Dear All. I am loading swf file on prev and next in my image gallery. its an xml driven gallery.. its working fine. Now i want when i click on next and prev button it loads the swf but with different url. I came …

---

## [Animated android lockscreen Problems :)](https://forum.kirupa.com/t/animated-android-lockscreen-problems/327454)

<div class="topic-metadata">

**Author:** [@Moreton](https://forum.kirupa.com/u/Moreton)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 9:46pm UTC](https://forum.kirupa.com/t/animated-android-lockscreen-problems/327454 "2012-03-01T21:46:56Z")

</div>

Hello i'm fairly new in action script and want to develop an android animated lock screen which can be downloaded from the market place. What i need to know is: - whether this is actually possible. :S -What code is neede…

---

## [Converting keypress into a string of only numbers](https://forum.kirupa.com/t/converting-keypress-into-a-string-of-only-numbers/327453)

<div class="topic-metadata">

**Author:** [@xCiter](https://forum.kirupa.com/u/xCiter)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 8:43pm UTC](https://forum.kirupa.com/t/converting-keypress-into-a-string-of-only-numbers/327453 "2012-03-01T20:43:52Z")

</div>

Ok so after solving my last problem, i have a new one which i've tried to work on but have not yet succeeded \[frowning\] What i want to do is to allow a user to input a time of when the alarm should sound. However, whe…

---

## [Overriding event listeners](https://forum.kirupa.com/t/overriding-event-listeners/327451)

<div class="topic-metadata">

**Author:** [@tpann](https://forum.kirupa.com/u/tpann)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 6:01pm UTC](https://forum.kirupa.com/t/overriding-event-listeners/327451 "2012-03-01T18:01:21Z")

</div>

I am working on a Flash demo (all AS3) that requires a scrollbar. I wanted to create my own so on searching I found this Kirupa tutorial. I learned it an incorporated everything (also went well beyond) and the end produc…

---

## [Flash CS3 AS2 - When button clicked, previous screen can still be seen under new one](https://forum.kirupa.com/t/flash-cs3-as2-when-button-clicked-previous-screen-can-still-be-seen-under-new-one/327449)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 1:37pm UTC](https://forum.kirupa.com/t/flash-cs3-as2-when-button-clicked-previous-screen-can-still-be-seen-under-new-one/327449 "2012-03-01T13:37:16Z")

</div>

I am a novice to Flash and AS2. I am creating a website for an art gallery. It has menu buttons at the top. The buttons got and play various information or galleries. However when I click on the buttons the info is displ…

---

## [AS3 DisplayObject Container matching all elements with addChild() on criteria](https://forum.kirupa.com/t/as3-displayobject-container-matching-all-elements-with-addchild-on-criteria/327448)

<div class="topic-metadata">

**Author:** [@Alex\_Roche](https://forum.kirupa.com/u/Alex_Roche)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 1:25pm UTC](https://forum.kirupa.com/t/as3-displayobject-container-matching-all-elements-with-addchild-on-criteria/327448 "2012-03-01T13:25:16Z")

</div>

Hey guys, So I'm coding this minigame implementation where a sprite traverses tiles on a screen, and when he's done traversing a tile, the tile "disappears" (its alpha decreases and it becomes a "wall" the player can n…

---

## [Anyone knows how to use AS3Crypto](https://forum.kirupa.com/t/anyone-knows-how-to-use-as3crypto/327447)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 1:25pm UTC](https://forum.kirupa.com/t/anyone-knows-how-to-use-as3crypto/327447 "2012-03-01T13:25:04Z")

</div>

Anyone knows how to use AS3Crypto? I need to decrypt an PGP encrypted XML file.

---

## [Textfield input enters two characters](https://forum.kirupa.com/t/textfield-input-enters-two-characters/327445)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 8:52am UTC](https://forum.kirupa.com/t/textfield-input-enters-two-characters/327445 "2012-03-01T08:52:19Z")

</div>

Whenever I have my Textfield focused and enter a character, the input field enters an additional duplicate character, meaning I have to backspace one character for every character I enter. If it was a Keydown problem t…

---

## [AS3 Equiv function like loadMovieNum() in AS2?](https://forum.kirupa.com/t/as3-equiv-function-like-loadmovienum-in-as2/327443)

<div class="topic-metadata">

**Author:** [@macboyCanada](https://forum.kirupa.com/u/macboyCanada)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 6:02am UTC](https://forum.kirupa.com/t/as3-equiv-function-like-loadmovienum-in-as2/327443 "2012-03-01T06:02:14Z")

</div>

Imagine my shock.....I'm setting up a pretty complex, multi-lesson game and using it also as an opportunity to make the switch from AS2 to AS3. It's been a bumpy road but I'm getting it but think I've hit a roadblock. I…

---

## [localToGlobal not working](https://forum.kirupa.com/t/localtoglobal-not-working/327442)

<div class="topic-metadata">

**Author:** [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 5:49am UTC](https://forum.kirupa.com/t/localtoglobal-not-working/327442 "2012-03-01T05:49:55Z")

</div>

Here's what i have: for(var i=x; i\<y; i++) { var tempPos:Point = new Point(); tempPos.x = circle\*.x; tempPos.y = circle\*.y; tempPos = circle\*.parent.localToGlobal(tempPos); …

---

## [AS3 + Eval-like function?](https://forum.kirupa.com/t/as3-eval-like-function/327441)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 3:06am UTC](https://forum.kirupa.com/t/as3-eval-like-function/327441 "2012-03-01T03:06:45Z")

</div>

So I have a string of text, but within this text I want to input a variable at a specific portion of the text. Now this string of text is taken from an XML file. So the XML file would look like this for example: \<name\>…

---

## [Help on changing Scenes from a (non-document) class](https://forum.kirupa.com/t/help-on-changing-scenes-from-a-non-document-class/327440)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [March 1, 2012, 2:58am UTC](https://forum.kirupa.com/t/help-on-changing-scenes-from-a-non-document-class/327440 "2012-03-01T02:58:14Z")

</div>

Hey Folks - I have a non-document class that I want to put in charge of changing scenes when some conditions are met. First things first, I need to figure out how to change scenes! Here's my code: package classes …

---

## [Closed Captioning for Flash WITHOUT FLV](https://forum.kirupa.com/t/closed-captioning-for-flash-without-flv/327439)

<div class="topic-metadata">

**Author:** [@JadeSerys](https://forum.kirupa.com/u/JadeSerys)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 10:52pm UTC](https://forum.kirupa.com/t/closed-captioning-for-flash-without-flv/327439 "2012-02-29T22:52:09Z")

</div>

I have created a tutorial for users that will register to use an application. I am used to using Adobe Captivate, but that is not available to me at my current job. So, I am doing my best in Flash. I couldn't figure out …

---

## [Multiple .as files](https://forum.kirupa.com/t/multiple-as-files/327437)

<div class="topic-metadata">

**Author:** [@VaLL](https://forum.kirupa.com/u/VaLL)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 6:34pm UTC](https://forum.kirupa.com/t/multiple-as-files/327437 "2012-02-29T18:34:41Z")

</div>

Hey, I'm getting a long fine with AS3 (taking a while) however I've just downloaded an example file and can't see how multiple external .as files are linked to a the FLA. I understand how the first file (InventoryDemo.…

---

## [Is Flash gaming dead?](https://forum.kirupa.com/t/is-flash-gaming-dead/327436)

<div class="topic-metadata">

**Author:** [@drpelz](https://forum.kirupa.com/u/drpelz)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 5:02pm UTC](https://forum.kirupa.com/t/is-flash-gaming-dead/327436 "2012-02-29T17:02:57Z")

</div>

Just curious because I read this article at http://www.photonstorm.com/archives/2568/the-reality-of-developing-web-games-with-flash-html5-and-unity and I'd like to know what do you guys think about the future of Flash ga…

---

## [All about buttons!](https://forum.kirupa.com/t/all-about-buttons/327435)

<div class="topic-metadata">

**Author:** [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 12:43pm UTC](https://forum.kirupa.com/t/all-about-buttons/327435 "2012-02-29T12:43:45Z")

</div>

hello guys! I want to figure out this. when I click a button, the button that I clicked should have an increase in brightness, indicating that I clicked that button, and now when I clicked another button, the previous …

---

## [FIleReference - save() method](https://forum.kirupa.com/t/filereference-save-method/327433)

<div class="topic-metadata">

**Author:** [@zacess](https://forum.kirupa.com/u/zacess)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 7:29am UTC](https://forum.kirupa.com/t/filereference-save-method/327433 "2012-02-29T07:29:45Z")

</div>

Hi everybody, I'm trying to use save() method in the FIleReference class to save the mp3 file. Do you know is there anyway to save the file without the saving-dialog box? :cry3: thank you very much

---

## [Is it possible to do this with an array?](https://forum.kirupa.com/t/is-it-possible-to-do-this-with-an-array/327430)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 2:51am UTC](https://forum.kirupa.com/t/is-it-possible-to-do-this-with-an-array/327430 "2012-02-29T02:51:08Z")

</div>

A movieClip has the name pE1, when the user clicks the movieClip the event handler catches the event.currentTarget.name (pE1) then I want to use this string to tell a child class(\_model) to add an object(engine: object)…

---

## [stageVideo for iOS: tutorial?](https://forum.kirupa.com/t/stagevideo-for-ios-tutorial/327428)

<div class="topic-metadata">

**Author:** [@Kappa](https://forum.kirupa.com/u/Kappa)\
**Replies:** 0\
**Last updated:** [February 29, 2012, 1:42am UTC](https://forum.kirupa.com/t/stagevideo-for-ios-tutorial/327428 "2012-02-29T01:42:46Z")

</div>

What is the simplest/easiest way to setup a video for viewing in an iOS App created using Flash Pro CS5.5? I've updated AIR to 3.1, and have tried following various tutorials and also reading this: http://www.adobe.com/d…

---

## [Remove enterFrameListener to pause a clock](https://forum.kirupa.com/t/remove-enterframelistener-to-pause-a-clock/327426)

<div class="topic-metadata">

**Author:** [@xCiter](https://forum.kirupa.com/u/xCiter)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 9:31pm UTC](https://forum.kirupa.com/t/remove-enterframelistener-to-pause-a-clock/327426 "2012-02-28T21:31:29Z")

</div>

I'm trying to find a way to stop my clock from ticking using event handlers. I almost have it, but for some reason the second hand (the one im only testing at the moment) is still rotating. This is my code that i'm us…

---

## [Adding a Symbol inside another Symbol](https://forum.kirupa.com/t/adding-a-symbol-inside-another-symbol/327422)

<div class="topic-metadata">

**Author:** [@L\_P](https://forum.kirupa.com/u/L_P)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 5:53pm UTC](https://forum.kirupa.com/t/adding-a-symbol-inside-another-symbol/327422 "2012-02-28T17:53:58Z")

</div>

Hey is it possible to add a Symbol inside another Symbol? Googling has yielded... not much, and stabbing at in the in the dark with LargeSymbol.addChild(InsideSymbol); Doesn't not work. With an error 1061: Call to…

---

## [AS3 photogallery random problem](https://forum.kirupa.com/t/as3-photogallery-random-problem/327420)

<div class="topic-metadata">

**Author:** [@harshacg](https://forum.kirupa.com/u/harshacg)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 3:02pm UTC](https://forum.kirupa.com/t/as3-photogallery-random-problem/327420 "2012-02-28T15:02:30Z")

</div>

Hi, I am working on a flash file that imports xml data. This data gets run through a for loop and each xml child gets its own movieclip. Then the various instances of menuItem are randomly placed on the stage. So, …

---

## [Sharing assets, particularly fonts](https://forum.kirupa.com/t/sharing-assets-particularly-fonts/327419)

<div class="topic-metadata">

**Author:** [@peleburrows](https://forum.kirupa.com/u/peleburrows)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 1:00pm UTC](https://forum.kirupa.com/t/sharing-assets-particularly-fonts/327419 "2012-02-28T13:00:38Z")

</div>

Hi, I've read loads of information and seem to have had a minor melt down. I'm using CS5.5 (not flex). Currently I'm importing using Runtime Shared Libraries with an external swf that is mostly successful but when i…

---

## [Flash AS2.0 With Restful Services](https://forum.kirupa.com/t/flash-as2-0-with-restful-services/327417)

<div class="topic-metadata">

**Author:** [@Lantui](https://forum.kirupa.com/u/Lantui)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 10:10am UTC](https://forum.kirupa.com/t/flash-as2-0-with-restful-services/327417 "2012-02-28T10:10:45Z")

</div>

Hi, i have a question to ask, and im really new to this script. i try my best find this solution but i didnt have enough information about Flash AS2.0 Connect with RESTful Services. i have server link "http://172.20.…

---

## [Preloader problem - 'loading infinity'](https://forum.kirupa.com/t/preloader-problem-loading-infinity/327416)

<div class="topic-metadata">

**Author:** [@senkei](https://forum.kirupa.com/u/senkei)\
**Replies:** 0\
**Last updated:** [February 28, 2012, 6:20am UTC](https://forum.kirupa.com/t/preloader-problem-loading-infinity/327416 "2012-02-28T06:20:53Z")

</div>

Hi guys, I followed a tutorial to implement this preloader and it seems to work fine offline, and in simulate download, but online it just says 'infinity' as oppose to a 'X%'. fla/swf: http://vdpwebsites.com.au/tony/…

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

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