# programming

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

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

**Page:** 920

---

## [\[CS3, AS2\] gotoAndStop (variable); Not Working](https://forum.kirupa.com/t/cs3-as2-gotoandstop-variable-not-working/281860)

<div class="topic-metadata">

**Author:** [@trouble](https://forum.kirupa.com/u/trouble)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 11:17pm UTC](https://forum.kirupa.com/t/cs3-as2-gotoandstop-variable-not-working/281860 "2009-02-13T23:17:03Z")

</div>

Hello, I'm using variables for the first time, and I didn't know if I'm trying something that doesn't work or what but here's my problem (bear in mind this is only the test program, not the full project I'm attemptin…

---

## [Controlling one Embedded swf from another](https://forum.kirupa.com/t/controlling-one-embedded-swf-from-another/281859)

<div class="topic-metadata">

**Author:** [@mikeyray](https://forum.kirupa.com/u/mikeyray)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 11:08pm UTC](https://forum.kirupa.com/t/controlling-one-embedded-swf-from-another/281859 "2009-02-13T23:08:59Z")

</div>

Hey everyone, I have an AS2 flash website where I am using the loadMovie() function to load multiple swfs, buttons, etc. into my index.swf file (so it is easier to update one component than the whole movie). I have a…

---

## [sendData in Unicode](https://forum.kirupa.com/t/senddata-in-unicode/281858)

<div class="topic-metadata">

**Author:** [@Tonefro](https://forum.kirupa.com/u/Tonefro)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 10:52pm UTC](https://forum.kirupa.com/t/senddata-in-unicode/281858 "2009-02-13T22:52:51Z")

</div>

Our department is working on a flash based widget that has to deploy in multiple countires, but the kicker is the client wants the user to be able to register though the object. When on a webpage in, say Japan, the POST …

---

## [Send alert to cell phone](https://forum.kirupa.com/t/send-alert-to-cell-phone/281857)

<div class="topic-metadata">

**Author:** [@jjmaster\_j](https://forum.kirupa.com/u/jjmaster_j)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 10:36pm UTC](https://forum.kirupa.com/t/send-alert-to-cell-phone/281857 "2009-02-13T22:36:45Z")

</div>

Hello, I have a contact page where the user can enter his/her information and click submit. That information will be store on the db and an email notification will be sent to my email. What I like to do is to be able t…

---

## [Consolidating Getter Functions](https://forum.kirupa.com/t/consolidating-getter-functions/281856)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 9:47pm UTC](https://forum.kirupa.com/t/consolidating-getter-functions/281856 "2009-02-13T21:47:36Z")

</div>

Just asking out of curiosity here... I have a custom event listener that saves about 10 different passed in values, and so I have 10 different "getter" functions that return those values. I don't want to make the var…

---

## [Htmlloader viewing source html](https://forum.kirupa.com/t/htmlloader-viewing-source-html/281855)

<div class="topic-metadata">

**Author:** [@mikeciz](https://forum.kirupa.com/u/mikeciz)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 9:40pm UTC](https://forum.kirupa.com/t/htmlloader-viewing-source-html/281855 "2009-02-13T21:40:46Z")

</div>

Hi. I've been pulling my hair out trying to get this to work. :hair: I've got a flash file (compiling to Air) with a HTMLLoader object in it. The HTMLLoader object loads the web page I link it to correctly. The page …

---

## [Insert not Inserting into Database Part 2](https://forum.kirupa.com/t/insert-not-inserting-into-database-part-2/281854)

<div class="topic-metadata">

**Author:** [@lenmat](https://forum.kirupa.com/u/lenmat)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 9:32pm UTC](https://forum.kirupa.com/t/insert-not-inserting-into-database-part-2/281854 "2009-02-13T21:32:04Z")

</div>

OK, now that after i had help, I tried to make it so I can enter some other info along with this image path, and now it is not inserting anything again. Thank you for your help, sorry for so many questions. I am a new t…

---

## [Creating Game Inventory](https://forum.kirupa.com/t/creating-game-inventory/281852)

<div class="topic-metadata">

**Author:** [@descalabro](https://forum.kirupa.com/u/descalabro)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 9:27pm UTC](https://forum.kirupa.com/t/creating-game-inventory/281852 "2009-02-13T21:27:57Z")

</div>

AS2/CS3 I'm using drag and drop and testing for my game inventory, but the problem is the way to manage the items already inside it. My system works like this: The dummy goes near the object -\> the player presses ENT…

---

## [Aligning Div content to top](https://forum.kirupa.com/t/aligning-div-content-to-top/281851)

<div class="topic-metadata">

**Author:** [@Kevin\_B](https://forum.kirupa.com/u/Kevin_B)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 9:00pm UTC](https://forum.kirupa.com/t/aligning-div-content-to-top/281851 "2009-02-13T21:00:49Z")

</div>

I have the following div, which I want to align to the top-left of the browser: \<body onload="javascript:setDefaults();"\> \<div class="top"\> \<img alt="foo" src="foo.gif" align="left" border="0" /\> …

---

## [Passing optional variables in brackets](https://forum.kirupa.com/t/passing-optional-variables-in-brackets/281849)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 8:17pm UTC](https://forum.kirupa.com/t/passing-optional-variables-in-brackets/281849 "2009-02-13T20:17:30Z")

</div>

:megaman\_x:So check this out... Let's say I have a function in a class with two required parameters and two optional: public class Person extends Sprite { private var haveToWork:Boolean; private var hoursOfS…

---

## [Insert not Inserting into Database](https://forum.kirupa.com/t/insert-not-inserting-into-database/281848)

<div class="topic-metadata">

**Author:** [@lenmat](https://forum.kirupa.com/u/lenmat)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 8:10pm UTC](https://forum.kirupa.com/t/insert-not-inserting-into-database/281848 "2009-02-13T20:10:38Z")

</div>

I am making an image gallery and am using sql to store the paths. I have changed the names of each file when uploaded, so not to overwrite each other. The file uploads to the directory, but nothing is sent to the datab…

---

## [Max Size on upload](https://forum.kirupa.com/t/max-size-on-upload/281845)

<div class="topic-metadata">

**Author:** [@lenmat](https://forum.kirupa.com/u/lenmat)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 7:38pm UTC](https://forum.kirupa.com/t/max-size-on-upload/281845 "2009-02-13T19:38:23Z")

</div>

I have script that will upload an image to a directory and place the user id's number on it. It has a max size also. If the image is over the max size, it displays the right thing, but it uploads the image anyways. How…

---

## [Linking class with stage object](https://forum.kirupa.com/t/linking-class-with-stage-object/281844)

<div class="topic-metadata">

**Author:** [@ryrocks](https://forum.kirupa.com/u/ryrocks)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 7:35pm UTC](https://forum.kirupa.com/t/linking-class-with-stage-object/281844 "2009-02-13T19:35:11Z")

</div>

..

---

## [AS3 implementation of GraphicButton](https://forum.kirupa.com/t/as3-implementation-of-graphicbutton/281843)

<div class="topic-metadata">

**Author:** [@calv\_j](https://forum.kirupa.com/u/calv_j)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 7:32pm UTC](https://forum.kirupa.com/t/as3-implementation-of-graphicbutton/281843 "2009-02-13T19:32:27Z")

</div>

Hi, Just wondering how to go about making graphical buttons in AS3 along the lines as I have done in AS2 for years - which is pretty much along the lines of Grant Skinners GraphicButton (sure it's widely known, but basic…

---

## [Help with loaderinfo in a class](https://forum.kirupa.com/t/help-with-loaderinfo-in-a-class/281841)

<div class="topic-metadata">

**Author:** [@rondog](https://forum.kirupa.com/u/rondog)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 7:12pm UTC](https://forum.kirupa.com/t/help-with-loaderinfo-in-a-class/281841 "2009-02-13T19:12:24Z")

</div>

I am trying to get data from SWFObject: \<div id="flashcontent"\> \<script type="text/javascript"\> var so = new SWFObject("inc/modules/scenarios/playlistEditor.swf", "playlistEditor", "850", "370", "9", "#39566F"); …

---

## [Mimicing a html (POST) call from flash](https://forum.kirupa.com/t/mimicing-a-html-post-call-from-flash/281839)

<div class="topic-metadata">

**Author:** [@substance](https://forum.kirupa.com/u/substance)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 6:45pm UTC](https://forum.kirupa.com/t/mimicing-a-html-post-call-from-flash/281839 "2009-02-13T18:45:45Z")

</div>

I'm basically trying to re-create a HTML link in flash that will allow me to log in to my forums. Here's the HTML version: \<form action="blah.com/forums/ucp.php?mode=login" method="post"\> \<fieldset\> \<label…

---

## [onLoadInit with thumbnails from XML](https://forum.kirupa.com/t/onloadinit-with-thumbnails-from-xml/281838)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 6:25pm UTC](https://forum.kirupa.com/t/onloadinit-with-thumbnails-from-xml/281838 "2009-02-13T18:25:47Z")

</div>

Hello, I am loading a few thumbnails from XML. When they load in, I want them to perform a few simple functions. However, when I load them in, Only the LAST thumbnail takes the onLoadInit() function. Can you help me out? …

---

## [setRGB() disappear when i change alpha](https://forum.kirupa.com/t/setrgb-disappear-when-i-change-alpha/281835)

<div class="topic-metadata">

**Author:** [@hailflex](https://forum.kirupa.com/u/hailflex)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 5:54pm UTC](https://forum.kirupa.com/t/setrgb-disappear-when-i-change-alpha/281835 "2009-02-13T17:54:29Z")

</div>

Hello, i used setRGB() to change a movieclip (with just a graphic) inside and it worked... but when i change this movieclip alpha and the setRGB() effect just disappears and the color goes back to what it was before, t…

---

## [FLV -\> array of BitmapData](https://forum.kirupa.com/t/flv-array-of-bitmapdata/281834)

<div class="topic-metadata">

**Author:** [@luiner](https://forum.kirupa.com/u/luiner)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 5:35pm UTC](https://forum.kirupa.com/t/flv-array-of-bitmapdata/281834 "2009-02-13T17:35:54Z")

</div>

Hey If I have problem, kirupa is the only site I can get answer (if I can get it anywhere) So, I'm trying to rasterize frame after frame FLV movie, my problem is that I need to do it fast(I dont't have to show anyth…

---

## [Flash maze problem](https://forum.kirupa.com/t/flash-maze-problem/281829)

<div class="topic-metadata">

**Author:** [@OlaB](https://forum.kirupa.com/u/OlaB)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 4:31pm UTC](https://forum.kirupa.com/t/flash-maze-problem/281829 "2009-02-13T16:31:15Z")

</div>

\[FONT=Arial\]Hello!\[/FONT\] \[FONT=Arial\]I am developing a flash maze game and I have a problem with changing direction of my movie clip. I can move around my maze and I have a hit test sorted. But what I want is when a pl…

---

## [Object Object Syntax Help](https://forum.kirupa.com/t/object-object-syntax-help/281826)

<div class="topic-metadata">

**Author:** [@matius](https://forum.kirupa.com/u/matius)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 3:59pm UTC](https://forum.kirupa.com/t/object-object-syntax-help/281826 "2009-02-13T15:59:50Z")

</div>

Sadly, I have the livedocs wide open and I still can’t figure out how to send off multiple variables in an object (from a class) to the FLA file… (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html) T…

---

## [Creating a symbol within a class](https://forum.kirupa.com/t/creating-a-symbol-within-a-class/281822)

<div class="topic-metadata">

**Author:** [@Ersk](https://forum.kirupa.com/u/Ersk)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 2:07pm UTC](https://forum.kirupa.com/t/creating-a-symbol-within-a-class/281822 "2009-02-13T14:07:34Z")

</div>

I have a class called "playerClass" which I want to create multiple players from. I have made a movie clip symbol called "soldierOrange" and exported it for actionscript. I have also removed it off the stage. I have trie…

---

## [Any known issues with AS1 scroll bars in latest player?](https://forum.kirupa.com/t/any-known-issues-with-as1-scroll-bars-in-latest-player/281821)

<div class="topic-metadata">

**Author:** [@justSteve](https://forum.kirupa.com/u/justSteve)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 1:55pm UTC](https://forum.kirupa.com/t/any-known-issues-with-as1-scroll-bars-in-latest-player/281821 "2009-02-13T13:55:37Z")

</div>

Greetings...I'm maintaining a number of 'legacy' AS1 movies - in some, but not all, the scrollbars controlling text boxes have quit working. I'm seeing the behavior (rather -lack of behavior) both when re-compiling the o…

---

## [Making multiple .SWFs into one for upload](https://forum.kirupa.com/t/making-multiple-swfs-into-one-for-upload/281817)

<div class="topic-metadata">

**Author:** [@Drew91](https://forum.kirupa.com/u/Drew91)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 1:06pm UTC](https://forum.kirupa.com/t/making-multiple-swfs-into-one-for-upload/281817 "2009-02-13T13:06:11Z")

</div>

I've got this project I've been working on, and right now, it's pretty big, covering all of the sports at my school with news, scores, rosters, and statistics. It's pretty big, so I made it on many seperate SWF's that l…

---

## [Button - hit state works sometimes](https://forum.kirupa.com/t/button-hit-state-works-sometimes/281816)

<div class="topic-metadata">

**Author:** [@lowmoan](https://forum.kirupa.com/u/lowmoan)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 12:55pm UTC](https://forum.kirupa.com/t/button-hit-state-works-sometimes/281816 "2009-02-13T12:55:34Z")

</div>

I created a button in flash. I gave it a different state for 'over' and 'down' - changing the color and scale respectively, so it looks depressed when you hit it. I then assigned an action to the button so that when it…

---

## [No Flash? How to redirect to a HTML version of my site](https://forum.kirupa.com/t/no-flash-how-to-redirect-to-a-html-version-of-my-site/281811)

<div class="topic-metadata">

**Author:** [@lowmoan](https://forum.kirupa.com/u/lowmoan)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 12:05pm UTC](https://forum.kirupa.com/t/no-flash-how-to-redirect-to-a-html-version-of-my-site/281811 "2009-02-13T12:05:42Z")

</div>

I'm developing a website based in flash. I'm aware that a lot of people out there still don't have the flash player installed, and in a lot of offices are limited by adminstrator privileges to do so. Often people get ann…

---

## [Loading external swf with a movie clip symbol](https://forum.kirupa.com/t/loading-external-swf-with-a-movie-clip-symbol/281808)

<div class="topic-metadata">

**Author:** [@startrooper85](https://forum.kirupa.com/u/startrooper85)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 11:44am UTC](https://forum.kirupa.com/t/loading-external-swf-with-a-movie-clip-symbol/281808 "2009-02-13T11:44:54Z")

</div>

Hi! I'm pretty new on actionscript coding. Trying to call an external swf into stage with a movie clip symbol. How can i do this? I'd like to merge these 2 codes: This one i use for a movie clip buttons effect: stop…

---

## [Weird trouble dealing with float numbers in coordinates](https://forum.kirupa.com/t/weird-trouble-dealing-with-float-numbers-in-coordinates/281805)

<div class="topic-metadata">

**Author:** [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 11:29am UTC](https://forum.kirupa.com/t/weird-trouble-dealing-with-float-numbers-in-coordinates/281805 "2009-02-13T11:29:14Z")

</div>

In this case, I want it to add a vx to a sprite's x each time to make a motion. at first, the x value of the sprite is 254, the vx is very small, only 0.01 As there might be some trouble when dealing with float numbe…

---

## [What is the best way to deal with very slow 2d motion?](https://forum.kirupa.com/t/what-is-the-best-way-to-deal-with-very-slow-2d-motion/281802)

<div class="topic-metadata">

**Author:** [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 10:42am UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-deal-with-very-slow-2d-motion/281802 "2009-02-13T10:42:06Z")

</div>

Making Motion in AS3 is not hard, but to make a very very slow motion, I met a lot of troubles today. Well, I have some stuff on my stage and I wanna move them very very slowly, using a "Timer", then I have two ways to…

---

## [Tip of the Day: Detecting When the Mouse Leaves the Movie](https://forum.kirupa.com/t/tip-of-the-day-detecting-when-the-mouse-leaves-the-movie/281801)

<div class="topic-metadata">

**Author:** [@smallDot](https://forum.kirupa.com/u/smallDot)\
**Replies:** 0\
**Last updated:** [February 13, 2009, 10:41am UTC](https://forum.kirupa.com/t/tip-of-the-day-detecting-when-the-mouse-leaves-the-movie/281801 "2009-02-13T10:41:57Z")

</div>

i tried this code, but nothing happened, any help var cursor:Sprite = new Sprite(); function Test() { cursor.graphics.beginFill(0xFF9900); cursor.graphics.drawRect(0, 0, 25, 25); addChild(cursor); st…

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

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