# programming

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

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

**Page:** 317

---

## [Saving through cookies](https://forum.kirupa.com/t/saving-through-cookies/319949)

<div class="topic-metadata">

**Author:** [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 5:26pm UTC](https://forum.kirupa.com/t/saving-through-cookies/319949 "2011-03-09T17:26:43Z")

</div>

I would like some help with this. I am working on an RPG-esque game and would like to know how to save these variables MaxHP = 100; MaxMP = 55; Gold = 100; armorHelm = 1; armorChest = 1; armorLegs = 1; weapon = 1; I …

---

## [How can i access a MC inside another MC?](https://forum.kirupa.com/t/how-can-i-access-a-mc-inside-another-mc/319947)

<div class="topic-metadata">

**Author:** [@Katumi](https://forum.kirupa.com/u/Katumi)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:59pm UTC](https://forum.kirupa.com/t/how-can-i-access-a-mc-inside-another-mc/319947 "2011-03-09T15:59:06Z")

</div>

I'm trying to make an old fashioned 2D sidescroller game similar to the old Mario games, and i'm stuck with a lil problem: I want to add coins that can be collected by the player. I've made (with some help) a coin class …

---

## [Strange enemy behaviour problem](https://forum.kirupa.com/t/strange-enemy-behaviour-problem/319946)

<div class="topic-metadata">

**Author:** [@TurboTuTone](https://forum.kirupa.com/u/TurboTuTone)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:59pm UTC](https://forum.kirupa.com/t/strange-enemy-behaviour-problem/319946 "2011-03-09T15:59:03Z")

</div>

Hello all, I just finished some code to get enemies in my game but im experiencing strange behaviour within the game. My game currently is a 2000x2000 map which can be scrolled by moving the mouse to the edge of stage.…

---

## [Keeping a score in AS 2.0](https://forum.kirupa.com/t/keeping-a-score-in-as-2-0/319945)

<div class="topic-metadata">

**Author:** [@bicMedium](https://forum.kirupa.com/u/bicMedium)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:57pm UTC](https://forum.kirupa.com/t/keeping-a-score-in-as-2-0/319945 "2011-03-09T15:57:11Z")

</div>

Hi all - help needed if possible in Flash CS4. I've recently returned to Flash after a few years hiatus, and so am more than a little rusty. I'm currently developing a simple quiz. Each question has a right and wrong…

---

## [ProgressEvent.PROGRESS inconsistent](https://forum.kirupa.com/t/progressevent-progress-inconsistent/319944)

<div class="topic-metadata">

**Author:** [@KyoKusanagi](https://forum.kirupa.com/u/KyoKusanagi)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:52pm UTC](https://forum.kirupa.com/t/progressevent-progress-inconsistent/319944 "2011-03-09T15:52:43Z")

</div>

i have this simple script in my document class named script.as public function script(){ stop(); xmlFile = stage.loaderInfo.parameters\["path"\]; addEventListener(Event.ENTER\_FRAME, timer); txtDebug.text = "…

---

## [Confused - is c# also .NET?](https://forum.kirupa.com/t/confused-is-c-also-net/319943)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:04pm UTC](https://forum.kirupa.com/t/confused-is-c-also-net/319943 "2011-03-09T15:04:59Z")

</div>

I am utterly confused here. I see different jobs and stuff for .NET or c# or c++, etc. I thought they were all a part of .NET? Why for example, are the forums c# separated from c++, when they are both part of the same fr…

---

## [Help with text cursor](https://forum.kirupa.com/t/help-with-text-cursor/319939)

<div class="topic-metadata">

**Author:** [@deaconpt](https://forum.kirupa.com/u/deaconpt)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 11:33am UTC](https://forum.kirupa.com/t/help-with-text-cursor/319939 "2011-03-09T11:33:44Z")

</div>

Hello there, I hope you can help me, and sorry for my bad english, as you can see in the image, i have 3 fields where it's possible to type. What I need to know is, when I am on the 1st field, how do I make the cursor…

---

## [Actionscript 3 platform tutorial](https://forum.kirupa.com/t/actionscript-3-platform-tutorial/319938)

<div class="topic-metadata">

**Author:** [@Teague01233](https://forum.kirupa.com/u/Teague01233)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 11:33am UTC](https://forum.kirupa.com/t/actionscript-3-platform-tutorial/319938 "2011-03-09T11:33:20Z")

</div>

Hey everyone, I apologise if something like this has been posted before, I had a little look and couldn't exactly see anything. I was just wondering if anyone can recommend any good 2d platform/sidescrolling tutorial…

---

## [Flash script to make a mc or swf move and grow like the tiltviewer](https://forum.kirupa.com/t/flash-script-to-make-a-mc-or-swf-move-and-grow-like-the-tiltviewer/319936)

<div class="topic-metadata">

**Author:** [@thevibe](https://forum.kirupa.com/u/thevibe)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 11:24am UTC](https://forum.kirupa.com/t/flash-script-to-make-a-mc-or-swf-move-and-grow-like-the-tiltviewer/319936 "2011-03-09T11:24:14Z")

</div>

Hey guys, I bought TiltViewer Pro to show a gallery here's the link http://www.simpleviewer.net/tiltviewer/app/. But in my website I need more pages like About and Contact. I think it would be great if the other pages wo…

---

## [TweenLite Reverse Mouse Follower](https://forum.kirupa.com/t/tweenlite-reverse-mouse-follower/319933)

<div class="topic-metadata">

**Author:** [@ctaminian](https://forum.kirupa.com/u/ctaminian)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 9:47am UTC](https://forum.kirupa.com/t/tweenlite-reverse-mouse-follower/319933 "2011-03-09T09:47:06Z")

</div>

Hey guys, I'm trying to reverse the direction of my mouse follower which I tween using TweenLite... I have an image bigger than the stage, when it first loads, I define a starting point, then on enter frame I keep …

---

## [Multiple keypad in flash game](https://forum.kirupa.com/t/multiple-keypad-in-flash-game/319932)

<div class="topic-metadata">

**Author:** [@actk](https://forum.kirupa.com/u/actk)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 9:21am UTC](https://forum.kirupa.com/t/multiple-keypad-in-flash-game/319932 "2011-03-09T09:21:51Z")

</div>

I am developing a flash game (2 players) that require the use of 2 similar wireless keypads. In 2 player mode, player 1 is only able to use keypad 1 while player 2 can only use keypad 2. Is there any software or tool…

---

## [dispatchEvent - argument count mismatch](https://forum.kirupa.com/t/dispatchevent-argument-count-mismatch/319927)

<div class="topic-metadata">

**Author:** [@dvdwmth](https://forum.kirupa.com/u/dvdwmth)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 4:28am UTC](https://forum.kirupa.com/t/dispatchevent-argument-count-mismatch/319927 "2011-03-09T04:28:19Z")

</div>

I'm trying to send an event between a loaded swf and the swf its loaded into but I'm getting the following error. ArgumentError: Error #1063: Argument count mismatch on one/eventResponse(). Expected 0, got 1. at fl…

---

## [Public Variables in Functions Acting Like Within Classes](https://forum.kirupa.com/t/public-variables-in-functions-acting-like-within-classes/319926)

<div class="topic-metadata">

**Author:** [@selacius](https://forum.kirupa.com/u/selacius)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 3:12am UTC](https://forum.kirupa.com/t/public-variables-in-functions-acting-like-within-classes/319926 "2011-03-09T03:12:22Z")

</div>

I am trying to figure out how to setup a function that has variables within it that may be called from other classes. The best way to describe this is to setup a scenario. I have a Game\_Party class which handles everythi…

---

## [What The Focus 2](https://forum.kirupa.com/t/what-the-focus-2/319925)

<div class="topic-metadata">

**Author:** [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Replies:** 0\
**Last updated:** [March 9, 2011, 2:07am UTC](https://forum.kirupa.com/t/what-the-focus-2/319925 "2011-03-09T02:07:44Z")

</div>

here's the code private function makeNewScreen():void { trace("makeNewScreen"); switch(newScreenName) { case "playScreen": //playScreen = new PlayScreen(); playScreen = new P…

---

## [Static Property Inheritance](https://forum.kirupa.com/t/static-property-inheritance/319923)

<div class="topic-metadata">

**Author:** [@999chris](https://forum.kirupa.com/u/999chris)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 11:30pm UTC](https://forum.kirupa.com/t/static-property-inheritance/319923 "2011-03-08T23:30:05Z")

</div>

Hey gang. I have 3 .as files at the moment as follows: Launchers.as package { public class Launchers { public static var maxAngle:uint = 45; } } RocketGrenade.as package { public class RocketGrenade …

---

## [Need Help modifying particle system code](https://forum.kirupa.com/t/need-help-modifying-particle-system-code/319921)

<div class="topic-metadata">

**Author:** [@p1x3lz](https://forum.kirupa.com/u/p1x3lz)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 9:36pm UTC](https://forum.kirupa.com/t/need-help-modifying-particle-system-code/319921 "2011-03-08T21:36:06Z")

</div>

I got the AS code for a really cool particle fountain and modded it to use it for the animation of a popcorn machine. It turned out really great. The only thing I didn't care for was that the particles were balls. It wor…

---

## [Roll Over Pop Up Box Sizing](https://forum.kirupa.com/t/roll-over-pop-up-box-sizing/319920)

<div class="topic-metadata">

**Author:** [@macrar1010](https://forum.kirupa.com/u/macrar1010)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 9:09pm UTC](https://forum.kirupa.com/t/roll-over-pop-up-box-sizing/319920 "2011-03-08T21:09:15Z")

</div>

Hi, Trying to get a rollover pop up box to size itself around it's content ... or I need another box. here's the link ... http://vnd-ink.com/Pat/main/index1.html Thanks

---

## [Dynamic text appears above MovieClips](https://forum.kirupa.com/t/dynamic-text-appears-above-movieclips/319919)

<div class="topic-metadata">

**Author:** [@magicpat2010](https://forum.kirupa.com/u/magicpat2010)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 9:06pm UTC](https://forum.kirupa.com/t/dynamic-text-appears-above-movieclips/319919 "2011-03-08T21:06:33Z")

</div>

Here is a picture of my issue: \[image\] The image on the left has a text field that has been already dynamicly loaded. The image on the right has not loaded dynamically yet. The drop down menu is inside of a MovieClip…

---

## [How can I check how many movieClips exist in a container](https://forum.kirupa.com/t/how-can-i-check-how-many-movieclips-exist-in-a-container/319917)

<div class="topic-metadata">

**Author:** [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 5:51pm UTC](https://forum.kirupa.com/t/how-can-i-check-how-many-movieclips-exist-in-a-container/319917 "2011-03-08T17:51:01Z")

</div>

Hi, How can I check how many movieClips exist in a container and how much space are they taken? In other words, how can I make this calculation if I have a rectangular movieClip (containerMc) that is 5x1px and f…

---

## [Creating a new instance with the same variable reference](https://forum.kirupa.com/t/creating-a-new-instance-with-the-same-variable-reference/319914)

<div class="topic-metadata">

**Author:** [@marcelozep](https://forum.kirupa.com/u/marcelozep)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 2:46pm UTC](https://forum.kirupa.com/t/creating-a-new-instance-with-the-same-variable-reference/319914 "2011-03-08T14:46:42Z")

</div>

There´s any need to set to null a reference in this case? private function initGame():void{ game= new Game() } private function endGame():void{ removeChild(game) //here, should I set game to null? } then, to start a …

---

## [Reset Button for Drag and Drop Jukebox](https://forum.kirupa.com/t/reset-button-for-drag-and-drop-jukebox/319913)

<div class="topic-metadata">

**Author:** [@kidza12](https://forum.kirupa.com/u/kidza12)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 2:44pm UTC](https://forum.kirupa.com/t/reset-button-for-drag-and-drop-jukebox/319913 "2011-03-08T14:44:24Z")

</div>

hi, i am making a drag and drop jukebox that will play an xml playlist when an icon is dropped onto it's target. i have one xml playlist working, but i need to make a button that will reset all the movie clips to the…

---

## [Need help on simple image uploader/gallery idea](https://forum.kirupa.com/t/need-help-on-simple-image-uploader-gallery-idea/319912)

<div class="topic-metadata">

**Author:** [@o111](https://forum.kirupa.com/u/o111)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 1:23pm UTC](https://forum.kirupa.com/t/need-help-on-simple-image-uploader-gallery-idea/319912 "2011-03-08T13:23:32Z")

</div>

Hi! \[smiley\] I am working on an idea for a website. It's going to be a simple site for a campaign. I don't need to get into the whole concept, but I need some guidance on how to get around some of the development issue…

---

## [How to make UILoaded images clickable](https://forum.kirupa.com/t/how-to-make-uiloaded-images-clickable/319910)

<div class="topic-metadata">

**Author:** [@jimbob300966](https://forum.kirupa.com/u/jimbob300966)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 12:19pm UTC](https://forum.kirupa.com/t/how-to-make-uiloaded-images-clickable/319910 "2011-03-08T12:19:38Z")

</div>

Hi there, Im trying to make a really simple image gallery banner (like a featured content bar on a website) So when a button is clicked, an image which is loaded outsite of flash appears with a little tranisition. Ive …

---

## [Help needed on simple flex line chart](https://forum.kirupa.com/t/help-needed-on-simple-flex-line-chart/319907)

<div class="topic-metadata">

**Author:** [@rajesh\_flash](https://forum.kirupa.com/u/rajesh_flash)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 11:36am UTC](https://forum.kirupa.com/t/help-needed-on-simple-flex-line-chart/319907 "2011-03-08T11:36:33Z")

</div>

Dear Friends, I need a small help on Flex Line Chart. I am using FlashBuilder 4 and doing a simple application in flex. I am displaying a graph with 10 random values and based on the values i am trying to change the…

---

## [Dynamic textfield doesn't show special character (&%+..)](https://forum.kirupa.com/t/dynamic-textfield-doesnt-show-special-character/319906)

<div class="topic-metadata">

**Author:** [@zembo](https://forum.kirupa.com/u/zembo)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 11:19am UTC](https://forum.kirupa.com/t/dynamic-textfield-doesnt-show-special-character/319906 "2011-03-08T11:19:35Z")

</div>

Hi guys, My dynamic textfield doesen't show special characters (%&+...). I have emped the font(uppercase, lowercase, numerals, PUNCTUATION and basic latin) and I've also tried to render it as html. for example: f…

---

## [NavigateToUrl - opening in a div](https://forum.kirupa.com/t/navigatetourl-opening-in-a-div/319905)

<div class="topic-metadata">

**Author:** [@Heppa](https://forum.kirupa.com/u/Heppa)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 11:16am UTC](https://forum.kirupa.com/t/navigatetourl-opening-in-a-div/319905 "2011-03-08T11:16:01Z")

</div>

Hi guys, I have a strange problem that I can't find any solution for. In our Learning Management System we have a Flash front page that appears once the users is logged in. On this page we have a button that when cl…

---

## [Issue Display Sprite list onscreen](https://forum.kirupa.com/t/issue-display-sprite-list-onscreen/319903)

<div class="topic-metadata">

**Author:** [@coreman2200](https://forum.kirupa.com/u/coreman2200)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 10:30am UTC](https://forum.kirupa.com/t/issue-display-sprite-list-onscreen/319903 "2011-03-08T10:30:11Z")

</div>

Peace, All I have what is undoubtedly a simple issue that I cannot seems to surpass. It may well simply be an order of operations type of problem, but as I'm not sure where the problem is, I don't know where to sta…

---

## [Form to work offline](https://forum.kirupa.com/t/form-to-work-offline/319902)

<div class="topic-metadata">

**Author:** [@Sir\_Psycho](https://forum.kirupa.com/u/Sir_Psycho)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 10:05am UTC](https://forum.kirupa.com/t/form-to-work-offline/319902 "2011-03-08T10:05:51Z")

</div>

Hey, is it possible to make an email form work offline? I had it working with PHP but now the whole thing is wanted to be used offline, so.. tried to Google, but no luck with that. It doesn't have to be an email for…

---

## [Append evtObj.target.name to a function?](https://forum.kirupa.com/t/append-evtobj-target-name-to-a-function/319901)

<div class="topic-metadata">

**Author:** [@TorQueMoD](https://forum.kirupa.com/u/TorQueMoD)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 9:41am UTC](https://forum.kirupa.com/t/append-evtobj-target-name-to-a-function/319901 "2011-03-08T09:41:56Z")

</div>

Hey guys! I'm really new to AS3 so my apologies in advance. What I'm trying to do is have a website where there are menu buttons on the sides and when you Mouse Over any of the buttons, the picture in the middle chan…

---

## [What is the largest stage that should be used for an entire flash website?](https://forum.kirupa.com/t/what-is-the-largest-stage-that-should-be-used-for-an-entire-flash-website/319899)

<div class="topic-metadata">

**Author:** [@EFlash](https://forum.kirupa.com/u/EFlash)\
**Replies:** 0\
**Last updated:** [March 8, 2011, 7:46am UTC](https://forum.kirupa.com/t/what-is-the-largest-stage-that-should-be-used-for-an-entire-flash-website/319899 "2011-03-08T07:46:46Z")

</div>

What is the largest stage that should be used for an entire flash website? What is the average or most common, and how big can I get away with making the stage? This is for a site that will be made completely in flas…

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

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