# programming

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

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

**Page:** 1226

---

## [Mouse click help](https://forum.kirupa.com/t/mouse-click-help/261246)

<div class="topic-metadata">

**Author:** [@Amymation](https://forum.kirupa.com/u/Amymation)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 11:34pm UTC](https://forum.kirupa.com/t/mouse-click-help/261246 "2008-05-24T23:34:51Z")

</div>

Hi everyone, I'm making a game which involves the player to click thier mouse. I've got all the code right but what i want is for the player to keep click not just keep the left mouse button down. \[expressionless\] onC…

---

## [URLRequestMethod.POST](https://forum.kirupa.com/t/urlrequestmethod-post/260956)

<div class="topic-metadata">

**Author:** [@monkeyhead](https://forum.kirupa.com/u/monkeyhead)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 10:33pm UTC](https://forum.kirupa.com/t/urlrequestmethod-post/260956 "2008-05-24T22:33:05Z")

</div>

ok, so i was able to validate a username and password using this: my\_btn.addEventListener(MouseEvent.CLICK, clickHandler); my\_btn.buttonMode = true; upass.displayAsPassword = true; var loader:URLLoader = new URLLoader…

---

## [Maximize Window in AIR Problem](https://forum.kirupa.com/t/maximize-window-in-air-problem/261245)

<div class="topic-metadata">

**Author:** [@motionsmith](https://forum.kirupa.com/u/motionsmith)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 9:53pm UTC](https://forum.kirupa.com/t/maximize-window-in-air-problem/261245 "2008-05-24T21:53:19Z")

</div>

Hello, I'm trying to retrieve the width and height of a particular UIComponent in Flex whenever the stage resizes. (The component changes size whenever the stage resizes). This works great if I resize the AIR window by…

---

## [Random Moving Scaleable Vectors](https://forum.kirupa.com/t/random-moving-scaleable-vectors/261244)

<div class="topic-metadata">

**Author:** [@warw1ck](https://forum.kirupa.com/u/warw1ck)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 9:35pm UTC](https://forum.kirupa.com/t/random-moving-scaleable-vectors/261244 "2008-05-24T21:35:01Z")

</div>

Ive been attempting a particular effect one can see on a variety of sites; the best of which can be seen here: http://www.reschio.com/enter.html I, on the other hand, have attempted to create a flowing "sea" of a simil…

---

## [Customizing Scrollpane component](https://forum.kirupa.com/t/customizing-scrollpane-component/256287)

<div class="topic-metadata">

**Author:** [@rangerkev](https://forum.kirupa.com/u/rangerkev)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 8:58pm UTC](https://forum.kirupa.com/t/customizing-scrollpane-component/256287 "2008-05-24T20:58:01Z")

</div>

Hello, I am using a scrollpane component to load a separate swf file. It is all working fine, except for the background color of the component. How can I customize the component so that the background is transparent? …

---

## [Custom Button](https://forum.kirupa.com/t/custom-button/261212)

<div class="topic-metadata">

**Author:** [@TVM\_XST](https://forum.kirupa.com/u/TVM_XST)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 8:17pm UTC](https://forum.kirupa.com/t/custom-button/261212 "2008-05-24T20:17:25Z")

</div>

How to create coustom button using AS3 ? I want to create a Custom class which is derived from Button class.

---

## [Request and security](https://forum.kirupa.com/t/request-and-security/261220)

<div class="topic-metadata">

**Author:** [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 7:26pm UTC](https://forum.kirupa.com/t/request-and-security/261220 "2008-05-24T19:26:08Z")

</div>

How easy is this to get past? (if "crazypassword" indeed is a crazy password) $skey = stripslashes(strval($\_REQUEST\["key"\])); if ($skey == "crazypassword") { echo 'inside'; } else { echo 'not inside'; } Just cu…

---

## [Adding MovieClip's to the stage](https://forum.kirupa.com/t/adding-movieclips-to-the-stage/261233)

<div class="topic-metadata">

**Author:** [@gregmax](https://forum.kirupa.com/u/gregmax)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 6:16pm UTC](https://forum.kirupa.com/t/adding-movieclips-to-the-stage/261233 "2008-05-24T18:16:57Z")

</div>

This is what I am trying to do: \[AS\] var level = new "level\_" + hero.lvl; \[/AS\] I remember similar methods of this worked for AS2 (when creating a class/instance), but with the whole new re-written language of AS3, I…

---

## [Converting lines into brush strokes in an animated character?](https://forum.kirupa.com/t/converting-lines-into-brush-strokes-in-an-animated-character/261230)

<div class="topic-metadata">

**Author:** [@anonp](https://forum.kirupa.com/u/anonp)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 6:00pm UTC](https://forum.kirupa.com/t/converting-lines-into-brush-strokes-in-an-animated-character/261230 "2008-05-24T18:00:14Z")

</div>

Hi, I like to animated a character that I drew using the Brush tool. However, I find that difficult because its tough to maintain the brush style across all the in-between drawings. As a result, I redrew the picture …

---

## [Flash file opening](https://forum.kirupa.com/t/flash-file-opening/261232)

<div class="topic-metadata">

**Author:** [@odhorsudhapan](https://forum.kirupa.com/u/odhorsudhapan)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 5:39pm UTC](https://forum.kirupa.com/t/flash-file-opening/261232 "2008-05-24T17:39:53Z")

</div>

Someone I sent a file saved in Flash CS3 and 8 is not opening in their computer. What is the problem?

---

## [Please help urgent - Flash 8 effects not displaying properly in browsers](https://forum.kirupa.com/t/please-help-urgent-flash-8-effects-not-displaying-properly-in-browsers/261016)

<div class="topic-metadata">

**Author:** [@kra123](https://forum.kirupa.com/u/kra123)\
**Replies:** 4\
**Last updated:** [May 24, 2008, 5:19pm UTC](https://forum.kirupa.com/t/please-help-urgent-flash-8-effects-not-displaying-properly-in-browsers/261016 "2008-05-24T17:19:05Z")

</div>

Hello, We have prepared various .SWF files with using Flash Professional 8. We have loaded these .SWF files on the website and then tested in 2 browsers Mozilla Firefox & Internet Explorer on atleast 7-8 PCs. Res…

---

## [XML to call a random image](https://forum.kirupa.com/t/xml-to-call-a-random-image/259664)

<div class="topic-metadata">

**Author:** [@peejay](https://forum.kirupa.com/u/peejay)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 3:50pm UTC](https://forum.kirupa.com/t/xml-to-call-a-random-image/259664 "2008-05-24T15:50:06Z")

</div>

Hi, I have an XML flash gallery which uses \<img\>photoGallery/img1.jpg\</img\> to call an image. Is there a way to use the \<img\>\</img\> tags and call a random image from a folder? Thanks

---

## [Return Values from uploading Data with FileReference?](https://forum.kirupa.com/t/return-values-from-uploading-data-with-filereference/261223)

<div class="topic-metadata">

**Author:** [@Oscar07](https://forum.kirupa.com/u/Oscar07)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 3:47pm UTC](https://forum.kirupa.com/t/return-values-from-uploading-data-with-filereference/261223 "2008-05-24T15:47:48Z")

</div>

Hi, when you send Data with an UrlLoader, you also can receive Data back. Is this not possible with FileReference? For example when you upload a File with FileRefernce to an PHP Script. Can you now receive also D…

---

## [ProgressEvent, What object is it currently Tracking?](https://forum.kirupa.com/t/progressevent-what-object-is-it-currently-tracking/250090)

<div class="topic-metadata">

**Author:** [@Censor](https://forum.kirupa.com/u/Censor)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 2:48pm UTC](https://forum.kirupa.com/t/progressevent-what-object-is-it-currently-tracking/250090 "2008-05-24T14:48:09Z")

</div>

So I have set up a image gallery where I load data form XML then create an array of Sprites to loader the data. I'm not at my code at the moment so I will try to remember the basics of how it is, might not be correct. Ho…

---

## [No Style Element](https://forum.kirupa.com/t/no-style-element/261118)

<div class="topic-metadata">

**Author:** [@thesleuth](https://forum.kirupa.com/u/thesleuth)\
**Replies:** 4\
**Last updated:** [May 24, 2008, 1:22pm UTC](https://forum.kirupa.com/t/no-style-element/261118 "2008-05-24T13:22:45Z")

</div>

Hello, in my site, I have an external stylesheet so basically my whole site is being styled up. I would like to know if there is anyway to create an element, say \<div\>s, which contains no styles at all for previewing pur…

---

## [How To : only attachMovie if having childNodes](https://forum.kirupa.com/t/how-to-only-attachmovie-if-having-childnodes/260573)

<div class="topic-metadata">

**Author:** [@Beebs](https://forum.kirupa.com/u/Beebs)\
**Replies:** 2\
**Last updated:** [May 24, 2008, 11:02am UTC](https://forum.kirupa.com/t/how-to-only-attachmovie-if-having-childnodes/260573 "2008-05-24T11:02:21Z")

</div>

I am trying to build xml menu. Some nodes have childNodes some don't. I have a problem in my array loop : the movieclip that I use to create subMenu attached to the entire array. How can I make that the movieclip that I …

---

## [Code hints and help only showing as2, not as3](https://forum.kirupa.com/t/code-hints-and-help-only-showing-as2-not-as3/260742)

<div class="topic-metadata">

**Author:** [@Bansai](https://forum.kirupa.com/u/Bansai)\
**Replies:** 1\
**Last updated:** [May 24, 2008, 10:37am UTC](https://forum.kirupa.com/t/code-hints-and-help-only-showing-as2-not-as3/260742 "2008-05-24T10:37:57Z")

</div>

Hi there, Does anyone know how to see which language is used by the code hints and when you press F1 to jump directly to a help page? My Flash CS3 uses AS3 as it's main language, which is fine, but my copy at work is o…

---

## [Check to see if a variable has been created](https://forum.kirupa.com/t/check-to-see-if-a-variable-has-been-created/261116)

<div class="topic-metadata">

**Author:** [@Rabasaurus](https://forum.kirupa.com/u/Rabasaurus)\
**Replies:** 6\
**Last updated:** [May 24, 2008, 9:27am UTC](https://forum.kirupa.com/t/check-to-see-if-a-variable-has-been-created/261116 "2008-05-24T09:27:31Z")

</div>

Hey folks, need some of your expert help. Im creating an online survery and recording all the answers as a variable in \_root.vars.variablename where each question creates a new variable in the vars clip. When the us…

---

## [Character movement is jerky. Can this code be optimised?](https://forum.kirupa.com/t/character-movement-is-jerky-can-this-code-be-optimised/260686)

<div class="topic-metadata">

**Author:** [@onion](https://forum.kirupa.com/u/onion)\
**Replies:** 11\
**Last updated:** [May 24, 2008, 8:49am UTC](https://forum.kirupa.com/t/character-movement-is-jerky-can-this-code-be-optimised/260686 "2008-05-24T08:49:38Z")

</div>

I have a game in which you click an area of the screen and the character walks to it. I want the character to move at 90 degrees only, so horizontally and vertically, with no diagonal. I have used a fair few if statement…

---

## [Download limit](https://forum.kirupa.com/t/download-limit/260871)

<div class="topic-metadata">

**Author:** [@kv79](https://forum.kirupa.com/u/kv79)\
**Replies:** 5\
**Last updated:** [May 24, 2008, 6:46am UTC](https://forum.kirupa.com/t/download-limit/260871 "2008-05-24T06:46:39Z")

</div>

Hi all, When I create a \*.fla file ;what I need to do ;to set a download limit ,when I want to Test Movie . I hope that you understand what I mean . Thanks advance.

---

## [How to reference Loader object through listener?](https://forum.kirupa.com/t/how-to-reference-loader-object-through-listener/261052)

<div class="topic-metadata">

**Author:** [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Replies:** 9\
**Last updated:** [May 24, 2008, 6:33am UTC](https://forum.kirupa.com/t/how-to-reference-loader-object-through-listener/261052 "2008-05-24T06:33:56Z")

</div>

How do I reference Loader object through a listener? for example: function Main():void{ var loader:Loader = new Loader(); loader.load(new URLRequest("image.jpg")); loader.contentLoaderInfo.addEventListener…

---

## [Proper Website size (Dimention)](https://forum.kirupa.com/t/proper-website-size-dimention/260808)

<div class="topic-metadata">

**Author:** [@Majumderit](https://forum.kirupa.com/u/Majumderit)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 5:13am UTC](https://forum.kirupa.com/t/proper-website-size-dimention/260808 "2008-05-24T05:13:08Z")

</div>

Hi I have made few flash based website but i have no idea about the proper size i mean dimention. generally i keep 760/550 or 800/500. Can you tell me the accurate size for website. Or is there any specific ratio for m…

---

## [Maybe a bit offtopic...how to prevent caching of game?\[\*urgent\]](https://forum.kirupa.com/t/maybe-a-bit-offtopic-how-to-prevent-caching-of-game-urgent/261160)

<div class="topic-metadata">

**Author:** [@bluemagica](https://forum.kirupa.com/u/bluemagica)\
**Replies:** 11\
**Last updated:** [May 24, 2008, 4:21am UTC](https://forum.kirupa.com/t/maybe-a-bit-offtopic-how-to-prevent-caching-of-game-urgent/261160 "2008-05-24T04:21:01Z")

</div>

i have a game that is supposed to read from a text file. but it generally reads the data from last time i played it. If i clear the cache of my browser, it loads correctly. How to solve this problem?? On a sidenote-- H…

---

## [PHP/Flash interaction - Verifying flash is the sender](https://forum.kirupa.com/t/php-flash-interaction-verifying-flash-is-the-sender/261196)

<div class="topic-metadata">

**Author:** [@Nikker](https://forum.kirupa.com/u/Nikker)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 4:07am UTC](https://forum.kirupa.com/t/php-flash-interaction-verifying-flash-is-the-sender/261196 "2008-05-24T04:07:28Z")

</div>

I've looked around in several places, on several forums, guides, and websites for the answer to this question, but I can't seem to find anything on it at all. I'm not 100% sure how to sum it up in a few words, so I was …

---

## [attachMovie is playing favorites!](https://forum.kirupa.com/t/attachmovie-is-playing-favorites/261192)

<div class="topic-metadata">

**Author:** [@Axauv](https://forum.kirupa.com/u/Axauv)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 2:25am UTC](https://forum.kirupa.com/t/attachmovie-is-playing-favorites/261192 "2008-05-24T02:25:10Z")

</div>

this is just weird. i can put ANY movie clip onto the stage except the very one i NEED on the stage... the clip's name and ID are the same, they are referenced correctly, but will not load. any idea what this could be…

---

## [Using HTML Mapquest Form in Flash... STUMPED](https://forum.kirupa.com/t/using-html-mapquest-form-in-flash-stumped/261190)

<div class="topic-metadata">

**Author:** [@Macdaddy](https://forum.kirupa.com/u/Macdaddy)\
**Replies:** 0\
**Last updated:** [May 24, 2008, 1:12am UTC](https://forum.kirupa.com/t/using-html-mapquest-form-in-flash-stumped/261190 "2008-05-24T01:12:18Z")

</div>

Ok, so I have been using Flash for several months and just thought I was getting the hang of things when I came across a client that wants a mapquest form for direction in their website. The website is Flash entirely and…

---

## [Selecting random records: PHP](https://forum.kirupa.com/t/selecting-random-records-php/164581)

<div class="topic-metadata">

**Author:** [@dinkumrocks](https://forum.kirupa.com/u/dinkumrocks)\
**Replies:** 3\
**Last updated:** [May 24, 2008, 12:43am UTC](https://forum.kirupa.com/t/selecting-random-records-php/164581 "2008-05-24T00:43:24Z")

</div>

Hey guys. Im just learning php. i know asp, and decided to learn php. anyway. I need to select random records from a database. As all of you know, records can be deleted and whatnot, leaving gaps. I'm drawing somewhat …

---

## [Scrolling background transitions](https://forum.kirupa.com/t/scrolling-background-transitions/261187)

<div class="topic-metadata">

**Author:** [@Axauv](https://forum.kirupa.com/u/Axauv)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 11:28pm UTC](https://forum.kirupa.com/t/scrolling-background-transitions/261187 "2008-05-23T23:28:48Z")

</div>

im trying to do a very simple side scrolling background for a game- and it works perfectly- but i'd like to load up a different image after a while, so i made a "stitched" image (frame called transition) and a second bac…

---

## [Local machine vs Real Web Server issues](https://forum.kirupa.com/t/local-machine-vs-real-web-server-issues/261154)

<div class="topic-metadata">

**Author:** [@nubian](https://forum.kirupa.com/u/nubian)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 11:20pm UTC](https://forum.kirupa.com/t/local-machine-vs-real-web-server-issues/261154 "2008-05-23T23:20:56Z")

</div>

i'm running into a flash and php issue. in my flash movie i have 3 text fields source: (type intput) criteria: (type input) result: (dynamic type) and a button with the following code: on (release) { result = "Se…

---

## [Ho wot show code as sort of graphic in the thread post](https://forum.kirupa.com/t/ho-wot-show-code-as-sort-of-graphic-in-the-thread-post/261181)

<div class="topic-metadata">

**Author:** [@mrdoodle](https://forum.kirupa.com/u/mrdoodle)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 10:12pm UTC](https://forum.kirupa.com/t/ho-wot-show-code-as-sort-of-graphic-in-the-thread-post/261181 "2008-05-23T22:12:16Z")

</div>

Hi, Please forgive me if this is a stupid question. I have just posted a thread on this forum relating to a piece of action script. In the post I wanted to show the script that I was working on, so just copied and pa…

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

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