# programming

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

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

**Page:** 493

---

## [Arrays utterly hostile to innocent noob](https://forum.kirupa.com/t/arrays-utterly-hostile-to-innocent-noob/309315)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 5:07am UTC](https://forum.kirupa.com/t/arrays-utterly-hostile-to-innocent-noob/309315 "2010-05-12T05:07:21Z")

</div>

What I'm trying to do below in AS3 is something I've done in AS2 so many times I could do it drunk in the dark. Here's the deal. I have a bunch of buttons on the stage. Those are in an array and I've gotten them to wor…

---

## [Selecting units by clicking and draging](https://forum.kirupa.com/t/selecting-units-by-clicking-and-draging/309314)

<div class="topic-metadata">

**Author:** [@plablugoo](https://forum.kirupa.com/u/plablugoo)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 4:25am UTC](https://forum.kirupa.com/t/selecting-units-by-clicking-and-draging/309314 "2010-05-12T04:25:26Z")

</div>

hey i have this code for selecting dots on the screen by clicking and draging but when i use the arrow key to move one of the dots it stops working does anyone know why this is? k = new Object(); // variable stating i…

---

## [Papervision: Black seams around model](https://forum.kirupa.com/t/papervision-black-seams-around-model/309313)

<div class="topic-metadata">

**Author:** [@DanTheMan](https://forum.kirupa.com/u/DanTheMan)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 3:55am UTC](https://forum.kirupa.com/t/papervision-black-seams-around-model/309313 "2010-05-12T03:55:02Z")

</div>

Hey guys, if you look at the results I have so far under this link you will notice that around the model appear very thin black lines. I created the cup using 3DS max 2009. I assigned two materials to it and exported…

---

## [Open ad before playing external embedded movie](https://forum.kirupa.com/t/open-ad-before-playing-external-embedded-movie/309311)

<div class="topic-metadata">

**Author:** [@latchet](https://forum.kirupa.com/u/latchet)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 3:28am UTC](https://forum.kirupa.com/t/open-ad-before-playing-external-embedded-movie/309311 "2010-05-12T03:28:07Z")

</div>

Hello, I have a website with embedded external videos. The movies start playing when the user clicks the play button. I would like to create a preloader which opens an ad when clicked, and then allows the user to …

---

## [Hittesting movieclip with movement inside it](https://forum.kirupa.com/t/hittesting-movieclip-with-movement-inside-it/309310)

<div class="topic-metadata">

**Author:** [@MaxGhost](https://forum.kirupa.com/u/MaxGhost)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 3:15am UTC](https://forum.kirupa.com/t/hittesting-movieclip-with-movement-inside-it/309310 "2010-05-12T03:15:04Z")

</div>

In short, I'm making a game where your character must touch rings (big ovals) that are moving up and down with a motion tween (with easing). I attach these movies and push them into an array. For the hittesting, nothing …

---

## [Somebody please help me with this coding issue,](https://forum.kirupa.com/t/somebody-please-help-me-with-this-coding-issue/309304)

<div class="topic-metadata">

**Author:** [@taylan](https://forum.kirupa.com/u/taylan)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 8:49pm UTC](https://forum.kirupa.com/t/somebody-please-help-me-with-this-coding-issue/309304 "2010-05-11T20:49:39Z")

</div>

I can not locate where the problem is coming from, I am trying to make an online game and it keeps telling me there's an error with my public function:'stage.addEventListener...onKeyPressed)...' It may be something simpl…

---

## [Arghh possibly undefined..cant access function](https://forum.kirupa.com/t/arghh-possibly-undefined-cant-access-function/309301)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 6:44pm UTC](https://forum.kirupa.com/t/arghh-possibly-undefined-cant-access-function/309301 "2010-05-11T18:44:47Z")

</div>

Here's my code package { import flash.display.MovieClip; import flash.events.\*; import flash.utils.Timer; public class Game extends MovieClip { public var ship:Ship = ne…

---

## [OnPress navigates to a Cue Point in FLV?](https://forum.kirupa.com/t/onpress-navigates-to-a-cue-point-in-flv/309298)

<div class="topic-metadata">

**Author:** [@mikedkap](https://forum.kirupa.com/u/mikedkap)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 6:07pm UTC](https://forum.kirupa.com/t/onpress-navigates-to-a-cue-point-in-flv/309298 "2010-05-11T18:07:07Z")

</div>

Hey All - I'm trying to use some buttons to navigate through an FLV with cue points. Here is an example of the code I'm using so far, but I'm getting an Invail Seek error in my output. Any help would be great. Than…

---

## [Is there ever a MOUSE\_OVER without a MOUSE\_OUT?](https://forum.kirupa.com/t/is-there-ever-a-mouse-over-without-a-mouse-out/309297)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 5:56pm UTC](https://forum.kirupa.com/t/is-there-ever-a-mouse-over-without-a-mouse-out/309297 "2010-05-11T17:56:51Z")

</div>

Hm... The title maybe isn't clear enough, oh well. I'm just wondering if Flash is designed to ALWAYS dispatch a MOUSE\_OUT after a MOUSE\_OVER? Or will there ever be "hickups", for example, if the mouse is hovering ove…

---

## [CSS editor for site users?](https://forum.kirupa.com/t/css-editor-for-site-users/309296)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 5:45pm UTC](https://forum.kirupa.com/t/css-editor-for-site-users/309296 "2010-05-11T17:45:20Z")

</div>

I really have no idea how to ask this question (so if you have any suggestions for a better thread title, please post them), but here is the deal... I am creating a "banner system" where 'advertisers' are allowed to se…

---

## [Spacing depending on text width of dynamically generated buttons help!](https://forum.kirupa.com/t/spacing-depending-on-text-width-of-dynamically-generated-buttons-help/309291)

<div class="topic-metadata">

**Author:** [@alejandroy](https://forum.kirupa.com/u/alejandroy)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 4:54pm UTC](https://forum.kirupa.com/t/spacing-depending-on-text-width-of-dynamically-generated-buttons-help/309291 "2010-05-11T16:54:14Z")

</div>

I have the following AS2 code which creates dynamic buttons based on an array: var labels\_array:Array = new Array({label\_txt:"\>\> arquitectura industrial", gotoX:"partners"}, {label\_txt:"\>\> edificación", gotoX:"team"})…

---

## [Flash Menu, HTML content, and Z-index](https://forum.kirupa.com/t/flash-menu-html-content-and-z-index/309288)

<div class="topic-metadata">

**Author:** [@jtyson859](https://forum.kirupa.com/u/jtyson859)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 3:40pm UTC](https://forum.kirupa.com/t/flash-menu-html-content-and-z-index/309288 "2010-05-11T15:40:36Z")

</div>

I have a flash menu that needs to overlap HTML content. I have already done this by using a negative margin on the HTML content and setting the flash menu to transparent. The problem is all the HTML links that are 'un…

---

## [Flash refuses to publish swc](https://forum.kirupa.com/t/flash-refuses-to-publish-swc/309281)

<div class="topic-metadata">

**Author:** [@fikontrollet](https://forum.kirupa.com/u/fikontrollet)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 1:40pm UTC](https://forum.kirupa.com/t/flash-refuses-to-publish-swc/309281 "2010-05-11T13:40:42Z")

</div>

Both my cs3 and cs4 refuses to publish an SWC although I have checked the "publish swc"-box, and i get no thrown errors or anything. It publishes everything else just fine, any ideas what might cause this (both cs3 and…

---

## [Dynamic xml based grid gallery - Interesting captions problem](https://forum.kirupa.com/t/dynamic-xml-based-grid-gallery-interesting-captions-problem/309279)

<div class="topic-metadata">

**Author:** [@phatmambo](https://forum.kirupa.com/u/phatmambo)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 1:13pm UTC](https://forum.kirupa.com/t/dynamic-xml-based-grid-gallery-interesting-captions-problem/309279 "2010-05-11T13:13:44Z")

</div>

I have a store style website that uses a grid format gallery to display a grid of thumbnail products which can then be clicked. http://www.ruxx.co.uk/test I have created xml captions that sit ontop of each thumbnail …

---

## [Loading XML data into dynamic text field using a class](https://forum.kirupa.com/t/loading-xml-data-into-dynamic-text-field-using-a-class/309276)

<div class="topic-metadata">

**Author:** [@flashrocket](https://forum.kirupa.com/u/flashrocket)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 11:28am UTC](https://forum.kirupa.com/t/loading-xml-data-into-dynamic-text-field-using-a-class/309276 "2010-05-11T11:28:06Z")

</div>

Hi, I'm quite new to ActionScript and would be grateful for any help here. I want to load text into a dynamic text field (called 'about\_tab') using a class depending on the language selected (by clicking on a flag ic…

---

## [NetStream.time is not correct](https://forum.kirupa.com/t/netstream-time-is-not-correct/309275)

<div class="topic-metadata">

**Author:** [@Tinelise](https://forum.kirupa.com/u/Tinelise)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 11:00am UTC](https://forum.kirupa.com/t/netstream-time-is-not-correct/309275 "2010-05-11T11:00:33Z")

</div>

I'm recording videos with fms and netstream. When I try to watch them via connecting to my netConnection and play them via Video/NetStream the ns.time seems to behave wierd. I'm tracing the ns.time: \[trace\] 1.906 \[tr…

---

## [Create sound file and download](https://forum.kirupa.com/t/create-sound-file-and-download/309274)

<div class="topic-metadata">

**Author:** [@amaze](https://forum.kirupa.com/u/amaze)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 10:31am UTC](https://forum.kirupa.com/t/create-sound-file-and-download/309274 "2010-05-11T10:31:50Z")

</div>

Hi all, I am creating a sound mixer in AS3 and I want the user to be able to download the final mix. The mixer has 7 different sounds that loads from the library and the user changes the 7 volumes with the use of volum…

---

## [Accessing an instance of a symbol from AS3](https://forum.kirupa.com/t/accessing-an-instance-of-a-symbol-from-as3/309272)

<div class="topic-metadata">

**Author:** [@pep\_castefa](https://forum.kirupa.com/u/pep_castefa)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 9:45am UTC](https://forum.kirupa.com/t/accessing-an-instance-of-a-symbol-from-as3/309272 "2010-05-11T09:45:41Z")

</div>

Hi... I have a symbol (of type movie clip) which is exported for action with AS3 as, say clsAux. From an AS file, I extend this class to program some methods to interact with it The movie clip has, inside, an instance of…

---

## [Making Code Reusable (Help)](https://forum.kirupa.com/t/making-code-reusable-help/309270)

<div class="topic-metadata">

**Author:** [@wispas](https://forum.kirupa.com/u/wispas)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 9:29am UTC](https://forum.kirupa.com/t/making-code-reusable-help/309270 "2010-05-11T09:29:28Z")

</div>

I have put together this code that will change the background color of my div container... which works very well... but if i had another div that wanted to do the same thing... is there a way i can make this code re…

---

## [Problem with xml paths](https://forum.kirupa.com/t/problem-with-xml-paths/309268)

<div class="topic-metadata">

**Author:** [@Fischer](https://forum.kirupa.com/u/Fischer)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 9:19am UTC](https://forum.kirupa.com/t/problem-with-xml-paths/309268 "2010-05-11T09:19:38Z")

</div>

Hi I have a problem with some simple coding here. I am building a world map with countries and provinses using kml files, that I process as xml files. My problem is, that the kml files I get has different designs, and th…

---

## [AIR crashes while debugging in Flex](https://forum.kirupa.com/t/air-crashes-while-debugging-in-flex/309266)

<div class="topic-metadata">

**Author:** [@Ekry](https://forum.kirupa.com/u/Ekry)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 8:21am UTC](https://forum.kirupa.com/t/air-crashes-while-debugging-in-flex/309266 "2010-05-11T08:21:28Z")

</div>

I'm developing an AIR application on Flex 3. When a runtime error occurs while debugging, the AIR environment crashes. Windows will then complain 'adl.exe stopped working' and I will have to laborously shut down the ap…

---

## [Random tint for symbols from a select 4 colors](https://forum.kirupa.com/t/random-tint-for-symbols-from-a-select-4-colors/309262)

<div class="topic-metadata">

**Author:** [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 5:11am UTC](https://forum.kirupa.com/t/random-tint-for-symbols-from-a-select-4-colors/309262 "2010-05-11T05:11:23Z")

</div>

I am trying to get symbols to randomly get tinted from 4 select colors. The symbols come in randomly but would like them to come tinted randomly as well. How would you get them to tint at a random color in AS2? Thank…

---

## [Flashvar usage](https://forum.kirupa.com/t/flashvar-usage/309259)

<div class="topic-metadata">

**Author:** [@aemdliz](https://forum.kirupa.com/u/aemdliz)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 2:27am UTC](https://forum.kirupa.com/t/flashvar-usage/309259 "2010-05-11T02:27:58Z")

</div>

I have a question and I hope I explain correctly. I have a web page with pictures on it. I have a FMS3 server with MP4 videos on it. I have created a video player using ActionScript 3.0 on CS3 which accesses the video…

---

## [AS3 unfair to noobs trying to use arrays!](https://forum.kirupa.com/t/as3-unfair-to-noobs-trying-to-use-arrays/309258)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 1:51am UTC](https://forum.kirupa.com/t/as3-unfair-to-noobs-trying-to-use-arrays/309258 "2010-05-11T01:51:34Z")

</div>

In attempting to transition from AS2 to AS3, I am now messing around with arrays. I've been able to get arrays to work for me for the most part, but now I'm stumped. When I have a bunch of buttons that will make a corres…

---

## [AS2 : Kirupa Portfolio XML Q](https://forum.kirupa.com/t/as2-kirupa-portfolio-xml-q/309255)

<div class="topic-metadata">

**Author:** [@skylineDr](https://forum.kirupa.com/u/skylineDr)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 1:10am UTC](https://forum.kirupa.com/t/as2-kirupa-portfolio-xml-q/309255 "2010-05-11T01:10:24Z")

</div>

Okay, So, I've been coming here for a while for all my flash needs, but today I'm having trouble and I hope you can help. I used the XML Portfolio for what I needed for my own personal portfolio. However, I need help- …

---

## [Slice/Break Circle into pieces in Actionscript?](https://forum.kirupa.com/t/slice-break-circle-into-pieces-in-actionscript/309254)

<div class="topic-metadata">

**Author:** [@tcabaco](https://forum.kirupa.com/u/tcabaco)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 1:07am UTC](https://forum.kirupa.com/t/slice-break-circle-into-pieces-in-actionscript/309254 "2010-05-11T01:07:40Z")

</div>

Hi I'm looking into building a navigation system that revolves around the shape of a circle and each link is a slice of that circle. I could build it graphically and/or in the timeline, but the thing is that I'll have th…

---

## [Timer function to change key frame](https://forum.kirupa.com/t/timer-function-to-change-key-frame/309253)

<div class="topic-metadata">

**Author:** [@Darkblade](https://forum.kirupa.com/u/Darkblade)\
**Replies:** 0\
**Last updated:** [May 11, 2010, 12:41am UTC](https://forum.kirupa.com/t/timer-function-to-change-key-frame/309253 "2010-05-11T00:41:30Z")

</div>

I'm coming back to flash game development after almost two years, so I'm a bit rusty and still using AS2 \[stuck\_out\_tongue\] Anyways here is the important section of the code. Its linked to the player\_mc and the walkcyc…

---

## [Mask not compiling?](https://forum.kirupa.com/t/mask-not-compiling/309252)

<div class="topic-metadata">

**Author:** [@NateTheGreatt](https://forum.kirupa.com/u/NateTheGreatt)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 11:55pm UTC](https://forum.kirupa.com/t/mask-not-compiling/309252 "2010-05-10T23:55:23Z")

</div>

nevermind. fixed it. not sure how to delete thread

---

## [As3 Project Help](https://forum.kirupa.com/t/as3-project-help/309251)

<div class="topic-metadata">

**Author:** [@finishedfirst](https://forum.kirupa.com/u/finishedfirst)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 11:27pm UTC](https://forum.kirupa.com/t/as3-project-help/309251 "2010-05-10T23:27:14Z")

</div>

Hello, i am trying to create kind of menu that looks like someone going through their mail. Basically what i want to have are envelopes kind of stacked on top of each other and when the user presses the next button the e…

---

## [Dynamic Text & MovieClipLoader](https://forum.kirupa.com/t/dynamic-text-moviecliploader/309250)

<div class="topic-metadata">

**Author:** [@arctavian](https://forum.kirupa.com/u/arctavian)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 11:14pm UTC](https://forum.kirupa.com/t/dynamic-text-moviecliploader/309250 "2010-05-10T23:14:33Z")

</div>

I'm having trouble getting an external.swf to show dynamic text in the parent swf. When I run the external swf by itself the text shows up fine, but when I try to load it into another swf using the MovieClipLoader the dy…

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

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