# programming

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

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

**Page:** 314

---

## [Help with Timer](https://forum.kirupa.com/t/help-with-timer/320125)

<div class="topic-metadata">

**Author:** [@djcoon](https://forum.kirupa.com/u/djcoon)\
**Replies:** 0\
**Last updated:** [March 15, 2011, 12:03am UTC](https://forum.kirupa.com/t/help-with-timer/320125 "2011-03-15T00:03:14Z")

</div>

Hi, I need some help! I'm trying to show a question from a list of 10 question at random that also has a timer set for 2 secs. After the 2 secs are up, another question is selected from an array. Below is my code. Is t…

---

## [Dynamic MC's This Way?](https://forum.kirupa.com/t/dynamic-mcs-this-way/320124)

<div class="topic-metadata">

**Author:** [@megshea](https://forum.kirupa.com/u/megshea)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 10:59pm UTC](https://forum.kirupa.com/t/dynamic-mcs-this-way/320124 "2011-03-14T22:59:35Z")

</div>

Hey Gang, I'm trying to make some dynamic movie clips, with a drawn rectangle inside a for loop. But I can't figure out if an MC can be named like an Array. How close is this? function init(e:Event = null):void { …

---

## [Issues with currentTarget - Somebody called a function?](https://forum.kirupa.com/t/issues-with-currenttarget-somebody-called-a-function/320120)

<div class="topic-metadata">

**Author:** [@kalasnjikov](https://forum.kirupa.com/u/kalasnjikov)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 9:13pm UTC](https://forum.kirupa.com/t/issues-with-currenttarget-somebody-called-a-function/320120 "2011-03-14T21:13:00Z")

</div>

Disclaimer: I am a bit of a hack with coding - I try to follow good practices, but I am ignorant and there are many holes in my knowledge. All are encouraged to point out any glaring stupidities in my approach - I will…

---

## [8-way character movement help?](https://forum.kirupa.com/t/8-way-character-movement-help/320119)

<div class="topic-metadata">

**Author:** [@asdfol](https://forum.kirupa.com/u/asdfol)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 8:19pm UTC](https://forum.kirupa.com/t/8-way-character-movement-help/320119 "2011-03-14T20:19:25Z")

</div>

Right now I have all the animations for each direction in a movieclip within one movieclip. However, when I use the arrow keys to move the walking animations don't play. When I stop, the appropriate animations play, howe…

---

## [Save and Load XML File](https://forum.kirupa.com/t/save-and-load-xml-file/320118)

<div class="topic-metadata">

**Author:** [@Piruka](https://forum.kirupa.com/u/Piruka)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 7:24pm UTC](https://forum.kirupa.com/t/save-and-load-xml-file/320118 "2011-03-14T19:24:17Z")

</div>

Hi It's my first post here, and i have a doubt... I need save a MovieClip in XML format, then i wrote this code below: private function getDegrafaData(e:MouseEvent):void { var xml:XML = \_canvas.getObjectData(Forma…

---

## [Drag and Drop music player help](https://forum.kirupa.com/t/drag-and-drop-music-player-help/320117)

<div class="topic-metadata">

**Author:** [@felixjarrey](https://forum.kirupa.com/u/felixjarrey)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 7:07pm UTC](https://forum.kirupa.com/t/drag-and-drop-music-player-help/320117 "2011-03-14T19:07:29Z")

</div>

Hi im having some problems getting my music player to work, the idea is to drag a movie clip onto a target which automatically loads a playlist into the music player, i can get the movie clips to drag and load one playli…

---

## [Twitter widgets for a website - Help!](https://forum.kirupa.com/t/twitter-widgets-for-a-website-help/320114)

<div class="topic-metadata">

**Author:** [@Rarity](https://forum.kirupa.com/u/Rarity)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 6:04pm UTC](https://forum.kirupa.com/t/twitter-widgets-for-a-website-help/320114 "2011-03-14T18:04:18Z")

</div>

I've been following an online tutorial; republicofcode.com/tutorials/flash/twitter\_widget/2.php I'm using CS5, AS3 and this is my code so far (I didn't complete the tutorial, as when it said to test it and I kept getti…

---

## [Problem with packager for iphone and images](https://forum.kirupa.com/t/problem-with-packager-for-iphone-and-images/320113)

<div class="topic-metadata">

**Author:** [@n0ldor](https://forum.kirupa.com/u/n0ldor)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 5:21pm UTC](https://forum.kirupa.com/t/problem-with-packager-for-iphone-and-images/320113 "2011-03-14T17:21:25Z")

</div>

Hi, first Sorry for my english I'm programming an application for iphone in flash cs5, the application is a gallery. In the application i load 20 jpgs more or less and i put the jpgs in a vertical list and i do scroll,…

---

## [Save input to file](https://forum.kirupa.com/t/save-input-to-file/320112)

<div class="topic-metadata">

**Author:** [@vettenut](https://forum.kirupa.com/u/vettenut)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 5:12pm UTC](https://forum.kirupa.com/t/save-input-to-file/320112 "2011-03-14T17:12:39Z")

</div>

I can not find how to save name & email entered to logfile.dat with the following code. Can anyone help me? Thank you. \<html\> \<HEAD\> \<SCRIPT language="JavaScript"\> function WriteFile(name, email) { var fso = …

---

## [Retro game remake problem](https://forum.kirupa.com/t/retro-game-remake-problem/320111)

<div class="topic-metadata">

**Author:** [@TurboTuTone](https://forum.kirupa.com/u/TurboTuTone)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 4:42pm UTC](https://forum.kirupa.com/t/retro-game-remake-problem/320111 "2011-03-14T16:42:20Z")

</div>

Ive been trying to figure out the player movement of an old atari lynx game, but i cant get a good grasp of how to it. Perhaps someone here has a clue on how to do it. To help illustrate the problem i have this image: \[…

---

## [Dynamically add movie clips to stage](https://forum.kirupa.com/t/dynamically-add-movie-clips-to-stage/320109)

<div class="topic-metadata">

**Author:** [@typhoon101](https://forum.kirupa.com/u/typhoon101)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 3:17pm UTC](https://forum.kirupa.com/t/dynamically-add-movie-clips-to-stage/320109 "2011-03-14T15:17:28Z")

</div>

Hi. I have an array containing names of movie clips. I would like to loop through the array, and add the movie clips to the stage. I have the following code, but obviously this doesn't work. Can anyone steer me in…

---

## [File will not test movie/publish correctly](https://forum.kirupa.com/t/file-will-not-test-movie-publish-correctly/320108)

<div class="topic-metadata">

**Author:** [@Aneamero](https://forum.kirupa.com/u/Aneamero)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 3:03pm UTC](https://forum.kirupa.com/t/file-will-not-test-movie-publish-correctly/320108 "2011-03-14T15:03:40Z")

</div>

This might be a stupid question, but all the same it's frustrating me... I have a flash project I've recently finished, but I can't publish it because whenever I do, it only publishes the left hand corner of the pictur…

---

## [Dynamically addcue points to flv and seekToNextNavCuePoint](https://forum.kirupa.com/t/dynamically-addcue-points-to-flv-and-seektonextnavcuepoint/320105)

<div class="topic-metadata">

**Author:** [@aditya\_flash](https://forum.kirupa.com/u/aditya_flash)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 2:00pm UTC](https://forum.kirupa.com/t/dynamically-addcue-points-to-flv-and-seektonextnavcuepoint/320105 "2011-03-14T14:00:22Z")

</div>

Hi, i have a flvplayback component onto which i am loading a video. To mimic next frame and previous frame actions i am adding cue points to the loaded for every second of its length. The next frame /previous frame f…

---

## [NetConnection seems to change parent movieclip](https://forum.kirupa.com/t/netconnection-seems-to-change-parent-movieclip/320104)

<div class="topic-metadata">

**Author:** [@alexvanniel](https://forum.kirupa.com/u/alexvanniel)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 1:23pm UTC](https://forum.kirupa.com/t/netconnection-seems-to-change-parent-movieclip/320104 "2011-03-14T13:23:44Z")

</div>

Hi all, I am new to this forum regarding to posting, although I have not before posted anything. Until now that is. I am experiencing quite a strange phenomenon: after I make a succesfull connection to my Red5 flash st…

---

## [Flash & XML Photo Gallery with Categories, Thumbnails and Descriptions in as3](https://forum.kirupa.com/t/flash-xml-photo-gallery-with-categories-thumbnails-and-descriptions-in-as3/320102)

<div class="topic-metadata">

**Author:** [@animaster2011](https://forum.kirupa.com/u/animaster2011)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 1:18pm UTC](https://forum.kirupa.com/t/flash-xml-photo-gallery-with-categories-thumbnails-and-descriptions-in-as3/320102 "2011-03-14T13:18:31Z")

</div>

hi i want create XML Photo Gallery with Categories in as3 on button click ? how to create please help me?

---

## [TLF text AS3 ressource?](https://forum.kirupa.com/t/tlf-text-as3-ressource/320100)

<div class="topic-metadata">

**Author:** [@acto](https://forum.kirupa.com/u/acto)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 12:16pm UTC](https://forum.kirupa.com/t/tlf-text-as3-ressource/320100 "2011-03-14T12:16:46Z")

</div>

Hi, I am struggling with TLF text, I searched and searched and can't find a GOOD tutorial or complete method on how to format TLF text with AS3, I need to: Load dynamic text into dynamic TLF text field Set custom f…

---

## [Replacing array and removing previous children](https://forum.kirupa.com/t/replacing-array-and-removing-previous-children/320099)

<div class="topic-metadata">

**Author:** [@MVDW](https://forum.kirupa.com/u/MVDW)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 12:05pm UTC](https://forum.kirupa.com/t/replacing-array-and-removing-previous-children/320099 "2011-03-14T12:05:05Z")

</div>

Hey all. I have a problem with replacing values in an array. I have this code that takes the string values out of an XML file: \` \*\* \[COLOR=#0033ff\] \[COLOR=#0033ff\]public\[/COLOR\] \[/COLOR\] \*\*\*\*\[SIZE=2\]\[COLOR=#33…

---

## [Changing stage displays?](https://forum.kirupa.com/t/changing-stage-displays/320097)

<div class="topic-metadata">

**Author:** [@takearushfan](https://forum.kirupa.com/u/takearushfan)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 11:55am UTC](https://forum.kirupa.com/t/changing-stage-displays/320097 "2011-03-14T11:55:18Z")

</div>

Hi all, I've attached a simple example of what I'd like my ideal initial screen to look like (not exact but rather in a nutshell)... I know I should know this by now, but I don't: How do you display the proper page…

---

## [loadMovieNum on hitTest](https://forum.kirupa.com/t/loadmovienum-on-hittest/320096)

<div class="topic-metadata">

**Author:** [@Jude](https://forum.kirupa.com/u/Jude)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 11:16am UTC](https://forum.kirupa.com/t/loadmovienum-on-hittest/320096 "2011-03-14T11:16:08Z")

</div>

Hi folks, As a novice I'm going round in circles with a hitTest problem. I have a character moving around a maze picking up coins off the ground as it goes. When it hits a coin a new movie should be opened and is then …

---

## [hitTest coordinate dislocation in loaded swf](https://forum.kirupa.com/t/hittest-coordinate-dislocation-in-loaded-swf/320095)

<div class="topic-metadata">

**Author:** [@wille](https://forum.kirupa.com/u/wille)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 8:56am UTC](https://forum.kirupa.com/t/hittest-coordinate-dislocation-in-loaded-swf/320095 "2011-03-14T08:56:39Z")

</div>

Hi The swf (slideshow) has arrows that are activated by hitTests. When I load the slidewhow swf into another, larger one (e. g. att 100, 100,) a strange thing happens: The hitTest reacts with a mouse displacement of …

---

## [Security - spammers](https://forum.kirupa.com/t/security-spammers/320093)

<div class="topic-metadata">

**Author:** [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 7:56am UTC](https://forum.kirupa.com/t/security-spammers/320093 "2011-03-14T07:56:52Z")

</div>

Hi there, I found out this morning that my site got hacked by i assume a spammer who added a line onto my index page and dump files and folders. I do keep in mind security in terms of username and password and i still …

---

## [OOP Best Practices - Global Booleans Method Question](https://forum.kirupa.com/t/oop-best-practices-global-booleans-method-question/320090)

<div class="topic-metadata">

**Author:** [@bisket](https://forum.kirupa.com/u/bisket)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 5:14am UTC](https://forum.kirupa.com/t/oop-best-practices-global-booleans-method-question/320090 "2011-03-14T05:14:37Z")

</div>

Hey folks, Before anything I gotta say how wonderful this community always is and has been. I have a game that is using many classes. I'd like my classes to be self-sustaining, to a point. Example: I have a Reticul…

---

## [How to get stream width](https://forum.kirupa.com/t/how-to-get-stream-width/320089)

<div class="topic-metadata">

**Author:** [@project3](https://forum.kirupa.com/u/project3)\
**Replies:** 0\
**Last updated:** [March 14, 2011, 3:03am UTC](https://forum.kirupa.com/t/how-to-get-stream-width/320089 "2011-03-14T03:03:57Z")

</div>

I have a cam streaming through fms and I can see it in the flash application I built. What I want to do is get the width and height of that stream how can I do that. I am trying to do it with metadata but not having any …

---

## [setChildIndex , issue](https://forum.kirupa.com/t/setchildindex-issue/320086)

<div class="topic-metadata">

**Author:** [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 11:13pm UTC](https://forum.kirupa.com/t/setchildindex-issue/320086 "2011-03-13T23:13:11Z")

</div>

I'm trying to set the the index/z order of objectx use the y value as a base, : MapObjects i derived from MovieClip perspthings is an associated array setZOrder the function is called after a mouse event, so my code is …

---

## [Finding real objects from 3D getObjectsUnderPoint: help?](https://forum.kirupa.com/t/finding-real-objects-from-3d-getobjectsunderpoint-help/320085)

<div class="topic-metadata">

**Author:** [@tomgrinsted](https://forum.kirupa.com/u/tomgrinsted)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 11:08pm UTC](https://forum.kirupa.com/t/finding-real-objects-from-3d-getobjectsunderpoint-help/320085 "2011-03-13T23:08:44Z")

</div>

This is doing my head in. I want to iterate though a number objects as found in getObjectsUnderPoint. The idea is to fire off an event in one of those objects (it's a class that extends MovieClip). However, the objec…

---

## [Tutorial: Referencing HTML Elements via JavaScript](https://forum.kirupa.com/t/tutorial-referencing-html-elements-via-javascript/320084)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 10:03pm UTC](https://forum.kirupa.com/t/tutorial-referencing-html-elements-via-javascript/320084 "2011-03-13T22:03:46Z")

</div>

Hi everyone, This is the place to discuss anything regarding the Referencing HTML Elements via JavaScript tutorial \[smile\] Cheers, Kirupa :hugegrin:

---

## [(as2) if / then conditional - simple quiz](https://forum.kirupa.com/t/as2-if-then-conditional-simple-quiz/320082)

<div class="topic-metadata">

**Author:** [@ryantland](https://forum.kirupa.com/u/ryantland)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 8:06pm UTC](https://forum.kirupa.com/t/as2-if-then-conditional-simple-quiz/320082 "2011-03-13T20:06:53Z")

</div>

trying to make a 3 question quiz on a 300x250 banner in flash. I am so close. So close. If 2 of 3 questions are answered 'yes', it's should relay one function (playEndScreenYes()). If 2 of 3 questions are answered 'no', …

---

## [XML: Select only certain "nodes"?](https://forum.kirupa.com/t/xml-select-only-certain-nodes/320081)

<div class="topic-metadata">

**Author:** [@sufire](https://forum.kirupa.com/u/sufire)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 7:50pm UTC](https://forum.kirupa.com/t/xml-select-only-certain-nodes/320081 "2011-03-13T19:50:53Z")

</div>

Here is my XML. I have removed A LOT of what is actually in the XML file I am working with, for simplicity: \<State\> \<Center ID="BOCC"\> \<Dispatch\> \<Log\> \<LogType\>Traffic Collision - Ambulance Respon…

---

## [Adding button with dynamic text fields](https://forum.kirupa.com/t/adding-button-with-dynamic-text-fields/320079)

<div class="topic-metadata">

**Author:** [@ttmt](https://forum.kirupa.com/u/ttmt)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 6:59pm UTC](https://forum.kirupa.com/t/adding-button-with-dynamic-text-fields/320079 "2011-03-13T18:59:39Z")

</div>

Adding button with dynamic text fields Hi all I haven't used flash for a while so I'm a bit rusty. I'm simple trying to add a Button with a dynamic text field and a over state to the button that changes the color o…

---

## [Displaying Google Maps in Flash - Page 1](https://forum.kirupa.com/t/displaying-google-maps-in-flash-page-1/320078)

<div class="topic-metadata">

**Author:** [@mnu7](https://forum.kirupa.com/u/mnu7)\
**Replies:** 0\
**Last updated:** [March 13, 2011, 6:29pm UTC](https://forum.kirupa.com/t/displaying-google-maps-in-flash-page-1/320078 "2011-03-13T18:29:47Z")

</div>

In my application I tried to use google map with help of "Displaying Google Maps in Flash - Page 1" tutorial But get following error 1046: Type was not found or was not a compile-time constant: DirectionsEvent. What …

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

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