# programming

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

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

**Page:** 929

---

## [Flash 4k Game Competition Announced](https://forum.kirupa.com/t/flash-4k-game-competition-announced/281264)

<div class="topic-metadata">

**Author:** [@urbansquall](https://forum.kirupa.com/u/urbansquall)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 5:41pm UTC](https://forum.kirupa.com/t/flash-4k-game-competition-announced/281264 "2009-02-06T17:41:33Z")

</div>

We're hosting a Flash 4k Game Competition that is officially kicking off today. There are some (albeit modest) prizes available to first and second place. If you're interested in participating you can get the full detail…

---

## [Dynamic Button call](https://forum.kirupa.com/t/dynamic-button-call/281262)

<div class="topic-metadata">

**Author:** [@jasonlijw](https://forum.kirupa.com/u/jasonlijw)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 5:31pm UTC](https://forum.kirupa.com/t/dynamic-button-call/281262 "2009-02-06T17:31:10Z")

</div>

I am building a grid of buttons dynamically in a for loop from XML. I am then assigning them button.label and button.name from the array. The grid appears, the buttons have the right label, the event.target.name method p…

---

## [FLASH input method changed to asian, can't use symbols anymore](https://forum.kirupa.com/t/flash-input-method-changed-to-asian-cant-use-symbols-anymore/281261)

<div class="topic-metadata">

**Author:** [@jayrich86](https://forum.kirupa.com/u/jayrich86)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 5:25pm UTC](https://forum.kirupa.com/t/flash-input-method-changed-to-asian-cant-use-symbols-anymore/281261 "2009-02-06T17:25:54Z")

</div>

I don't know what happened my input method is showing up as Japanese or Chinese or Korean, and characters like "/" and "}" and "%" on my keyboard are now not working or displaying strange characters. Any idea how to fix …

---

## [\\r \\n](https://forum.kirupa.com/t/r-n/281260)

<div class="topic-metadata">

**Author:** [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 5:14pm UTC](https://forum.kirupa.com/t/r-n/281260 "2009-02-06T17:14:36Z")

</div>

What do they do? (\\r ) I think but a not sure makes a new line, but what does \\r do

---

## [Pass Variables from one swf to another swf?](https://forum.kirupa.com/t/pass-variables-from-one-swf-to-another-swf/281255)

<div class="topic-metadata">

**Author:** [@frescono](https://forum.kirupa.com/u/frescono)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 4:16pm UTC](https://forum.kirupa.com/t/pass-variables-from-one-swf-to-another-swf/281255 "2009-02-06T16:16:11Z")

</div>

I have a swf with an input text box and a button. When the button is clicked, i need it to open another swf in a new window and pass the variables to a text box in the new window. Any ideas on how to do this???

---

## [ExternalInterface Issue](https://forum.kirupa.com/t/externalinterface-issue/281253)

<div class="topic-metadata">

**Author:** [@MaGiCpt](https://forum.kirupa.com/u/MaGiCpt)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:48pm UTC](https://forum.kirupa.com/t/externalinterface-issue/281253 "2009-02-06T15:48:04Z")

</div>

Hello there, Im using a js file to make a application communicate with my swf using the ExternalInterface. in the javascript file i use something like so: .CallFunction("\<invoke name=\\"mudarFilter\\"\>\<arguments\>\<stri…

---

## [Event hitTest](https://forum.kirupa.com/t/event-hittest/281249)

<div class="topic-metadata">

**Author:** [@trickeyd](https://forum.kirupa.com/u/trickeyd)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:26pm UTC](https://forum.kirupa.com/t/event-hittest/281249 "2009-02-06T15:26:00Z")

</div>

Hi everyone. I am creating a system with creatures that need to know when they hit each-other. At the moment I am using the following loop for each creature in each frame: if (!\_pregnant) { for(var i:Number =…

---

## [Video Player Errors](https://forum.kirupa.com/t/video-player-errors/281248)

<div class="topic-metadata">

**Author:** [@sholton311](https://forum.kirupa.com/u/sholton311)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:22pm UTC](https://forum.kirupa.com/t/video-player-errors/281248 "2009-02-06T15:22:54Z")

</div>

I have made an xml video viewer which works great, however I am getting output errors when I run it- I'm not sure why or what is being affected, but if anyone could help I'd appreciate it. The errors are as follows: …

---

## [Adding speed to bullets](https://forum.kirupa.com/t/adding-speed-to-bullets/281245)

<div class="topic-metadata">

**Author:** [@Drezer](https://forum.kirupa.com/u/Drezer)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:32pm UTC](https://forum.kirupa.com/t/adding-speed-to-bullets/281245 "2009-02-06T14:32:17Z")

</div>

I have finally got the movieclip to show up when i hit the ctrl key. but it just sits there because i have not yet added a speed. what would be the simplest way of doing this? what i want to move is a bullet.

---

## [\[AS2\] Strings and if statements](https://forum.kirupa.com/t/as2-strings-and-if-statements/281244)

<div class="topic-metadata">

**Author:** [@ConceptUK2009](https://forum.kirupa.com/u/ConceptUK2009)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:31pm UTC](https://forum.kirupa.com/t/as2-strings-and-if-statements/281244 "2009-02-06T14:31:33Z")

</div>

I want to have the whole of the argument in an if statement represented by a variable string. Is this possible? I am yet to get the code to work: var featureLimit:String = "featureType == \\"logo\_ci4\\" || featureType =…

---

## [Opposite of AddChildAt(sprite, 0);](https://forum.kirupa.com/t/opposite-of-addchildat-sprite-0/281243)

<div class="topic-metadata">

**Author:** [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:10pm UTC](https://forum.kirupa.com/t/opposite-of-addchildat-sprite-0/281243 "2009-02-06T14:10:29Z")

</div>

Hi all In my current game i have tried to add a sprite above an existing sprite. Usually i just do this in order of instantiation. However on this occasion it seems my UI is behind an existing object. In terms of the…

---

## [Protect Parts of my FLA](https://forum.kirupa.com/t/protect-parts-of-my-fla/281241)

<div class="topic-metadata">

**Author:** [@Tazbo](https://forum.kirupa.com/u/Tazbo)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:32pm UTC](https://forum.kirupa.com/t/protect-parts-of-my-fla/281241 "2009-02-06T13:32:20Z")

</div>

Hi Guys, I have created a flash file and the company I have created it for now wants the fla so they can make changes to certain parts of the action script. There are some elements that I want to protect as it took me …

---

## [Loading Title from XML](https://forum.kirupa.com/t/loading-title-from-xml/281236)

<div class="topic-metadata">

**Author:** [@bradders\_123](https://forum.kirupa.com/u/bradders_123)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 12:22pm UTC](https://forum.kirupa.com/t/loading-title-from-xml/281236 "2009-02-06T12:22:17Z")

</div>

I have an .xml file which is one I downloaded and modified. I'm trying to get flash to read the Title and display it in txt field inside a movie clip. Here is my xml code: \<?xml version="1.0" encoding="UTF-8"?\> \<gal…

---

## [My Two different Instance objects does not collide](https://forum.kirupa.com/t/my-two-different-instance-objects-does-not-collide/281235)

<div class="topic-metadata">

**Author:** [@kilamantok](https://forum.kirupa.com/u/kilamantok)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:22am UTC](https://forum.kirupa.com/t/my-two-different-instance-objects-does-not-collide/281235 "2009-02-06T11:22:47Z")

</div>

Thank you very much for giving some time to read my problem. Im building a shooter game where a bullet is call from a class and the enemy is also called from a class. I cant make them collide. In order for stuff to s…

---

## [Find out the parent of a tween](https://forum.kirupa.com/t/find-out-the-parent-of-a-tween/281233)

<div class="topic-metadata">

**Author:** [@Mistykal](https://forum.kirupa.com/u/Mistykal)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:11am UTC](https://forum.kirupa.com/t/find-out-the-parent-of-a-tween/281233 "2009-02-06T11:11:34Z")

</div>

Hi, i'm having trouble trying to get the parent object (target movieclip) of a tween. example: myTween.addEventListener(TweenEvent.MOTION\_FINISH, doStuff); function doStuff(e:TweenEvent):void { var mc = e.target; …

---

## [Class instance objects not colliding (gskinner's collision)](https://forum.kirupa.com/t/class-instance-objects-not-colliding-gskinners-collision/281232)

<div class="topic-metadata">

**Author:** [@kilamantok](https://forum.kirupa.com/u/kilamantok)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:09am UTC](https://forum.kirupa.com/t/class-instance-objects-not-colliding-gskinners-collision/281232 "2009-02-06T11:09:25Z")

</div>

Thank you very much for giving some time to read my problem. Im building a shooter game where a bullet is called from a class and the enemy is also called from a class. I cant make them collide. In order for stuff to…

---

## [Updating Flash movie when data change occurs in MySQL](https://forum.kirupa.com/t/updating-flash-movie-when-data-change-occurs-in-mysql/281231)

<div class="topic-metadata">

**Author:** [@legalizeit](https://forum.kirupa.com/u/legalizeit)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 10:47am UTC](https://forum.kirupa.com/t/updating-flash-movie-when-data-change-occurs-in-mysql/281231 "2009-02-06T10:47:29Z")

</div>

Hey! I'm trying to find a way how to update a flash movie when the data changes in MySQL database. There is a way for this in AIR that I haven't tried (http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/flash/events/SQLUpdate…

---

## [Trigger button state via keyboard press](https://forum.kirupa.com/t/trigger-button-state-via-keyboard-press/281230)

<div class="topic-metadata">

**Author:** [@koen\_vb](https://forum.kirupa.com/u/koen_vb)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 10:32am UTC](https://forum.kirupa.com/t/trigger-button-state-via-keyboard-press/281230 "2009-02-06T10:32:59Z")

</div>

Hi all, Is there a way to trigger a buttonState for example the upState via actionscript? I tried this but it seems not to work? two\_btn.addEventListener(MouseEvent.MOUSE\_OVER,testEvent); …

---

## [AS3 Gridded thumbs](https://forum.kirupa.com/t/as3-gridded-thumbs/281229)

<div class="topic-metadata">

**Author:** [@pixi](https://forum.kirupa.com/u/pixi)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 8:56am UTC](https://forum.kirupa.com/t/as3-gridded-thumbs/281229 "2009-02-06T08:56:24Z")

</div>

Hi All , looking for a script that loads 6 logo image thumbs into a grid (randomly from folder), with each thumb having a rollover image and link.. Basically the logo area on this page : I have about 30 client logos …

---

## [Controlling flv with custom buttons](https://forum.kirupa.com/t/controlling-flv-with-custom-buttons/281228)

<div class="topic-metadata">

**Author:** [@Strikeplate](https://forum.kirupa.com/u/Strikeplate)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 7:28am UTC](https://forum.kirupa.com/t/controlling-flv-with-custom-buttons/281228 "2009-02-06T07:28:42Z")

</div>

Greetings. I have created a presentation which is mostly graphics and voiceover. I have created a few custom buttons to allow the user to pause, start over, etc. (not video). In a few places I am calling to external fl…

---

## [I struck up with uploading flash data into HTML](https://forum.kirupa.com/t/i-struck-up-with-uploading-flash-data-into-html/281226)

<div class="topic-metadata">

**Author:** [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 6:59am UTC](https://forum.kirupa.com/t/i-struck-up-with-uploading-flash-data-into-html/281226 "2009-02-06T06:59:40Z")

</div>

Hi all, I am new to flash. I know animation and a litle bit of ActionScript 3.0, got struck in this way: Presently, I am working with flash CS3 and ActionScript 3.0. Suppose, I have…

---

## [as3 fscommand](https://forum.kirupa.com/t/as3-fscommand/281225)

<div class="topic-metadata">

**Author:** [@missileh](https://forum.kirupa.com/u/missileh)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 6:48am UTC](https://forum.kirupa.com/t/as3-fscommand/281225 "2009-02-06T06:48:28Z")

</div>

as2 swf (main.swf) is loaded using loadMovieNum at level0 in another as2 swf (loader.swf). I create a projector file for loader.swf (loader.exe). In publish settings, i kept the flash player as 8. Now the projector f…

---

## [Updating database problem](https://forum.kirupa.com/t/updating-database-problem/281222)

<div class="topic-metadata">

**Author:** [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 5:21am UTC](https://forum.kirupa.com/t/updating-database-problem/281222 "2009-02-06T05:21:23Z")

</div>

I have been trying to update info in my database all day. Can someone tell me why my code won't update info currently in the database??? Thanks! \<font face="Arial"\> \<?php // story\_submit.php // add / modify sto…

---

## [Z position performance](https://forum.kirupa.com/t/z-position-performance/281220)

<div class="topic-metadata">

**Author:** [@enridp](https://forum.kirupa.com/u/enridp)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 3:15am UTC](https://forum.kirupa.com/t/z-position-performance/281220 "2009-02-06T03:15:50Z")

</div>

Hello ! I'm trying to make a floor in 3D, the user can rotate it i X axis and move in any coordinate (X,Y,Z). The code works good, but when I move in Z coordinate all the moves are really slow. I think it's because Flash…

---

## [Movie Clips in for loop](https://forum.kirupa.com/t/movie-clips-in-for-loop/281217)

<div class="topic-metadata">

**Author:** [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:33am UTC](https://forum.kirupa.com/t/movie-clips-in-for-loop/281217 "2009-02-06T02:33:30Z")

</div>

I've got a MovieClip with a linkage name of trackInfo. I'm trying to get XML information in a for loop to create and populate instances of the MovieClip for the length of the XML file. Here's what I have so far: va…

---

## [Keep my dragable MC from going out of frame](https://forum.kirupa.com/t/keep-my-dragable-mc-from-going-out-of-frame/281216)

<div class="topic-metadata">

**Author:** [@p\_ziity](https://forum.kirupa.com/u/p_ziity)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:21am UTC](https://forum.kirupa.com/t/keep-my-dragable-mc-from-going-out-of-frame/281216 "2009-02-06T02:21:51Z")

</div>

I'm currently working on a flash puzzle game and I was wondering if anyone knew of an easy way to keep my puzzle pieces from being able to be drug out of frame?

---

## [Youtube player embedded in flash](https://forum.kirupa.com/t/youtube-player-embedded-in-flash/281215)

<div class="topic-metadata">

**Author:** [@samuels27921](https://forum.kirupa.com/u/samuels27921)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:18am UTC](https://forum.kirupa.com/t/youtube-player-embedded-in-flash/281215 "2009-02-06T02:18:56Z")

</div>

I have embed the youtube flash player via this code. // create a MovieClip to load the player into var ytplayer:MovieClip = \_root.createEmptyMovieClip("ytplayer", 1); // create a listener object for the MovieClipLoa…

---

## [HOw to Identify Nested MovieClips to Extrenal Classes](https://forum.kirupa.com/t/how-to-identify-nested-movieclips-to-extrenal-classes/281214)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:06am UTC](https://forum.kirupa.com/t/how-to-identify-nested-movieclips-to-extrenal-classes/281214 "2009-02-06T02:06:17Z")

</div>

I have a couple of nested movieclips inside an interface file. There are some external movies that are imported (and their scripts call functions within the main class), and when I publish any of these I get these errors…

---

## [How to modify this menu to react to mouse position?](https://forum.kirupa.com/t/how-to-modify-this-menu-to-react-to-mouse-position/281212)

<div class="topic-metadata">

**Author:** [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:23am UTC](https://forum.kirupa.com/t/how-to-modify-this-menu-to-react-to-mouse-position/281212 "2009-02-06T01:23:26Z")

</div>

I am trying to modify a fla i got from flash den. http://flashden.net/item/xml-driven-vertical-zoom-menu/21047 It works by clicking on menu items, and or using your mouse wheel. I am trying to make it so that it resp…

---

## [The Concept of Programming Languages](https://forum.kirupa.com/t/the-concept-of-programming-languages/281208)

<div class="topic-metadata">

**Author:** [@smallDot](https://forum.kirupa.com/u/smallDot)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:12am UTC](https://forum.kirupa.com/t/the-concept-of-programming-languages/281208 "2009-02-06T01:12:33Z")

</div>

Hi, i 2 days :stare: ago, i was trying to understand this code, i am not a programmer, but try to learn AS3. every time i wrote this code without the tutorial a make mistakes, and every time i try to understand the logic…

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

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