# flash

**URL:** https://forum.kirupa.com/c/programming/flash/38.md?page=36

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

**Page:** 37

---

## [Declare variables in loop?](https://forum.kirupa.com/t/declare-variables-in-loop/330839)

<div class="topic-metadata">

**Author:** [@melihgulcan](https://forum.kirupa.com/u/melihgulcan)\
**Replies:** 0\
**Last updated:** [March 27, 2013, 4:39am UTC](https://forum.kirupa.com/t/declare-variables-in-loop/330839 "2013-03-27T04:39:06Z")

</div>

How can I declare these variables in loop? var Page0:String; var Page1:String; var Page2:String; var Page3:String; var Page4:String; var Page5:String; var Page6:String; var Page7:String; var Page8:String; var Page9:Str…

---

## [How To Synchronize](https://forum.kirupa.com/t/how-to-synchronize/330836)

<div class="topic-metadata">

**Author:** [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Replies:** 0\
**Last updated:** [March 27, 2013, 12:03am UTC](https://forum.kirupa.com/t/how-to-synchronize/330836 "2013-03-27T00:03:05Z")

</div>

\[TABLE\] \[TR\] \[TD="class: votecell"\] \[/TD\] \[TD="class: postcell"\]I am attempting to build a small chat application using a remote shared object (RSO) for FMS. My question is, how do you dispatch the SyncEvent when the R…

---

## [Stage Focus, Keyboard Listeners, Etc](https://forum.kirupa.com/t/stage-focus-keyboard-listeners-etc/330835)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [March 26, 2013, 10:08pm UTC](https://forum.kirupa.com/t/stage-focus-keyboard-listeners-etc/330835 "2013-03-26T22:08:23Z")

</div>

Hello All, I am using CS5.5 to develop my flash game. I have it set out such that I have a flash document (\*.fla) and its component class file, which represents the main working class of my game. It is within this class …

---

## [Exponential sine wave](https://forum.kirupa.com/t/exponential-sine-wave/330834)

<div class="topic-metadata">

**Author:** [@Viper87](https://forum.kirupa.com/u/Viper87)\
**Replies:** 0\
**Last updated:** [March 26, 2013, 8:30pm UTC](https://forum.kirupa.com/t/exponential-sine-wave/330834 "2013-03-26T20:30:01Z")

</div>

Hello! With this code I can draw a simple sine wave on the stage: \[image\] var frequency:Number = 5; var axisY:Number = stage.stageHeight\*.5; var amplitudeMultiplier:Number = 32; graphics.lineStyle(2); graphics.move…

---

## [Inheritance and cohercion problem](https://forum.kirupa.com/t/inheritance-and-cohercion-problem/330833)

<div class="topic-metadata">

**Author:** [@GiGaGiG](https://forum.kirupa.com/u/GiGaGiG)\
**Replies:** 0\
**Last updated:** [March 26, 2013, 6:27pm UTC](https://forum.kirupa.com/t/inheritance-and-cohercion-problem/330833 "2013-03-26T18:27:03Z")

</div>

Hi, I am having a very weird problem, and my colleagues are stuck because of this. I say "my colleagues because some of them, not all, cannot execute it: they can compile my code, but when executed it returns an error th…

---

## [Exporting a vector image](https://forum.kirupa.com/t/exporting-a-vector-image/330832)

<div class="topic-metadata">

**Author:** [@3dperson](https://forum.kirupa.com/u/3dperson)\
**Replies:** 0\
**Last updated:** [March 25, 2013, 9:51pm UTC](https://forum.kirupa.com/t/exporting-a-vector-image/330832 "2013-03-25T21:51:26Z")

</div>

\[FONT=Helvetica\]Hi -\[/FONT\] \[FONT=Helvetica\]My name is Tom Pounder and I am a digital artist (see my work here: www.jumbointernational.org).\[/FONT\] \[FONT=Helvetica\] I have created a pattern generator using AS2 that can b…

---

## [File reference load and save](https://forum.kirupa.com/t/file-reference-load-and-save/330830)

<div class="topic-metadata">

**Author:** [@anand\_as2](https://forum.kirupa.com/u/anand_as2)\
**Replies:** 0\
**Last updated:** [March 25, 2013, 8:41am UTC](https://forum.kirupa.com/t/file-reference-load-and-save/330830 "2013-03-25T08:41:55Z")

</div>

Hi, I have loaded a image using file reference from my local. Now i need to save the same image as jpg using file reference file.save(). the problem here is after loading the image. I convert that images to bitmap. af…

---

## [Irregular Drag Constraints/Boundaries](https://forum.kirupa.com/t/irregular-drag-constraints-boundaries/330829)

<div class="topic-metadata">

**Author:** [@na\_il](https://forum.kirupa.com/u/na_il)\
**Replies:** 0\
**Last updated:** [March 24, 2013, 9:18pm UTC](https://forum.kirupa.com/t/irregular-drag-constraints-boundaries/330829 "2013-03-24T21:18:45Z")

</div>

Is it possible to use a movie clip to constraint a drag-able mc? Or is there another way to do it? Here is an image, the square being the drag-able movie clip and the red is the constraint boundary area... Thanks

---

## [sortOn with arrays](https://forum.kirupa.com/t/sorton-with-arrays/330827)

<div class="topic-metadata">

**Author:** [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)\
**Replies:** 0\
**Last updated:** [March 24, 2013, 2:04am UTC](https://forum.kirupa.com/t/sorton-with-arrays/330827 "2013-03-24T02:04:51Z")

</div>

Hey all quick question ... say I've got an array called activeArray I've pushed various movieclips to the array and used sort to sort the array A-Z If I now wanted to loop through the array and check if a property at…

---

## [How to Pause nested movie clips with AS2 code](https://forum.kirupa.com/t/how-to-pause-nested-movie-clips-with-as2-code/330825)

<div class="topic-metadata">

**Author:** [@Edward\_Gayanes](https://forum.kirupa.com/u/Edward_Gayanes)\
**Replies:** 0\
**Last updated:** [March 23, 2013, 4:57pm UTC](https://forum.kirupa.com/t/how-to-pause-nested-movie-clips-with-as2-code/330825 "2013-03-23T16:57:54Z")

</div>

Hi, im a full newbie in AS2. i need to have a pause and resume button in my tower defense game but i cant find any solutions online. pls pls do help me our thesis defense is on monday and were still lacking on some funct…

---

## [Use Mouseclick to attack](https://forum.kirupa.com/t/use-mouseclick-to-attack/330822)

<div class="topic-metadata">

**Author:** [@s4f300](https://forum.kirupa.com/u/s4f300)\
**Replies:** 0\
**Last updated:** [March 22, 2013, 1:10am UTC](https://forum.kirupa.com/t/use-mouseclick-to-attack/330822 "2013-03-22T01:10:14Z")

</div>

I want to build a top down game where the controls are the wasd buttons are for moving and the mouse click is for attacking. I done the codes for moving but im having trouble with the mouse click/attacking. When the mous…

---

## [3D perspective issue](https://forum.kirupa.com/t/3d-perspective-issue/330819)

<div class="topic-metadata">

**Author:** [@griphino](https://forum.kirupa.com/u/griphino)\
**Replies:** 0\
**Last updated:** [March 21, 2013, 12:19pm UTC](https://forum.kirupa.com/t/3d-perspective-issue/330819 "2013-03-21T12:19:02Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]Hey there,\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]I am doing project in Flash and I have two swfs. One is loading another one. The one that is being loaded utilizes 3D tween, i.e. 3D per…

---

## [Queued up events are supposed to get processed the next frame, so why aren't they?](https://forum.kirupa.com/t/queued-up-events-are-supposed-to-get-processed-the-next-frame-so-why-arent-they/330817)

<div class="topic-metadata">

**Author:** [@wbfreek](https://forum.kirupa.com/u/wbfreek)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 10:09pm UTC](https://forum.kirupa.com/t/queued-up-events-are-supposed-to-get-processed-the-next-frame-so-why-arent-they/330817 "2013-03-20T22:09:58Z")

</div>

According to Adobe's documentation found here, there are 3 parts to runtime code execution: events, the enterFrame event, and rendering. Events, it says, are processed during the first part. It then states: "If events …

---

## [How to Make Flash Characters go up Inclines/Hills?](https://forum.kirupa.com/t/how-to-make-flash-characters-go-up-inclines-hills/330815)

<div class="topic-metadata">

**Author:** [@elliottastic](https://forum.kirupa.com/u/elliottastic)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 4:55pm UTC](https://forum.kirupa.com/t/how-to-make-flash-characters-go-up-inclines-hills/330815 "2013-03-20T16:55:35Z")

</div>

Hi, so I'm new to these forums, and to ActionScript, and I'm creating a Flash platformer-shooter. It's all going well so far and I've found some great tutorials and threads showing how to code particular things in Action…

---

## [AS3 - Parse JSON Object into dynamic text fields](https://forum.kirupa.com/t/as3-parse-json-object-into-dynamic-text-fields/330814)

<div class="topic-metadata">

**Author:** [@Audax](https://forum.kirupa.com/u/Audax)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 1:01pm UTC](https://forum.kirupa.com/t/as3-parse-json-object-into-dynamic-text-fields/330814 "2013-03-20T13:01:00Z")

</div>

Greetings, i'm trying to figure out a way to read strings from a JSON formatted txt and put them into text fields. So far this is what i've come up with: var loader:URLLoader = new URLLoader(); var request:URLReques…

---

## [Push notification for air for andriod](https://forum.kirupa.com/t/push-notification-for-air-for-andriod/330812)

<div class="topic-metadata">

**Author:** [@bradholz](https://forum.kirupa.com/u/bradholz)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 12:50am UTC](https://forum.kirupa.com/t/push-notification-for-air-for-andriod/330812 "2013-03-20T00:50:24Z")

</div>

Has anyone got Push Notification working for the air for android or know of a tutorial that would be helpful for a beginner i have read that air 3.4 has built in Push notification for IOS but not android so any help woul…

---

## [Defining height & width values of a movie clip with XML file!](https://forum.kirupa.com/t/defining-height-width-values-of-a-movie-clip-with-xml-file/330809)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 6:59pm UTC](https://forum.kirupa.com/t/defining-height-width-values-of-a-movie-clip-with-xml-file/330809 "2013-03-19T18:59:12Z")

</div>

\[LEFT\]\[COLOR=#333333\]\[FONT=adobe-clean\]How can I specify height and width values of a movie clip using external XML file? User needs to change values of a particular movie clip \[rectangular shape\] using xml file. \[/FONT\]…

---

## [Shuffle multidimensional array](https://forum.kirupa.com/t/shuffle-multidimensional-array/330807)

<div class="topic-metadata">

**Author:** [@sarumitai](https://forum.kirupa.com/u/sarumitai)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 10:58am UTC](https://forum.kirupa.com/t/shuffle-multidimensional-array/330807 "2013-03-19T10:58:58Z")

</div>

I need to shuffle the nested array, but can't figure out how. var myArray:Array = \[\["A1","A2"\],\["B1","B2"\],\["C1","C2"\],\["D1","D2"\]\]; I want the output to be like: A2,A1 etc I can shuffle the sets so it traces B1,B2,A…

---

## [Saving/Loading DateTime from Flash \> MySql](https://forum.kirupa.com/t/saving-loading-datetime-from-flash-mysql/330806)

<div class="topic-metadata">

**Author:** [@gamedesigner](https://forum.kirupa.com/u/gamedesigner)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 5:44am UTC](https://forum.kirupa.com/t/saving-loading-datetime-from-flash-mysql/330806 "2013-03-19T05:44:11Z")

</div>

How would I go about saving a timestamp to mySql from flash? Would I use a string or a number? Does this date number "1363671088331" save properly into the mySql "date" data type? I only need second accuracy, but ms woul…

---

## [Connect existing project to maven build](https://forum.kirupa.com/t/connect-existing-project-to-maven-build/330805)

<div class="topic-metadata">

**Author:** [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 1:37am UTC](https://forum.kirupa.com/t/connect-existing-project-to-maven-build/330805 "2013-03-19T01:37:31Z")

</div>

Hi . I need to connect my project with Maven to JAVA build. Java is a server side and Flash user side in CMS. How do I know what flexmojos version I'm using? I have to replace variable with some version, right? \<g…

---

## [Tile transition effect using masks and the caurina library](https://forum.kirupa.com/t/tile-transition-effect-using-masks-and-the-caurina-library/330804)

<div class="topic-metadata">

**Author:** [@gannet](https://forum.kirupa.com/u/gannet)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 12:50am UTC](https://forum.kirupa.com/t/tile-transition-effect-using-masks-and-the-caurina-library/330804 "2013-03-19T00:50:47Z")

</div>

Hi, I'm trying to create a tile transition effect by adding masks to the stage and animating them using the caurina library. I can add the tiles to the stage using a for loop but when i try to animate them, nothing is …

---

## [Keep Movieclip Button in Down State Once Clicked](https://forum.kirupa.com/t/keep-movieclip-button-in-down-state-once-clicked/330802)

<div class="topic-metadata">

**Author:** [@sporkula](https://forum.kirupa.com/u/sporkula)\
**Replies:** 0\
**Last updated:** [March 18, 2013, 7:45pm UTC](https://forum.kirupa.com/t/keep-movieclip-button-in-down-state-once-clicked/330802 "2013-03-18T19:45:00Z")

</div>

I have a navigation menu that needs to "highlight" the section you're in. I have three buttons that I created as movieclips so they can have rollover/rollout animations. What I need to add on top of that, which I'm havin…

---

## [Flash not testing movie properly](https://forum.kirupa.com/t/flash-not-testing-movie-properly/330801)

<div class="topic-metadata">

**Author:** [@puppies\_amp\_pigeons](https://forum.kirupa.com/u/puppies_amp_pigeons)\
**Replies:** 0\
**Last updated:** [March 18, 2013, 6:43pm UTC](https://forum.kirupa.com/t/flash-not-testing-movie-properly/330801 "2013-03-18T18:43:34Z")

</div>

So, I have been working on this fla for weeks now. Just friday, I tested it and it worked beautifully nothing wrong! Then Flash crashed (CS- my computer does this to me all the time so I wasnt shocked, and my file was sa…

---

## [Does the LoadVars object stream data?](https://forum.kirupa.com/t/does-the-loadvars-object-stream-data/330799)

<div class="topic-metadata">

**Author:** [@aminmix](https://forum.kirupa.com/u/aminmix)\
**Replies:** 0\
**Last updated:** [March 18, 2013, 6:30am UTC](https://forum.kirupa.com/t/does-the-loadvars-object-stream-data/330799 "2013-03-18T06:30:47Z")

</div>

In LoadVars class reference we read this sentence : You can use the LoadVars object to obtain error information, progress indications, and stream data while it downloads. I have not found any example of streaming dat…

---

## [Is it possible to open a folder which is on intranet?](https://forum.kirupa.com/t/is-it-possible-to-open-a-folder-which-is-on-intranet/330796)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [March 17, 2013, 4:07pm UTC](https://forum.kirupa.com/t/is-it-possible-to-open-a-folder-which-is-on-intranet/330796 "2013-03-17T16:07:42Z")

</div>

\[LEFT\]\[COLOR=#333333\]\[FONT=adobe-clean\]\[FONT=arial\]I have a folder called "\[COLOR=#FF6600\]Activities\[/COLOR\]" on our intranet website folder. I would like to put a button on form and specify a path to that folder so that…

---

## [as2 phpmysql - registration](https://forum.kirupa.com/t/as2-phpmysql-registration/330795)

<div class="topic-metadata">

**Author:** [@razzledee](https://forum.kirupa.com/u/razzledee)\
**Replies:** 0\
**Last updated:** [March 17, 2013, 6:36am UTC](https://forum.kirupa.com/t/as2-phpmysql-registration/330795 "2013-03-17T06:36:49Z")

</div>

Hi all I refer the this topic http://www.kirupa.com/forum/showthread.php?376958-Flash-Registration-Form-with-php-and-mysql-integration-using-AS2/page3 404registered... it works brilliantly! Am wondering if you may be a…

---

## [Touch layer blocking buttons](https://forum.kirupa.com/t/touch-layer-blocking-buttons/330794)

<div class="topic-metadata">

**Author:** [@bhnh](https://forum.kirupa.com/u/bhnh)\
**Replies:** 0\
**Last updated:** [March 16, 2013, 6:56pm UTC](https://forum.kirupa.com/t/touch-layer-blocking-buttons/330794 "2013-03-16T18:56:48Z")

</div>

I'm working on a Flash app for iPad. I'm finding that, in the Flash CS6 emulator anyway, when I activate the touch layers none of my buttons work... presumably because the touch layer is blocking the buttons. Anybody k…

---

## [AS3, passing SharedObject into URL using a string](https://forum.kirupa.com/t/as3-passing-sharedobject-into-url-using-a-string/330793)

<div class="topic-metadata">

**Author:** [@dcoo](https://forum.kirupa.com/u/dcoo)\
**Replies:** 0\
**Last updated:** [March 16, 2013, 6:53pm UTC](https://forum.kirupa.com/t/as3-passing-sharedobject-into-url-using-a-string/330793 "2013-03-16T18:53:45Z")

</div>

\[LEFT\] \[COLOR=#000000\]\[FONT=Arial\]Im loading dynamically named xml file and Im trying to pass a SharedObject from putusername.text into a string to complete the url. \[/FONT\]\[/COLOR\] \[/LEFT\] var galleryLoader:Loa…

---

## [Attachmovie clip help](https://forum.kirupa.com/t/attachmovie-clip-help/330790)

<div class="topic-metadata">

**Author:** [@enciel](https://forum.kirupa.com/u/enciel)\
**Replies:** 0\
**Last updated:** [March 16, 2013, 4:33pm UTC](https://forum.kirupa.com/t/attachmovie-clip-help/330790 "2013-03-16T16:33:15Z")

</div>

Hi!I need help with this. I've been pulling my hair out on this. What I dreamed to do: • Be able to attachmovie on stage multiple times with one movieclip. (ex. i called symbol1 but clicking button1, when i click butto…

---

## [Vertical Progress Bar](https://forum.kirupa.com/t/vertical-progress-bar/330787)

<div class="topic-metadata">

**Author:** [@Chrystyan](https://forum.kirupa.com/u/Chrystyan)\
**Replies:** 0\
**Last updated:** [March 15, 2013, 9:02pm UTC](https://forum.kirupa.com/t/vertical-progress-bar/330787 "2013-03-15T21:02:51Z")

</div>

I'm trying to create a vertical progress bar in flash that draws the data from a PHP script. I've got my PHP and MySQL done, but I'm not sure how to handle the variables in flash or how to setup the script on my page to …

[Previous page](https://forum.kirupa.com/c/programming/flash/38.md?page=35)

[Next page](https://forum.kirupa.com/c/programming/flash/38.md?page=37)
