# programming

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

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

**Page:** 135

---

## [Is there a way to do this?](https://forum.kirupa.com/t/is-there-a-way-to-do-this/330371)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [January 10, 2013, 1:08pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-this/330371 "2013-01-10T13:08:59Z")

</div>

I got this loop that should loop until it reaches the length of an array for (var i:int = 0; i \< d\_listDataArray.length; i++) The problem is that, it should NEVER be greater than 15.(The array can be all from 1-500) I …

---

## [AS3 Roulette Ball Simulation](https://forum.kirupa.com/t/as3-roulette-ball-simulation/330370)

<div class="topic-metadata">

**Author:** [@Frazzler](https://forum.kirupa.com/u/Frazzler)\
**Replies:** 0\
**Last updated:** [January 10, 2013, 10:30am UTC](https://forum.kirupa.com/t/as3-roulette-ball-simulation/330370 "2013-01-10T10:30:33Z")

</div>

Hi folks, I have an interview for a job next week and I have been tipped off that it's going to be to create a roulette game. I can probably figure out how to randomly spin the wheel, but I don't know where to begin in t…

---

## [Creating a Tv with moving static in ActionScript 2.0 - need help](https://forum.kirupa.com/t/creating-a-tv-with-moving-static-in-actionscript-2-0-need-help/330369)

<div class="topic-metadata">

**Author:** [@AbbyatSave](https://forum.kirupa.com/u/AbbyatSave)\
**Replies:** 0\
**Last updated:** [January 9, 2013, 11:18pm UTC](https://forum.kirupa.com/t/creating-a-tv-with-moving-static-in-actionscript-2-0-need-help/330369 "2013-01-09T23:18:54Z")

</div>

I have created a logo using AS2 and I have the "tv static" in there. When I go to play my movie, the tv static is on top of everything. I would like for it to be behind the tv and some text I have. Can anyone tell me how…

---

## [Loading errors 2032, 2035, 2036 (seems random)](https://forum.kirupa.com/t/loading-errors-2032-2035-2036-seems-random/330368)

<div class="topic-metadata">

**Author:** [@eprevot](https://forum.kirupa.com/u/eprevot)\
**Replies:** 0\
**Last updated:** [January 9, 2013, 5:25pm UTC](https://forum.kirupa.com/t/loading-errors-2032-2035-2036-seems-random/330368 "2013-01-09T17:25:07Z")

</div>

Hi, I have a full-flash website, it loads many files. Depending on the extension, I use different classes : - Sound for mp3 - Loader for png and swf - URLLoader for bin When I test my site, I don't have any loading e…

---

## [How to add movieclip inside textfield](https://forum.kirupa.com/t/how-to-add-movieclip-inside-textfield/330367)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [January 9, 2013, 1:13pm UTC](https://forum.kirupa.com/t/how-to-add-movieclip-inside-textfield/330367 "2013-01-09T13:13:31Z")

</div>

Hi, I would like to add a movieclip to a textfield. The objective is to be able to scroll the movie clip, since the uiscrollbar only works for textfield, i think my solution to scrolling the movie clip is to put it i…

---

## [How to construct an array](https://forum.kirupa.com/t/how-to-construct-an-array/330366)

<div class="topic-metadata">

**Author:** [@FJW](https://forum.kirupa.com/u/FJW)\
**Replies:** 0\
**Last updated:** [January 9, 2013, 11:15am UTC](https://forum.kirupa.com/t/how-to-construct-an-array/330366 "2013-01-09T11:15:04Z")

</div>

Hi Guys I have a piece of code that produces an array of Vector3D points correctly. i.e trace gives - \<code\> Vector3D(130, -20,0), VectorD(250, -20, 280), Vector3D(130, -20, 0); \</code\> What I need is for the array to b…

---

## [Javascript encrypt](https://forum.kirupa.com/t/javascript-encrypt/330365)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [January 9, 2013, 10:48am UTC](https://forum.kirupa.com/t/javascript-encrypt/330365 "2013-01-09T10:48:54Z")

</div>

Hi there, I need a simple javascript function that allows me to encrypt textarea data with a key (The key is the users password stored as a hashed session variable, printed by PHP into a field) I essentially wan…

---

## [AS3 parsing JSON](https://forum.kirupa.com/t/as3-parsing-json/330361)

<div class="topic-metadata">

**Author:** [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)\
**Replies:** 0\
**Last updated:** [January 8, 2013, 7:11pm UTC](https://forum.kirupa.com/t/as3-parsing-json/330361 "2013-01-08T19:11:16Z")

</div>

Hey all, I'm currently trying to use AS3 to check a JSON file found at : http://furydivine.net/api/hunt-dice/active I want to check if players are online and if they are playing on xbox I want to use this to trigger …

---

## [How do I make a custom file extension open my java program?](https://forum.kirupa.com/t/how-do-i-make-a-custom-file-extension-open-my-java-program/330358)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [January 8, 2013, 12:36pm UTC](https://forum.kirupa.com/t/how-do-i-make-a-custom-file-extension-open-my-java-program/330358 "2013-01-08T12:36:11Z")

</div>

Hi there, what I'm asking is how to make any associated file type open my program with the corresponding data. For example, if you have a .doc file it opens Microsoft word with whatever is saved to that file. I know…

---

## [Creating html pages dynamically using stored templates](https://forum.kirupa.com/t/creating-html-pages-dynamically-using-stored-templates/330357)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [January 8, 2013, 8:47am UTC](https://forum.kirupa.com/t/creating-html-pages-dynamically-using-stored-templates/330357 "2013-01-08T08:47:26Z")

</div>

Hi everybody, I need to create an asp.net website which will allow the end users to select a prestored template from available templates, edit header, footer and body contents of the template and create a HTML page …

---

## [Disable the qiut button output of the . Swf](https://forum.kirupa.com/t/disable-the-qiut-button-output-of-the-swf/330354)

<div class="topic-metadata">

**Author:** [@AFG](https://forum.kirupa.com/u/AFG)\
**Replies:** 0\
**Last updated:** [January 8, 2013, 2:51am UTC](https://forum.kirupa.com/t/disable-the-qiut-button-output-of-the-swf/330354 "2013-01-08T02:51:36Z")

</div>

Hi all Action script 3 I've designed something that unfortunately quit a button that I'd ordered the withdrawal of the .exe Because it works, but the output .swf not work. Can guide me? Sorry that I'm not good english.

---

## [Help creating search and results function for my site. Please help!](https://forum.kirupa.com/t/help-creating-search-and-results-function-for-my-site-please-help/330352)

<div class="topic-metadata">

**Author:** [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Replies:** 0\
**Last updated:** [January 7, 2013, 6:04pm UTC](https://forum.kirupa.com/t/help-creating-search-and-results-function-for-my-site-please-help/330352 "2013-01-07T18:04:58Z")

</div>

Hi guys, I'm making an eCommerce/PayPal website for some products I'm selling. The website is currently built with PHP and HTML. I want to add a search box so people can search for what the specifically want - then t…

---

## [How to draw shapes at whole pixel coordinates?](https://forum.kirupa.com/t/how-to-draw-shapes-at-whole-pixel-coordinates/330351)

<div class="topic-metadata">

**Author:** [@Triynko](https://forum.kirupa.com/u/Triynko)\
**Replies:** 0\
**Last updated:** [January 7, 2013, 3:46pm UTC](https://forum.kirupa.com/t/how-to-draw-shapes-at-whole-pixel-coordinates/330351 "2013-01-07T15:46:29Z")

</div>

Whenever I draw a rectangle in Flash CS6, it never seems to be drawn at whole pixel coordinates, despite using a 100% zoom level. Instead, its x-coordinate is always some fractional value like 0.65. This occurs with a…

---

## [Tutorial: Switch Statements in JavaScript](https://forum.kirupa.com/t/tutorial-switch-statements-in-javascript/330349)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 7, 2013, 7:42am UTC](https://forum.kirupa.com/t/tutorial-switch-statements-in-javascript/330349 "2013-01-07T07:42:58Z")

</div>

Hi everyone, This is the happening place to discuss the Switch Statements in JavaScript tutorial. Cheers, Kirupa :beam:

---

## [Flash as2 Help: Lock stage while movieClip has focus](https://forum.kirupa.com/t/flash-as2-help-lock-stage-while-movieclip-has-focus/330348)

<div class="topic-metadata">

**Author:** [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Replies:** 0\
**Last updated:** [January 7, 2013, 3:36am UTC](https://forum.kirupa.com/t/flash-as2-help-lock-stage-while-movieclip-has-focus/330348 "2013-01-07T03:36:12Z")

</div>

Here is my code for my instructions button: on (release) { this.attachMovie("howToPlay", "howToPlay", 10); howToPlay.\_x = 275; howToPlay.\_y = 175; howToPlay.\_alpha = 75; } My question is this, when th…

---

## [AS3 Checking webpage](https://forum.kirupa.com/t/as3-checking-webpage/330344)

<div class="topic-metadata">

**Author:** [@Antsuperhack](https://forum.kirupa.com/u/Antsuperhack)\
**Replies:** 0\
**Last updated:** [January 5, 2013, 9:53pm UTC](https://forum.kirupa.com/t/as3-checking-webpage/330344 "2013-01-05T21:53:43Z")

</div>

Hey all, A quick question ... say that I wanted to use AS3 to check if a certain phrase is present on a website e.g. "Player is online" how would I go about this?

---

## [\[Help\] Updating Multiple Rows in MySQL Table at Once](https://forum.kirupa.com/t/help-updating-multiple-rows-in-mysql-table-at-once/330343)

<div class="topic-metadata">

**Author:** [@40Unregistered](https://forum.kirupa.com/u/40Unregistered)\
**Replies:** 0\
**Last updated:** [January 5, 2013, 9:35am UTC](https://forum.kirupa.com/t/help-updating-multiple-rows-in-mysql-table-at-once/330343 "2013-01-05T09:35:08Z")

</div>

I want to update 160 rows in MySQL table at once. This approach works but it seems not optimize enough and sometimes it failed. It runs 160 queries, isn't it? How to optimize this script? FYI: pdfdones are data from F…

---

## [Erasing BitmapData using a mask](https://forum.kirupa.com/t/erasing-bitmapdata-using-a-mask/330341)

<div class="topic-metadata">

**Author:** [@niksterg](https://forum.kirupa.com/u/niksterg)\
**Replies:** 0\
**Last updated:** [January 5, 2013, 5:20am UTC](https://forum.kirupa.com/t/erasing-bitmapdata-using-a-mask/330341 "2013-01-05T05:20:09Z")

</div>

Hey all, I'm having a hard time figuring this out. Here's what I'm trying to do: I have one BitmapData object (let's call it "baseTile") which represents the room the player is in. This BitmapData starts off as mor…

---

## [Document Classes and other Questions](https://forum.kirupa.com/t/document-classes-and-other-questions/330339)

<div class="topic-metadata">

**Author:** [@Fatt101](https://forum.kirupa.com/u/Fatt101)\
**Replies:** 0\
**Last updated:** [January 4, 2013, 5:08pm UTC](https://forum.kirupa.com/t/document-classes-and-other-questions/330339 "2013-01-04T17:08:15Z")

</div>

Basically, i am working on an application that will eventually be deployed to the desktop as an AIR application. I am wanting to create an Analogue clock and Digital clock with a button that toggles the display between…

---

## [onMouseDown (object3D to Vector3D)...help please](https://forum.kirupa.com/t/onmousedown-object3d-to-vector3d-help-please/330337)

<div class="topic-metadata">

**Author:** [@FJW](https://forum.kirupa.com/u/FJW)\
**Replies:** 0\
**Last updated:** [January 4, 2013, 3:46pm UTC](https://forum.kirupa.com/t/onmousedown-object3d-to-vector3d-help-please/330337 "2013-01-04T15:46:18Z")

</div>

Hi once again. I have an object that 'floats' around a scene and when do mouseClick on it I need the Vector3D(x,y.z) instead of Object3D. \_mouseVector is Vector3D var Can anyone help with this please? Regards FJW \<code\> p…

---

## [Runtime Analyze Actionscript?](https://forum.kirupa.com/t/runtime-analyze-actionscript/330335)

<div class="topic-metadata">

**Author:** [@reppinfreedom](https://forum.kirupa.com/u/reppinfreedom)\
**Replies:** 0\
**Last updated:** [January 4, 2013, 12:55pm UTC](https://forum.kirupa.com/t/runtime-analyze-actionscript/330335 "2013-01-04T12:55:44Z")

</div>

I am using Flash CS6 and I have a vague memory that back in the early days of Macromedia there was a way to see your code running. Literally you could see all the variables and what was happening in a tree format. \[cen…

---

## [Skin destruction policy causing memory leak](https://forum.kirupa.com/t/skin-destruction-policy-causing-memory-leak/330333)

<div class="topic-metadata">

**Author:** [@destinier](https://forum.kirupa.com/u/destinier)\
**Replies:** 0\
**Last updated:** [January 4, 2013, 6:31am UTC](https://forum.kirupa.com/t/skin-destruction-policy-causing-memory-leak/330333 "2013-01-04T06:31:35Z")

</div>

In my application I am having multiple screens playing. In one screen, I have a gallery component which will play multiple videos on selection. The component is using a skin part called "vidDisplay" which is an instanc…

---

## [Trying to pass Array from AS3 to JavaScript](https://forum.kirupa.com/t/trying-to-pass-array-from-as3-to-javascript/330332)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 0\
**Last updated:** [January 4, 2013, 2:40am UTC](https://forum.kirupa.com/t/trying-to-pass-array-from-as3-to-javascript/330332 "2013-01-04T02:40:02Z")

</div>

Hey All, I have a weird issue. I have an array that I'm trying to send to JavaScript. I'm using the following in my AS3 code: ExternalInterface.call(nameOfJavaScriptFunction, myArray) In my JavaScript code I h…

---

## [Flash Game - turning button selection into conditionals](https://forum.kirupa.com/t/flash-game-turning-button-selection-into-conditionals/330328)

<div class="topic-metadata">

**Author:** [@fwof1976](https://forum.kirupa.com/u/fwof1976)\
**Replies:** 0\
**Last updated:** [January 3, 2013, 3:20am UTC](https://forum.kirupa.com/t/flash-game-turning-button-selection-into-conditionals/330328 "2013-01-03T03:20:27Z")

</div>

I am struggling to convert the following code to conditional if/else. I am doing a game where if the person selects one "button", they get a BOO and the game does nothing. But if they select the correct button they get…

---

## [Flash HTTPS Problem(Formatting Fixed)](https://forum.kirupa.com/t/flash-https-problem-formatting-fixed/330327)

<div class="topic-metadata">

**Author:** [@reppinfreedom](https://forum.kirupa.com/u/reppinfreedom)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 8:57pm UTC](https://forum.kirupa.com/t/flash-https-problem-formatting-fixed/330327 "2013-01-02T20:57:30Z")

</div>

\[LEFT\]Delete my other post, couldn't get formatting to work on the new Kirupa... Glitchy as hell... Here is a problem I can't figure out how to get http communication to work from flash on a https page with amfPhp. The…

---

## [Flash HTTPS Problem](https://forum.kirupa.com/t/flash-https-problem/330326)

<div class="topic-metadata">

**Author:** [@reppinfreedom](https://forum.kirupa.com/u/reppinfreedom)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 8:42pm UTC](https://forum.kirupa.com/t/flash-https-problem/330326 "2013-01-02T20:42:46Z")

</div>

Here is a problem I can't figure out how to get http communication to work from flash on a https page with amfPhp. The thing that I CANT change is the preloader must be on a HTTPS page. It's a Facebook social game. In …

---

## [AS3: add event listener to loaded AS2 SWF](https://forum.kirupa.com/t/as3-add-event-listener-to-loaded-as2-swf/330323)

<div class="topic-metadata">

**Author:** [@Flivor2012](https://forum.kirupa.com/u/Flivor2012)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 10:32am UTC](https://forum.kirupa.com/t/as3-add-event-listener-to-loaded-as2-swf/330323 "2013-01-02T10:32:30Z")

</div>

Hi, What I am trying to do is - simply load an external SWF into my AS3 code. I then want to show it on my stage - and be able to catch the 'ROLL\_OVER', 'ROLL\_OUT' and 'MOUSE\_CLICK' events that happen with the SWF, meani…

---

## [Relative Path For Webservice in FLASH](https://forum.kirupa.com/t/relative-path-for-webservice-in-flash/330322)

<div class="topic-metadata">

**Author:** [@rohithgopi](https://forum.kirupa.com/u/rohithgopi)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 6:07am UTC](https://forum.kirupa.com/t/relative-path-for-webservice-in-flash/330322 "2013-01-02T06:07:57Z")

</div>

Hi, I am using a webservice in my flash application and i have created a web application for that. The application is working fine but the only problem is that when ever i change the system i need to edit the flash for…

---

## [Flash as2 Game Help: Input, Ouput, and a button](https://forum.kirupa.com/t/flash-as2-game-help-input-ouput-and-a-button/330321)

<div class="topic-metadata">

**Author:** [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 3:29am UTC](https://forum.kirupa.com/t/flash-as2-game-help-input-ouput-and-a-button/330321 "2013-01-02T03:29:00Z")

</div>

So, my next adventure is this: - Input box where the player inputs a dollar amount. 4 digits max. - A graphic with an assigned value of 100 - The player inputs up to 4 digit monetary value, then clicks a submit button. T…

---

## [Tutorial: Getting the Mouse Click Position](https://forum.kirupa.com/t/tutorial-getting-the-mouse-click-position/330320)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 2, 2013, 3:08am UTC](https://forum.kirupa.com/t/tutorial-getting-the-mouse-click-position/330320 "2013-01-02T03:08:31Z")

</div>

Hi everyone, This is the happening place to discuss the Getting the Mouse Click Position tutorial. Cheers, Kirupa :beam:

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

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