# programming

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

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

**Page:** 126

---

## [Can a SWF launch a local EXE?](https://forum.kirupa.com/t/can-a-swf-launch-a-local-exe/330889)

<div class="topic-metadata">

**Author:** [@alexn0816](https://forum.kirupa.com/u/alexn0816)\
**Replies:** 0\
**Last updated:** [April 2, 2013, 4:32pm UTC](https://forum.kirupa.com/t/can-a-swf-launch-a-local-exe/330889 "2013-04-02T16:32:38Z")

</div>

Is there any way that a (non-local) SWF can launch a local EXE file? I understand that http connections cannot access a local file system, but I'm hoping that there's some kind of option available. Adobe Air? Can someon…

---

## [Before / After Audio Player](https://forum.kirupa.com/t/before-after-audio-player/330883)

<div class="topic-metadata">

**Author:** [@tman26](https://forum.kirupa.com/u/tman26)\
**Replies:** 0\
**Last updated:** [April 1, 2013, 3:04pm UTC](https://forum.kirupa.com/t/before-after-audio-player/330883 "2013-04-01T15:04:23Z")

</div>

Hi all, I am looking to create an audio player that utilizes a switch to toggle back and forth between two different audio files that are contained in the same audio player. For example, you see an audio player wit…

---

## [Opposite of event.target](https://forum.kirupa.com/t/opposite-of-event-target/330880)

<div class="topic-metadata">

**Author:** [@sarumitai](https://forum.kirupa.com/u/sarumitai)\
**Replies:** 0\
**Last updated:** [April 1, 2013, 8:48am UTC](https://forum.kirupa.com/t/opposite-of-event-target/330880 "2013-04-01T08:48:37Z")

</div>

I'm trying to compare two text boxes. I can trace the text from the clicked on target, but I need to compare it to the unclicked text box and I can't think of how to without going in a huge circle of comparing everything…

---

## [Removing child problem](https://forum.kirupa.com/t/removing-child-problem/330871)

<div class="topic-metadata">

**Author:** [@Mr\_Flopsie](https://forum.kirupa.com/u/Mr_Flopsie)\
**Replies:** 0\
**Last updated:** [March 31, 2013, 6:18pm UTC](https://forum.kirupa.com/t/removing-child-problem/330871 "2013-03-31T18:18:30Z")

</div>

I have a bunch of objects in a movieclip. Why am I not allowed to do the following? rubyCont.getChildAt(i).Destroy(); Destroy() is a function of the child in rubyCont. The child is mc\_Ruby. Obvious if I do mc\_Ruby.De…

---

## [sendToURL doesn't send to URL](https://forum.kirupa.com/t/sendtourl-doesnt-send-to-url/330865)

<div class="topic-metadata">

**Author:** [@darkman2771](https://forum.kirupa.com/u/darkman2771)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 8:25pm UTC](https://forum.kirupa.com/t/sendtourl-doesnt-send-to-url/330865 "2013-03-30T20:25:19Z")

</div>

Hello There, I am using phpbb 3 and just downloaded a MOD called Proxy Revealer which primarly used to detect and ban spammers and the following attached code is a part of the MOD, as you can see the AS uses sendToURL …

---

## [Adding an Event Listener to a Sound Clip](https://forum.kirupa.com/t/adding-an-event-listener-to-a-sound-clip/330864)

<div class="topic-metadata">

**Author:** [@drdexter33](https://forum.kirupa.com/u/drdexter33)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 7:47pm UTC](https://forum.kirupa.com/t/adding-an-event-listener-to-a-sound-clip/330864 "2013-03-30T19:47:48Z")

</div>

I'm using AS 2.0 and trying to code some logic to: 1. Play a random sound clip 2. As long as the sound clip is playing, play an animation. While I'm not an AS programmer, here's what I have so far stop();var clipArr…

---

## [cs4 AS2 - problem loading new swf into current swf window](https://forum.kirupa.com/t/cs4-as2-problem-loading-new-swf-into-current-swf-window/330860)

<div class="topic-metadata">

**Author:** [@g\_king](https://forum.kirupa.com/u/g_king)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 1:44pm UTC](https://forum.kirupa.com/t/cs4-as2-problem-loading-new-swf-into-current-swf-window/330860 "2013-03-30T13:44:12Z")

</div>

I am a teacher getting to grips with Flash and have a student whose problem is stumping me. She has a homepage.swf that contains a graphic, a scrolling text box and some navigation buttons. When you press the promotion…

---

## [Save xml file with asian language using AIR application (FB4.5)](https://forum.kirupa.com/t/save-xml-file-with-asian-language-using-air-application-fb4-5/330859)

<div class="topic-metadata">

**Author:** [@Trupti](https://forum.kirupa.com/u/Trupti)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 1:10pm UTC](https://forum.kirupa.com/t/save-xml-file-with-asian-language-using-air-application-fb4-5/330859 "2013-03-30T13:10:24Z")

</div>

Hello, I'm developing an AIR application (in Flash builder 4.5) which loads swf files and read its text using textsnapshot class. Text data is stored in string and also displayed on screen inside textArea. This data is t…

---

## [Opacity/Alpha Decreases faster than Increases](https://forum.kirupa.com/t/opacity-alpha-decreases-faster-than-increases/330855)

<div class="topic-metadata">

**Author:** [@SoupHead](https://forum.kirupa.com/u/SoupHead)\
**Replies:** 0\
**Last updated:** [March 29, 2013, 9:49pm UTC](https://forum.kirupa.com/t/opacity-alpha-decreases-faster-than-increases/330855 "2013-03-29T21:49:56Z")

</div>

This is kind of an odd problem. I'm working on a project for the Blue Circles contest and I have the following code in one section: if (c.\_x \> midX) { c.\_alpha += opacityRate; } else { c.\_alpha -= opacityRate; } …

---

## [jQuery ScrollTo](https://forum.kirupa.com/t/jquery-scrollto/330847)

<div class="topic-metadata">

**Author:** [@anon58142439](https://forum.kirupa.com/u/anon58142439)\
**Replies:** 0\
**Last updated:** [March 28, 2013, 3:51pm UTC](https://forum.kirupa.com/t/jquery-scrollto/330847 "2013-03-28T15:51:22Z")

</div>

Hi, quite new to jQuery. Working on my one page website portfolio and I am using the 'Scroll To' script. However, I would like include so that when a fixed link at the top of the page is clicked. An active button would…

---

## [Send PHP variable value to AS3](https://forum.kirupa.com/t/send-php-variable-value-to-as3/330846)

<div class="topic-metadata">

**Author:** [@Marcus\_Montz](https://forum.kirupa.com/u/Marcus_Montz)\
**Replies:** 0\
**Last updated:** [March 28, 2013, 10:59am UTC](https://forum.kirupa.com/t/send-php-variable-value-to-as3/330846 "2013-03-28T10:59:53Z")

</div>

\[AS3 Code\] import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; var phpFile:String = "connect.php"; function loadFile(evt:MouseEvent):void{ var myLoader:URLLoader = new URLLoader(); …

---

## [Sounds hate me](https://forum.kirupa.com/t/sounds-hate-me/330843)

<div class="topic-metadata">

**Author:** [@Blablob](https://forum.kirupa.com/u/Blablob)\
**Replies:** 0\
**Last updated:** [March 27, 2013, 1:55pm UTC](https://forum.kirupa.com/t/sounds-hate-me/330843 "2013-03-27T13:55:22Z")

</div>

Hi all. I've been working on a game lately, and I've been trying to add sound effects and music, but can't for the life of me get either to work. I'm working in FlashDevelop (version 4.0.0.0) and I've looked up numerous …

---

## [Memory game (matching pairs)](https://forum.kirupa.com/t/memory-game-matching-pairs/330842)

<div class="topic-metadata">

**Author:** [@Icecold\_](https://forum.kirupa.com/u/Icecold_)\
**Replies:** 0\
**Last updated:** [March 27, 2013, 11:40am UTC](https://forum.kirupa.com/t/memory-game-matching-pairs/330842 "2013-03-27T11:40:01Z")

</div>

Hello! Is there any tutorial how to make this game? Or is there any finished fla. to download it? \[beer\]

---

## [Embedding a URL into a swf](https://forum.kirupa.com/t/embedding-a-url-into-a-swf/330840)

<div class="topic-metadata">

**Author:** [@Lesh](https://forum.kirupa.com/u/Lesh)\
**Replies:** 0\
**Last updated:** [March 27, 2013, 5:32am UTC](https://forum.kirupa.com/t/embedding-a-url-into-a-swf/330840 "2013-03-27T05:32:20Z")

</div>

I am trying to embed a URL into my swf file. I have placed an invisible button and given it the following actionscript: function linkToSite(evt:MouseEvent):void { var url:String = "http://www.google.com"; // re…

---

## [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

---

## [SQL server space](https://forum.kirupa.com/t/sql-server-space/330828)

<div class="topic-metadata">

**Author:** [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)\
**Replies:** 0\
**Last updated:** [March 24, 2013, 3:39am UTC](https://forum.kirupa.com/t/sql-server-space/330828 "2013-03-24T03:39:13Z")

</div>

I created an online highscore table using php and SQL for a flash game I developed. The game consists of 40 levels, and the table shows the top 20 scores of each level. Since I've never done anything like this before, …

---

## [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…

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

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