# programming

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

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

**Page:** 108

---

## [\[FLASH 8\] Bookmarking external swf files](https://forum.kirupa.com/t/flash-8-bookmarking-external-swf-files/331872)

<div class="topic-metadata">

**Author:** [@StevieH](https://forum.kirupa.com/u/StevieH)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 12:44pm UTC](https://forum.kirupa.com/t/flash-8-bookmarking-external-swf-files/331872 "2013-11-13T12:44:01Z")

</div>

Hi all OK so I'm working on a file that uses xml (obviously) to load swf files externally into a "Player" swf. The client has asked to have a bookmark function that will allow the user to "save" their progress in the…

---

## [Complex Type in SOAP Webservice](https://forum.kirupa.com/t/complex-type-in-soap-webservice/331871)

<div class="topic-metadata">

**Author:** [@Chicopi](https://forum.kirupa.com/u/Chicopi)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 10:31am UTC](https://forum.kirupa.com/t/complex-type-in-soap-webservice/331871 "2013-11-13T10:31:07Z")

</div>

Hi guys, Need some help regarding with Complex types in webservice (SOAP). I tried using Kirupa's web service tutorial and worked great, but I have no idea how to use it with complex data types. Below is the SOAP's xml…

---

## [How can I write that line properly?](https://forum.kirupa.com/t/how-can-i-write-that-line-properly/331869)

<div class="topic-metadata">

**Author:** [@kunst](https://forum.kirupa.com/u/kunst)\
**Replies:** 0\
**Last updated:** [November 12, 2013, 8:55pm UTC](https://forum.kirupa.com/t/how-can-i-write-that-line-properly/331869 "2013-11-12T20:55:17Z")

</div>

Hi, please help me with the following: Flash8, AS2 This code line works: \_root.movietag = movie.load("http://www.mymoviesite/movies/moviecode.xml"); Now, Id like to grab that URL code (http://www.mymoviesite/movies/…

---

## [Quiz-mutiple choice-xml-random questions](https://forum.kirupa.com/t/quiz-mutiple-choice-xml-random-questions/331867)

<div class="topic-metadata">

**Author:** [@thomaslanger](https://forum.kirupa.com/u/thomaslanger)\
**Replies:** 0\
**Last updated:** [November 12, 2013, 7:51pm UTC](https://forum.kirupa.com/t/quiz-mutiple-choice-xml-random-questions/331867 "2013-11-12T19:51:51Z")

</div>

Hi friends. I have this wonderful modified Multiple Choice Quiz coded in AS2. It chooses from 14 questions from en xml file and randomly picks 5 questions everytime you run the quiz. That works fine. The thing I would li…

---

## [Name/Variable Titles in a for loop](https://forum.kirupa.com/t/name-variable-titles-in-a-for-loop/331866)

<div class="topic-metadata">

**Author:** [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Replies:** 0\
**Last updated:** [November 12, 2013, 5:14pm UTC](https://forum.kirupa.com/t/name-variable-titles-in-a-for-loop/331866 "2013-11-12T17:14:30Z")

</div>

Hi there, Just wanted to ask a silly little question. Say for instance I have a variable name .... e.g. house0-6...car0-6 .door0-6 how do I add the number to the variable name such as house1 or car6 within a loop. \[A…

---

## [Array, Split numers in half](https://forum.kirupa.com/t/array-split-numers-in-half/331865)

<div class="topic-metadata">

**Author:** [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Replies:** 0\
**Last updated:** [November 11, 2013, 10:27pm UTC](https://forum.kirupa.com/t/array-split-numers-in-half/331865 "2013-11-11T22:27:41Z")

</div>

Sorry for the dumb question \[smile\] I have an old style digital clock with numbers made up of 7 part pictures. What I want to know is like if I had a number like 42, how I would split it into a 4 and a 2, so like 4 = t…

---

## [There is no method with this name "attachNetStream" What's wrong?](https://forum.kirupa.com/t/there-is-no-method-with-this-name-attachnetstream-whats-wrong/331864)

<div class="topic-metadata">

**Author:** [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Replies:** 0\
**Last updated:** [November 11, 2013, 6:22pm UTC](https://forum.kirupa.com/t/there-is-no-method-with-this-name-attachnetstream-whats-wrong/331864 "2013-11-11T18:22:19Z")

</div>

Hi! I am using this code to load a FLV file into a video player but I am getting an error message saying that there is no method attachNetStream. var vp : Video = new Video(320,240); addChild(vp); var nc : NetConn…

---

## [Adobe Native extension Help required for Reference argument](https://forum.kirupa.com/t/adobe-native-extension-help-required-for-reference-argument/331863)

<div class="topic-metadata">

**Author:** [@KiranGowda](https://forum.kirupa.com/u/KiranGowda)\
**Replies:** 0\
**Last updated:** [November 11, 2013, 5:34pm UTC](https://forum.kirupa.com/t/adobe-native-extension-help-required-for-reference-argument/331863 "2013-11-11T17:34:08Z")

</div>

Hi All,\[TABLE\] \[TR\] \[TD="class: votecell"\] \[/TD\] \[TD="class: postcell"\]I am new to adobe native extension. Like in c++ we have reference argument, is something available for adobe native extension. C++ Code example /…

---

## [How to save a button's position and settings?](https://forum.kirupa.com/t/how-to-save-a-buttons-position-and-settings/331860)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 10, 2013, 4:18pm UTC](https://forum.kirupa.com/t/how-to-save-a-buttons-position-and-settings/331860 "2013-11-10T16:18:51Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I am trying to create an options menu for a game, where there are 2 buttons. One button is to disable all music, and the other is to disable all sound effects. When the button is clicked, it di…

---

## [Tweener.addTween](https://forum.kirupa.com/t/tweener-addtween/331857)

<div class="topic-metadata">

**Author:** [@rafal700](https://forum.kirupa.com/u/rafal700)\
**Replies:** 0\
**Last updated:** [November 8, 2013, 8:26pm UTC](https://forum.kirupa.com/t/tweener-addtween/331857 "2013-11-08T20:26:15Z")

</div>

Welcome I have a problem with Tweener.addTween Stock rotates from right to left. I want to rotate from left to right How to do it? Sorry for my english rotateIt function (e: MouseEvent): void { photo.rotation…

---

## [ActionScript 3 Drag and Drop](https://forum.kirupa.com/t/actionscript-3-drag-and-drop/331856)

<div class="topic-metadata">

**Author:** [@Colin7](https://forum.kirupa.com/u/Colin7)\
**Replies:** 0\
**Last updated:** [November 8, 2013, 4:31pm UTC](https://forum.kirupa.com/t/actionscript-3-drag-and-drop/331856 "2013-11-08T16:31:11Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I have this AS3 code:\[/FONT\]\[/COLOR\] circle\_mc.addEventListener(\[COLOR=#2B91AF\]MouseEvent\[/COLOR\].MOUSE\_DOWN, drag); square\_mc.addEventListener(\[COLOR=#2B91AF\]MouseEvent\[/COLOR\].MOUSE\_DOWN, …

---

## [Refer to all enemies in array](https://forum.kirupa.com/t/refer-to-all-enemies-in-array/331855)

<div class="topic-metadata">

**Author:** [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Replies:** 0\
**Last updated:** [November 8, 2013, 2:53pm UTC](https://forum.kirupa.com/t/refer-to-all-enemies-in-array/331855 "2013-11-08T14:53:47Z")

</div>

I'm having trouble referring to all enemies in array. Maybe I'm over thinking it, but I'm stumped. I create a for loop to create 8 enemies, then push them in an array. I want to refer to all of them instead in order to c…

---

## [Build a video player How?](https://forum.kirupa.com/t/build-a-video-player-how/331854)

<div class="topic-metadata">

**Author:** [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Replies:** 0\
**Last updated:** [November 8, 2013, 11:35am UTC](https://forum.kirupa.com/t/build-a-video-player-how/331854 "2013-11-08T11:35:22Z")

</div>

Hi! I need to make a video player that will show whatever is being broadcast live using my account at justin.tv . I am reading something at this web site (http://apiwiki.justin.tv/mediawiki/index.php/Live\_Video\_SWF\_Docum…

---

## [AS3 + Python/LUA Implementation](https://forum.kirupa.com/t/as3-python-lua-implementation/331853)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [November 7, 2013, 5:43pm UTC](https://forum.kirupa.com/t/as3-python-lua-implementation/331853 "2013-11-07T17:43:53Z")

</div>

I'm looking for a method to store my NPC dialogue for my AS3 RPG game. I've looked online and found numerous people recommending a scripting language such as Python or LUA that will actually parse the dialogue context an…

---

## [Check array of objects for number of duplicates and splice specific ones](https://forum.kirupa.com/t/check-array-of-objects-for-number-of-duplicates-and-splice-specific-ones/331851)

<div class="topic-metadata">

**Author:** [@geHuC](https://forum.kirupa.com/u/geHuC)\
**Replies:** 0\
**Last updated:** [November 7, 2013, 10:08am UTC](https://forum.kirupa.com/t/check-array-of-objects-for-number-of-duplicates-and-splice-specific-ones/331851 "2013-11-07T10:08:18Z")

</div>

I need to sort through an array and check if there are more than 4 objects with the same property. Them if there are to compare them on another property of the object and remove them util there are only 4. e.g. var AR…

---

## [Call a public array from Main class on another class](https://forum.kirupa.com/t/call-a-public-array-from-main-class-on-another-class/331848)

<div class="topic-metadata">

**Author:** [@nightkarnation](https://forum.kirupa.com/u/nightkarnation)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 3:40pm UTC](https://forum.kirupa.com/t/call-a-public-array-from-main-class-on-another-class/331848 "2013-11-06T15:40:26Z")

</div>

Here's the simplified code of what I am trying to achieve: //Main.as package { public class Main extends MovieClip { public var teams:Array = new Array("Brazil","Germany", "Spain"); } //later on code…

---

## [2 enterframe functions for one movieclip](https://forum.kirupa.com/t/2-enterframe-functions-for-one-movieclip/331847)

<div class="topic-metadata">

**Author:** [@Chibi\_Hashmin](https://forum.kirupa.com/u/Chibi_Hashmin)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 9:38am UTC](https://forum.kirupa.com/t/2-enterframe-functions-for-one-movieclip/331847 "2013-11-06T09:38:34Z")

</div>

Hi Guys! I'm new here. This is actually my first post. I really need help. I'm using enterframe to move/ease movie clips into position after dragging them. I already have a code for this which I got from Bill Trikojus a…

---

## [Splice objects array](https://forum.kirupa.com/t/splice-objects-array/331846)

<div class="topic-metadata">

**Author:** [@nightkarnation](https://forum.kirupa.com/u/nightkarnation)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 12:07am UTC](https://forum.kirupa.com/t/splice-objects-array/331846 "2013-11-06T00:07:04Z")

</div>

Hey guys, here's a simple question: Example code: var records:Array = new Array(); records.push({name:"john", city:"omaha", zip:68144}); records.push({name:"matt", city:"kansas city", zip:72345}); records.push({name…

---

## [Actionscript 3 Keyboard constants don't all work?](https://forum.kirupa.com/t/actionscript-3-keyboard-constants-dont-all-work/331843)

<div class="topic-metadata">

**Author:** [@mikebumbaugh](https://forum.kirupa.com/u/mikebumbaugh)\
**Replies:** 0\
**Last updated:** [November 5, 2013, 4:47pm UTC](https://forum.kirupa.com/t/actionscript-3-keyboard-constants-dont-all-work/331843 "2013-11-05T16:47:34Z")

</div>

I am curious why most keyboard constants are not recognized and a few are. Code: // runs fine, outputs 37 import flash.ui.Keyboard; trace(Keyboard.LEFT) Code: // Does not compile, but is offered as a choice for auto-c…

---

## [Embedded FLV glitches](https://forum.kirupa.com/t/embedded-flv-glitches/331839)

<div class="topic-metadata">

**Author:** [@GiGaGiG](https://forum.kirupa.com/u/GiGaGiG)\
**Replies:** 0\
**Last updated:** [November 5, 2013, 11:03am UTC](https://forum.kirupa.com/t/embedded-flv-glitches/331839 "2013-11-05T11:03:07Z")

</div>

Hi, I am going mad with a really weird problem with embedded FLV. I have an SWC (exported by Flash CS5) containing several FLVs put inside different MovieClips, each one with a specific linkage. When I link the SWC in Fl…

---

## [Draw a movement grid in tile based game, tactics](https://forum.kirupa.com/t/draw-a-movement-grid-in-tile-based-game-tactics/331836)

<div class="topic-metadata">

**Author:** [@Fuhans](https://forum.kirupa.com/u/Fuhans)\
**Replies:** 0\
**Last updated:** [November 5, 2013, 9:36am UTC](https://forum.kirupa.com/t/draw-a-movement-grid-in-tile-based-game-tactics/331836 "2013-11-05T09:36:18Z")

</div>

Hai, i have created the tactics game in flash using ActionScript 3. But, i have a problem right now, i want to when i click 1 on the keyboard, the movement grid will be shown after select the player. But i couldn't do it…

---

## [Tutorial | Smooth Parallax Scrolling](https://forum.kirupa.com/t/tutorial-smooth-parallax-scrolling/331835)

<div class="topic-metadata">

**Author:** [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Replies:** 0\
**Last updated:** [November 5, 2013, 9:21am UTC](https://forum.kirupa.com/t/tutorial-smooth-parallax-scrolling/331835 "2013-11-05T09:21:27Z")

</div>

Howdy all Kirupa'ians, it's been many a year since my last post on these forums. And I just noticed I first joined in 2004! How time flies. OK, on with business. http://www.kirupa.com/html5/smooth\_parallax\_scrolling.ht…

---

## [Runtime argument error in Flash AS3](https://forum.kirupa.com/t/runtime-argument-error-in-flash-as3/331834)

<div class="topic-metadata">

**Author:** [@as3programmer01](https://forum.kirupa.com/u/as3programmer01)\
**Replies:** 0\
**Last updated:** [November 4, 2013, 11:18am UTC](https://forum.kirupa.com/t/runtime-argument-error-in-flash-as3/331834 "2013-11-04T11:18:51Z")

</div>

Hello Guys, I really need some advice. I am attempting to stream my webcam using AS3 code but I keep receiving this annoying error message in the output panel when I execute the code: ArgumentError: Error #2126: N…

---

## [Save and Clear button](https://forum.kirupa.com/t/save-and-clear-button/331833)

<div class="topic-metadata">

**Author:** [@joenowhere](https://forum.kirupa.com/u/joenowhere)\
**Replies:** 0\
**Last updated:** [November 4, 2013, 9:43am UTC](https://forum.kirupa.com/t/save-and-clear-button/331833 "2013-11-04T09:43:36Z")

</div>

\[COLOR=#333333\]\[FONT=Verdana\]HI, I'm new in Flash and I want to do a Job List in flash and put it on web, so my colleague can edit the list online and save it, so other can see what they are working on and which job is f…

---

## [TextField Input With Operators](https://forum.kirupa.com/t/textfield-input-with-operators/331829)

<div class="topic-metadata">

**Author:** [@Blablob](https://forum.kirupa.com/u/Blablob)\
**Replies:** 0\
**Last updated:** [November 3, 2013, 4:28pm UTC](https://forum.kirupa.com/t/textfield-input-with-operators/331829 "2013-11-03T16:28:49Z")

</div>

I have this game that has a number of textfields with input and restrictions. These affect things such as the player size and his speed and things like that. For the restrictions, this is what I have: input.restrict =…

---

## [How can I convert AS2 to AS3](https://forum.kirupa.com/t/how-can-i-convert-as2-to-as3/331828)

<div class="topic-metadata">

**Author:** [@ashadweb](https://forum.kirupa.com/u/ashadweb)\
**Replies:** 0\
**Last updated:** [November 2, 2013, 5:43pm UTC](https://forum.kirupa.com/t/how-can-i-convert-as2-to-as3/331828 "2013-11-02T17:43:21Z")

</div>

Hi I want to convert the below code to AS2 currently it is AS3 // Set variables for numbers we need in our equationsvar activatorWidth:int = activator.width; var activatorHeight:int = activator.height; var boundX:int …

---

## [Pass the parent class reference to son class](https://forum.kirupa.com/t/pass-the-parent-class-reference-to-son-class/331827)

<div class="topic-metadata">

**Author:** [@Vito\_Lipari](https://forum.kirupa.com/u/Vito_Lipari)\
**Replies:** 0\
**Last updated:** [November 2, 2013, 5:12pm UTC](https://forum.kirupa.com/t/pass-the-parent-class-reference-to-son-class/331827 "2013-11-02T17:12:31Z")

</div>

Hi to everybody, How can pass the parent class reference to a son class??? public class Game extends MovieClip{ public var cards : MyCards; public function Game(){ trace("this: " + this); // this: \[…

---

## [iOS app image Assets problem](https://forum.kirupa.com/t/ios-app-image-assets-problem/331825)

<div class="topic-metadata">

**Author:** [@zeeto](https://forum.kirupa.com/u/zeeto)\
**Replies:** 0\
**Last updated:** [November 1, 2013, 11:17am UTC](https://forum.kirupa.com/t/ios-app-image-assets-problem/331825 "2013-11-01T11:17:19Z")

</div>

Hello, I'm trying to develop very simple image portfolio app for iOS using AS3. I have difficulties to understand how to include image assets for my app. Due to various resolutions of the devices, I have various file…

---

## [Extracting Strings from Object (SQLite Database)](https://forum.kirupa.com/t/extracting-strings-from-object-sqlite-database/331824)

<div class="topic-metadata">

**Author:** [@PEProgrammer](https://forum.kirupa.com/u/PEProgrammer)\
**Replies:** 0\
**Last updated:** [October 31, 2013, 5:03pm UTC](https://forum.kirupa.com/t/extracting-strings-from-object-sqlite-database/331824 "2013-10-31T17:03:53Z")

</div>

Hello, I am wondering if I can kill two birds with one stone here. I am trying to SELECT items from an SQLite database, and I believe I am doing that successfully, even though my trace statements are returning a null.…

---

## [AS2 preloader + anim works locally, but fails when embeded in HTML](https://forum.kirupa.com/t/as2-preloader-anim-works-locally-but-fails-when-embeded-in-html/331823)

<div class="topic-metadata">

**Author:** [@Erik\_J](https://forum.kirupa.com/u/Erik_J)\
**Replies:** 0\
**Last updated:** [October 31, 2013, 1:40pm UTC](https://forum.kirupa.com/t/as2-preloader-anim-works-locally-but-fails-when-embeded-in-html/331823 "2013-10-31T13:40:52Z")

</div>

Hi Kirupa community, I've been strugling for hours now trying to get a very basic preloader to work in my finished and uploaded project. I'm working on an animated wish card. When exporting the swf with ctrl + enter…

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

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