# programming

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

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

**Page:** 494

---

## [Simple script only works in Safari](https://forum.kirupa.com/t/simple-script-only-works-in-safari/309248)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 9:52pm UTC](https://forum.kirupa.com/t/simple-script-only-works-in-safari/309248 "2010-05-10T21:52:34Z")

</div>

This script only seems to be working in Safari, but I would like it to run in safari and firefox. Any clue why it doesn't work in firefox? Thank you for your time. function init() { var myCanvas = window; //Usin…

---

## [Problem with effect](https://forum.kirupa.com/t/problem-with-effect/309246)

<div class="topic-metadata">

**Author:** [@omar\_ali](https://forum.kirupa.com/u/omar_ali)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 9:09pm UTC](https://forum.kirupa.com/t/problem-with-effect/309246 "2010-05-10T21:09:07Z")

</div>

Hello everyone I am new to flash,tried to fllow a video tutorial to create snow, I did create the snoe video in after efect and exported to flash and import an image to library in flash but the problem is that no effe…

---

## [Cant figure out how to show do form validation work](https://forum.kirupa.com/t/cant-figure-out-how-to-show-do-form-validation-work/309245)

<div class="topic-metadata">

**Author:** [@Sith717](https://forum.kirupa.com/u/Sith717)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 8:33pm UTC](https://forum.kirupa.com/t/cant-figure-out-how-to-show-do-form-validation-work/309245 "2010-05-10T20:33:19Z")

</div>

Hey guys, I am trying to add form validation to my form like if the fields were filled out or not, I got it to work for the first form, to show the error on THE SAME PAGE, thats the whole thing I need, for it to show the…

---

## [Constructor issue for flashlite (as2.0)](https://forum.kirupa.com/t/constructor-issue-for-flashlite-as2-0/309244)

<div class="topic-metadata">

**Author:** [@Captain\_Planet](https://forum.kirupa.com/u/Captain_Planet)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 8:31pm UTC](https://forum.kirupa.com/t/constructor-issue-for-flashlite-as2-0/309244 "2010-05-10T20:31:37Z")

</div>

Hi all. Quick question. I have the following code on frame one of my flash lite 2.0 (as 2.0) movie: On frame 1: import test; t = new test() testtb.text = t.returnPageTitle("Page 1") and this is my external as file…

---

## [Finding and replacing new line characters](https://forum.kirupa.com/t/finding-and-replacing-new-line-characters/309242)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 7:38pm UTC](https://forum.kirupa.com/t/finding-and-replacing-new-line-characters/309242 "2010-05-10T19:38:55Z")

</div>

I am making some string variables to use in an animation. Another person in the office has has written all of the text using Word. Some of these strings have up to 50 lines and each new line has some sort of special char…

---

## [Gradual stop for scroller](https://forum.kirupa.com/t/gradual-stop-for-scroller/309233)

<div class="topic-metadata">

**Author:** [@wilson1221](https://forum.kirupa.com/u/wilson1221)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 4:13pm UTC](https://forum.kirupa.com/t/gradual-stop-for-scroller/309233 "2010-05-10T16:13:39Z")

</div>

hey I have a as2 scroller button that drags 'clip' MC: on(press){ this.onEnterFrame=function(){ speed=20; llimit=-400;//right limit if(clip.\_x\>llimit){ clip.\_x-=speed; }} } on(release,releaseOutside){ delete onEnterFr…

---

## [Play sond once when attacking](https://forum.kirupa.com/t/play-sond-once-when-attacking/309231)

<div class="topic-metadata">

**Author:** [@Yrvader](https://forum.kirupa.com/u/Yrvader)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 4:09pm UTC](https://forum.kirupa.com/t/play-sond-once-when-attacking/309231 "2010-05-10T16:09:48Z")

</div>

Hello! I am trying to make a platform game in flash and want the character to play a sound everytime i hit the attackbutton, but only once. I´ve tried everything i can come up with, but the sound just keeps looping o…

---

## [Accessing Event Listeners In Custom Class](https://forum.kirupa.com/t/accessing-event-listeners-in-custom-class/309230)

<div class="topic-metadata">

**Author:** [@sonofjohn](https://forum.kirupa.com/u/sonofjohn)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 3:58pm UTC](https://forum.kirupa.com/t/accessing-event-listeners-in-custom-class/309230 "2010-05-10T15:58:21Z")

</div>

Hi, Im am trying to access my event listners in my "menuButn" class from my doc class. Driving me crazy any help would be greatly appreciated... In my main document class i have the following: Main.as public func…

---

## [Add a list to the component inspector](https://forum.kirupa.com/t/add-a-list-to-the-component-inspector/309228)

<div class="topic-metadata">

**Author:** [@bencam](https://forum.kirupa.com/u/bencam)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 3:50pm UTC](https://forum.kirupa.com/t/add-a-list-to-the-component-inspector/309228 "2010-05-10T15:50:45Z")

</div>

Hi, I'm creating a component which requires the selection of one item from a list of items in the component inspector. If you look at the checkbox component, you'll see a tag called labelPlacement which allows the sele…

---

## [Image based drop-down menu](https://forum.kirupa.com/t/image-based-drop-down-menu/309227)

<div class="topic-metadata">

**Author:** [@alliea](https://forum.kirupa.com/u/alliea)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 3:36pm UTC](https://forum.kirupa.com/t/image-based-drop-down-menu/309227 "2010-05-10T15:36:23Z")

</div>

Hi! I'm new here \[smile\] I use Dreamweaver CS4. I have a navigation bar at the top of my page which I created using the insert-\>image objects-\>navigation bar feature in DW. One of my navigation buttons, however, has a dr…

---

## [hitTestObject - Multiple Times](https://forum.kirupa.com/t/hittestobject-multiple-times/309226)

<div class="topic-metadata">

**Author:** [@wwfc\_barmy\_army](https://forum.kirupa.com/u/wwfc_barmy_army)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 3:18pm UTC](https://forum.kirupa.com/t/hittestobject-multiple-times/309226 "2010-05-10T15:18:49Z")

</div>

Hello. I have the following code to pick up collision detection between two objects: public function loop(e:Event) : void { if (this.heli.hitTestObject(enemy)) { Clashed(); } } …

---

## [Hit object then remove from array](https://forum.kirupa.com/t/hit-object-then-remove-from-array/309225)

<div class="topic-metadata">

**Author:** [@JWH89](https://forum.kirupa.com/u/JWH89)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 1:47pm UTC](https://forum.kirupa.com/t/hit-object-then-remove-from-array/309225 "2010-05-10T13:47:08Z")

</div>

Hello, Having a problem with my game. I am running a hittest to see if my avatar hits a food movie clip. When it does I want to remove the child that has been hit. I have put all the food movieclips into an array call…

---

## [Paypal question: payment confirmation...?](https://forum.kirupa.com/t/paypal-question-payment-confirmation/309224)

<div class="topic-metadata">

**Author:** [@0L4F](https://forum.kirupa.com/u/0L4F)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 12:22pm UTC](https://forum.kirupa.com/t/paypal-question-payment-confirmation/309224 "2010-05-10T12:22:21Z")

</div>

Hello Kirupians, Does any of you have experience with working with Paypal? I'm doing some investigation for a client who wants me to create a website that has paid music downloads. I'll do this in AS3. I understand…

---

## [Question: Flash with Java](https://forum.kirupa.com/t/question-flash-with-java/309222)

<div class="topic-metadata">

**Author:** [@Unecha\_Chau](https://forum.kirupa.com/u/Unecha_Chau)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 12:03pm UTC](https://forum.kirupa.com/t/question-flash-with-java/309222 "2010-05-10T12:03:35Z")

</div>

Hello, I'm trying create simple Flash AS 3.0 Client / XMLSocket with Java programming language and Java socket's, but i'm newbie in Java programming and for my hard create Java socket's and i'm too learning programming w…

---

## [Substring error](https://forum.kirupa.com/t/substring-error/309220)

<div class="topic-metadata">

**Author:** [@paslanmaz01](https://forum.kirupa.com/u/paslanmaz01)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 10:57am UTC](https://forum.kirupa.com/t/substring-error/309220 "2010-05-10T10:57:53Z")

</div>

\[LIST=1\] \[\*\]if (Request.ServerVariables\["HTTP\_REFERER"\].IndexOf("google") \> 0) \[\*\] { \[\*\] string KeyURL = Request.ServerVariables\["HTTP\_REFERER"\]; \</SPAN\> \[\*\] int KeyLen = KeyURL.Leng…

---

## [Menu Style Help](https://forum.kirupa.com/t/menu-style-help/309219)

<div class="topic-metadata">

**Author:** [@LS05](https://forum.kirupa.com/u/LS05)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 10:37am UTC](https://forum.kirupa.com/t/menu-style-help/309219 "2010-05-10T10:37:50Z")

</div>

Hi guys, Can somebody have link to a tutorial or something else for making a tutorial like this: http://www.bloodstream.com.br/ ? I really need it...thanks. \[smiley\]

---

## [Making an interactive movie (QTE-style)](https://forum.kirupa.com/t/making-an-interactive-movie-qte-style/309217)

<div class="topic-metadata">

**Author:** [@kyt](https://forum.kirupa.com/u/kyt)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 10:18am UTC](https://forum.kirupa.com/t/making-an-interactive-movie-qte-style/309217 "2010-05-10T10:18:43Z")

</div>

Hey guys, i'm in the middle of making an interactive movie with events within it that act sort of like quick time events, only that there are multiple outcomes, making it sort of like an old "Choose your own adventure" b…

---

## [DB doesn't connect](https://forum.kirupa.com/t/db-doesnt-connect/309216)

<div class="topic-metadata">

**Author:** [@andreand](https://forum.kirupa.com/u/andreand)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 9:34am UTC](https://forum.kirupa.com/t/db-doesnt-connect/309216 "2010-05-10T09:34:46Z")

</div>

Hi! first of all, thanks for your valuable help! I'll explain you my problem: I moved a website (php + backoffice) to a new host, but the same server company (Cdmon). Once I copied the files and imported the DB, it'…

---

## [Going to a frame and accessing a variable, at one shot](https://forum.kirupa.com/t/going-to-a-frame-and-accessing-a-variable-at-one-shot/309215)

<div class="topic-metadata">

**Author:** [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 8:43am UTC](https://forum.kirupa.com/t/going-to-a-frame-and-accessing-a-variable-at-one-shot/309215 "2010-05-10T08:43:09Z")

</div>

Hi guys, I am sure this is a bug with flash, and looking for a smart workaround. Now I have a 20 frame movieclip (named mc), and by default the playhead is stopped at frame 0 of that movieclip. At frame 10 I have a m…

---

## [AS3 Question - display an image from a string in a variable](https://forum.kirupa.com/t/as3-question-display-an-image-from-a-string-in-a-variable/309213)

<div class="topic-metadata">

**Author:** [@TomKub](https://forum.kirupa.com/u/TomKub)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 8:00am UTC](https://forum.kirupa.com/t/as3-question-display-an-image-from-a-string-in-a-variable/309213 "2010-05-10T08:00:06Z")

</div>

solved using htmlText with a textField Hi, quick question hoping someone may have an idea on how to achieve this. I have this variable var userPicLoc:String = "http://tinyurl.com/2qk25q"; I would like to display …

---

## [Gradient colortransform](https://forum.kirupa.com/t/gradient-colortransform/309212)

<div class="topic-metadata">

**Author:** [@GrayFox](https://forum.kirupa.com/u/GrayFox)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 6:35am UTC](https://forum.kirupa.com/t/gradient-colortransform/309212 "2010-05-10T06:35:11Z")

</div>

Hi all, I am building an application that would allow me to change it's theme. I am planning to do this by loading a color code via xml and then setting the color of all the graphics in the application to that color. O…

---

## [Webcam to take picture and save](https://forum.kirupa.com/t/webcam-to-take-picture-and-save/309211)

<div class="topic-metadata">

**Author:** [@juss](https://forum.kirupa.com/u/juss)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 6:21am UTC](https://forum.kirupa.com/t/webcam-to-take-picture-and-save/309211 "2010-05-10T06:21:44Z")

</div>

Hi, I'm totally new to AS3 and I have an upcoming project on it. It's a virtual hairstyling project but I have no idea how to get the first part to work. This is how the first part of the project goes: First, it wi…

---

## [Prevent flash movie breaking out of template with mouse scroll](https://forum.kirupa.com/t/prevent-flash-movie-breaking-out-of-template-with-mouse-scroll/309210)

<div class="topic-metadata">

**Author:** [@Eddie\_E](https://forum.kirupa.com/u/Eddie_E)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 5:55am UTC](https://forum.kirupa.com/t/prevent-flash-movie-breaking-out-of-template-with-mouse-scroll/309210 "2010-05-10T05:55:32Z")

</div>

Hi I have a flash file that I use to get certain answers to questions. Currently on Explorer and firefox (fine on chrome) if you use the mouse scroll bar it can seriously go off the template making it unusable. Is the…

---

## [RTMFP (Strtatus) works stable only on a local network, not in internet](https://forum.kirupa.com/t/rtmfp-strtatus-works-stable-only-on-a-local-network-not-in-internet/309208)

<div class="topic-metadata">

**Author:** [@NS11111](https://forum.kirupa.com/u/NS11111)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 3:39am UTC](https://forum.kirupa.com/t/rtmfp-strtatus-works-stable-only-on-a-local-network-not-in-internet/309208 "2010-05-10T03:39:32Z")

</div>

Hi, No problem to connect two computers using RTMFP (Stratus) on a local network. As for connection via internet it is mostly failed. Video streams do not start. But sometimes connection is okay (one case for 30-60 …

---

## [Limit of 3 arguments for function ? What is happening here:](https://forum.kirupa.com/t/limit-of-3-arguments-for-function-what-is-happening-here/309207)

<div class="topic-metadata">

**Author:** [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Replies:** 0\
**Last updated:** [May 10, 2010, 12:57am UTC](https://forum.kirupa.com/t/limit-of-3-arguments-for-function-what-is-happening-here/309207 "2010-05-10T00:57:52Z")

</div>

var menu:MovieClip = asdf(); function asdf(s:String='', myx:int=0, p:MovieClip=null):MovieClip // eventual crash with a stackOverflow error //function asdf(s:String='', myx:int=0):MovieClip // works fine //function as…

---

## [as3 variable type definition issue](https://forum.kirupa.com/t/as3-variable-type-definition-issue/309206)

<div class="topic-metadata">

**Author:** [@magentaraindrop](https://forum.kirupa.com/u/magentaraindrop)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 9:43pm UTC](https://forum.kirupa.com/t/as3-variable-type-definition-issue/309206 "2010-05-09T21:43:15Z")

</div>

So I am trying to add a variable from my library to the stage. My variable is a chunk of text saved as a movie clip titled KatText. The issue is I can add it straight onto the stage via this code: this.addChild(KatText …

---

## [How to get a list of an object's properties/variables](https://forum.kirupa.com/t/how-to-get-a-list-of-an-objects-properties-variables/309203)

<div class="topic-metadata">

**Author:** [@moonglare](https://forum.kirupa.com/u/moonglare)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 6:39pm UTC](https://forum.kirupa.com/t/how-to-get-a-list-of-an-objects-properties-variables/309203 "2010-05-09T18:39:53Z")

</div>

Hello, I am creating a Facebook application using Flash, javascript and the Graph API. I receive Facebook objects as JSON objects, and pass them into Flash via ExternalInterface I know that, for example, if I access h…

---

## [Array deletion - simple question](https://forum.kirupa.com/t/array-deletion-simple-question/309202)

<div class="topic-metadata">

**Author:** [@jrjellybeans](https://forum.kirupa.com/u/jrjellybeans)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 6:34pm UTC](https://forum.kirupa.com/t/array-deletion-simple-question/309202 "2010-05-09T18:34:05Z")

</div>

Hey all, When I'm removing an object from the display list (via removeChild), I'm performing a splice on all of the arrays that the object has: public function onDeath():void { arEnemy.splice(0,arEnemy.length); }…

---

## [Embedding font works, not at the glow filter doesn't!](https://forum.kirupa.com/t/embedding-font-works-not-at-the-glow-filter-doesnt/309201)

<div class="topic-metadata">

**Author:** [@ahao](https://forum.kirupa.com/u/ahao)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 6:30pm UTC](https://forum.kirupa.com/t/embedding-font-works-not-at-the-glow-filter-doesnt/309201 "2010-05-09T18:30:50Z")

</div>

http://cmdstud.khlim.be/~tthai/Shared/Varia/Terragotchi%20V%202.0.html This is the link of my project. I embedded a kind of pixlated customfont say "font.tff". As you can see the clock in the right corner uses this fon…

---

## [Stop AJAX Request After Time Limit](https://forum.kirupa.com/t/stop-ajax-request-after-time-limit/309198)

<div class="topic-metadata">

**Author:** [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Replies:** 0\
**Last updated:** [May 9, 2010, 3:48pm UTC](https://forum.kirupa.com/t/stop-ajax-request-after-time-limit/309198 "2010-05-09T15:48:18Z")

</div>

I've got an AJAX request going to a PHP proxy which uses a 3rd party service to grab some data I need. The speed of this 3rd party system is variable, and I would like to cancel the request after 5 seconds if it hasn't …

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

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