# programming

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

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

**Page:** 820

---

## [\[FLASH CS3\] Really need some help assigning actions to dynamic movieclips](https://forum.kirupa.com/t/flash-cs3-really-need-some-help-assigning-actions-to-dynamic-movieclips/288221)

<div class="topic-metadata">

**Author:** [@nige1](https://forum.kirupa.com/u/nige1)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 12:34am UTC](https://forum.kirupa.com/t/flash-cs3-really-need-some-help-assigning-actions-to-dynamic-movieclips/288221 "2009-05-13T00:34:10Z")

</div>

Hello, Really need some help on this - it's driving me mad. Everthing below works fine apart from the: \*\*movBlank\['image'+i\].onRelease = function() { trace("MC Pressed"); }\*\* When I run the file the ima…

---

## [Create a dynamic text list](https://forum.kirupa.com/t/create-a-dynamic-text-list/288220)

<div class="topic-metadata">

**Author:** [@neas](https://forum.kirupa.com/u/neas)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 12:32am UTC](https://forum.kirupa.com/t/create-a-dynamic-text-list/288220 "2009-05-13T00:32:21Z")

</div>

Hi, I wanted to create a running list based on button functions for a menu I am designing. A function for hotdog purchase is below. function hotdog(evt:MouseEvent) { var responderhotdog = new Responder(insertHotdo…

---

## [MySQL, Flash, PHP, and AS2](https://forum.kirupa.com/t/mysql-flash-php-and-as2/288218)

<div class="topic-metadata">

**Author:** [@infestor1](https://forum.kirupa.com/u/infestor1)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 12:18am UTC](https://forum.kirupa.com/t/mysql-flash-php-and-as2/288218 "2009-05-13T00:18:05Z")

</div>

I know this is possible, but I have no idea how to do it. How can I hook up a Flash login system which logs in to a Flash game to a MySQL database, so my testers can save their game to the database. Thanks in advance.

---

## [Platformer score animations](https://forum.kirupa.com/t/platformer-score-animations/288217)

<div class="topic-metadata">

**Author:** [@rjdfhorn\_06](https://forum.kirupa.com/u/rjdfhorn_06)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 11:48pm UTC](https://forum.kirupa.com/t/platformer-score-animations/288217 "2009-05-12T23:48:48Z")

</div>

I am currently working on a platformer where the character runs, jumps, collects items, etc. Right now, if the character touches a collectible like a coin, it disappears using unloadMovie(). I want to be able to add a s…

---

## [My weather widget won't run on my local server](https://forum.kirupa.com/t/my-weather-widget-wont-run-on-my-local-server/288216)

<div class="topic-metadata">

**Author:** [@gale](https://forum.kirupa.com/u/gale)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 10:40pm UTC](https://forum.kirupa.com/t/my-weather-widget-wont-run-on-my-local-server/288216 "2009-05-12T22:40:39Z")

</div>

Hello all, I have made a weather widget using a really good tutorial from the tech labs that connects to www.weather.com and retrieves an XML file and then displays the info. If anyone is interested the link is: http…

---

## [Searching PARTIAL attribute value of XML](https://forum.kirupa.com/t/searching-partial-attribute-value-of-xml/288214)

<div class="topic-metadata">

**Author:** [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 9:03pm UTC](https://forum.kirupa.com/t/searching-partial-attribute-value-of-xml/288214 "2009-05-12T21:03:09Z")

</div>

I have gone thru the Kirupa's tutorial "\[COLOR=#003366\]Using XML in Flash CS3/AS3\[/COLOR\]", and it helped a lot in my project. Now, I have a question in XML searching. If an attribute's value is say title="kirupa tutoria…

---

## [Trouble Fading In/Out An SWF (AS2)](https://forum.kirupa.com/t/trouble-fading-in-out-an-swf-as2/288213)

<div class="topic-metadata">

**Author:** [@zigsta](https://forum.kirupa.com/u/zigsta)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 8:53pm UTC](https://forum.kirupa.com/t/trouble-fading-in-out-an-swf-as2/288213 "2009-05-12T20:53:19Z")

</div>

Hi there, I am wanting to load an SWF file into another movie on the click of a button. I can do this but I want the new SWF to fade in and then fade out when another SWF is loaded. I'm not to sure where to start may…

---

## [AS3 and CSS. This has gotta be something stupid I'm doing](https://forum.kirupa.com/t/as3-and-css-this-has-gotta-be-something-stupid-im-doing/288212)

<div class="topic-metadata">

**Author:** [@studlybw](https://forum.kirupa.com/u/studlybw)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 8:52pm UTC](https://forum.kirupa.com/t/as3-and-css-this-has-gotta-be-something-stupid-im-doing/288212 "2009-05-12T20:52:56Z")

</div>

I can't, for the life of me get my dynamic text box to apply the CSS stylesheet that I've linked. The loader is definitely loading the css and I get a good trace of the css but the text shows up with it's orignal formatt…

---

## [Capturing image from webcam and loading to Flash](https://forum.kirupa.com/t/capturing-image-from-webcam-and-loading-to-flash/288208)

<div class="topic-metadata">

**Author:** [@makportal](https://forum.kirupa.com/u/makportal)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 8:23pm UTC](https://forum.kirupa.com/t/capturing-image-from-webcam-and-loading-to-flash/288208 "2009-05-12T20:23:56Z")

</div>

Hi, I'm trying to have a webcam option in my flash that would allows the user (if they have a webcam) to take a picture of themselves and show this picture in flash. So far I've only been able to get the camera part …

---

## [Best way to create vertical news ticker in AS3](https://forum.kirupa.com/t/best-way-to-create-vertical-news-ticker-in-as3/288205)

<div class="topic-metadata">

**Author:** [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 7:26pm UTC](https://forum.kirupa.com/t/best-way-to-create-vertical-news-ticker-in-as3/288205 "2009-05-12T19:26:12Z")

</div>

I wanting to create a basic news scroll / ticker like this http://www.scriptocean.com/ What's the best way of achieving this to get a continuous smooth animation. Thanks Ricky

---

## [Mask on dynamic text](https://forum.kirupa.com/t/mask-on-dynamic-text/288201)

<div class="topic-metadata">

**Author:** [@ozkanb](https://forum.kirupa.com/u/ozkanb)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:50pm UTC](https://forum.kirupa.com/t/mask-on-dynamic-text/288201 "2009-05-12T18:50:26Z")

</div>

I'm trying to set a mask on a mc containing dynamic text. But, the only thing that are visible, are graphics, not text. When i remove the mask, the text comes back. What happens? Can anyone tell me what to do? i he…

---

## [Get RGB values of an mc during a colour tween](https://forum.kirupa.com/t/get-rgb-values-of-an-mc-during-a-colour-tween/288199)

<div class="topic-metadata">

**Author:** [@AndyA](https://forum.kirupa.com/u/AndyA)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:38pm UTC](https://forum.kirupa.com/t/get-rgb-values-of-an-mc-during-a-colour-tween/288199 "2009-05-12T18:38:56Z")

</div>

Hi. I am trying to carry out an actionscript colour tween and have found the following code on these forums: //////////////////////////////////////////////////////////// doTween = function () { var t = (getTimer()-t…

---

## [Printing contents of a scroll pane](https://forum.kirupa.com/t/printing-contents-of-a-scroll-pane/288198)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:26pm UTC](https://forum.kirupa.com/t/printing-contents-of-a-scroll-pane/288198 "2009-05-12T18:26:30Z")

</div>

I'm using a scroll pane component to contain a horizontally scrolling timeline. I'm also setting up a print function, which has worked fine for me in the past (i.e., sans scroll pane). However I find that with the scroll…

---

## [Can you make an input textbox draggable?](https://forum.kirupa.com/t/can-you-make-an-input-textbox-draggable/288196)

<div class="topic-metadata">

**Author:** [@crazy\_clairey](https://forum.kirupa.com/u/crazy_clairey)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:06pm UTC](https://forum.kirupa.com/t/can-you-make-an-input-textbox-draggable/288196 "2009-05-12T18:06:33Z")

</div>

Hi there, I want to have a draggable input textbox on the stage (it will b placed ontop of an image of a tshirt). I want the user to be able to enter text and then move the textbox around to where they want it on the…

---

## [A more efficient hitTest?](https://forum.kirupa.com/t/a-more-efficient-hittest/288192)

<div class="topic-metadata">

**Author:** [@Kimsan](https://forum.kirupa.com/u/Kimsan)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 5:55pm UTC](https://forum.kirupa.com/t/a-more-efficient-hittest/288192 "2009-05-12T17:55:55Z")

</div>

Hey, everyone. I'm making a game with a LOT of symbols. Right now I need to hitTest them all (it easily goes up to like 700 symbols) with a for-loop. It gets a little laggy. So what what'd be perfect for me would be …

---

## [Regex to Replace and Transform](https://forum.kirupa.com/t/regex-to-replace-and-transform/288187)

<div class="topic-metadata">

**Author:** [@zik80](https://forum.kirupa.com/u/zik80)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 5:07pm UTC](https://forum.kirupa.com/t/regex-to-replace-and-transform/288187 "2009-05-12T17:07:20Z")

</div>

Please, what is the best Regular Expression code to transform StringA to StringB? StringA: III Class (1, 7, 9 and 4). IV Class 6, 8, 3. I Class 2-8 StringB: 3rd Class 1,7,9,4;4th Class 6,8,3;1st Class 2-8 :cowboy:

---

## [Ajax Php show value with change in dropdown what am i doing wrong?](https://forum.kirupa.com/t/ajax-php-show-value-with-change-in-dropdown-what-am-i-doing-wrong/288186)

<div class="topic-metadata">

**Author:** [@utsav](https://forum.kirupa.com/u/utsav)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 5:04pm UTC](https://forum.kirupa.com/t/ajax-php-show-value-with-change-in-dropdown-what-am-i-doing-wrong/288186 "2009-05-12T17:04:19Z")

</div>

I am trying to make this. Suggest name in select menu as typed in text box Once the preferred name is clicked in the menu then show that users profile in other form (currently div would be ok). Part 1 works good. B…

---

## [Offset wrong in Adding Thumbnails Tutorial](https://forum.kirupa.com/t/offset-wrong-in-adding-thumbnails-tutorial/288182)

<div class="topic-metadata">

**Author:** [@quasi3](https://forum.kirupa.com/u/quasi3)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 4:11pm UTC](https://forum.kirupa.com/t/offset-wrong-in-adding-thumbnails-tutorial/288182 "2009-05-12T16:11:30Z")

</div>

Playing with the Adding Scrolling Thumbnails Tutorial. Got it to work fine. Increased the size of the gallery. Now the first thumbnail is offset too far from the left. (hit\_left). About a whole thumbnails width. Everythi…

---

## [addChildAt not working: RangeError: Error #2006](https://forum.kirupa.com/t/addchildat-not-working-rangeerror-error-2006/288181)

<div class="topic-metadata">

**Author:** [@rib](https://forum.kirupa.com/u/rib)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 3:56pm UTC](https://forum.kirupa.com/t/addchildat-not-working-rangeerror-error-2006/288181 "2009-05-12T15:56:09Z")

</div>

i simply load a playermenu from the library and then attach the whole player\_menu to the stage. when doing it with addChild it works, however when i specify a index it reports that error. (i need to use it because i want…

---

## [Tween function Advice needed?](https://forum.kirupa.com/t/tween-function-advice-needed/288180)

<div class="topic-metadata">

**Author:** [@nighteagle](https://forum.kirupa.com/u/nighteagle)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 3:41pm UTC](https://forum.kirupa.com/t/tween-function-advice-needed/288180 "2009-05-12T15:41:20Z")

</div>

I'm working on an application where several object have to be tweened with similar animation. I have this part of code: var moveTween:Tween; function moveObj(obj:MovieClip, startValue:Number, endValue:Number, duratio…

---

## [Make button stay depressed](https://forum.kirupa.com/t/make-button-stay-depressed/288172)

<div class="topic-metadata">

**Author:** [@ladyorelinde](https://forum.kirupa.com/u/ladyorelinde)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 1:20pm UTC](https://forum.kirupa.com/t/make-button-stay-depressed/288172 "2009-05-12T13:20:29Z")

</div>

I have a nav menu that works fine, but I'm trying to get the buttons to stay in the "over" position when the user clicks it and goes to that page. So if they're on the "about" page, the "about" button will stay larger t…

---

## ["Deleting" a function/reseting it - as2](https://forum.kirupa.com/t/deleting-a-function-reseting-it-as2/288164)

<div class="topic-metadata">

**Author:** [@CforConfused](https://forum.kirupa.com/u/CforConfused)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 10:23am UTC](https://forum.kirupa.com/t/deleting-a-function-reseting-it-as2/288164 "2009-05-12T10:23:58Z")

</div>

Hey Guys So here is something~ I am working on a website with xml menu and "slideshows". The xml is working beatifully, what I am having trouble with is stopping a function and restarting it later... I know it sounds e…

---

## [How to disable MouseEvent.CLICK events on a MovieClip](https://forum.kirupa.com/t/how-to-disable-mouseevent-click-events-on-a-movieclip/288159)

<div class="topic-metadata">

**Author:** [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:44am UTC](https://forum.kirupa.com/t/how-to-disable-mouseevent-click-events-on-a-movieclip/288159 "2009-05-12T06:44:25Z")

</div>

Hi all, I am new to Flash & ActionScript 3.0. I only have basic knowledge of AS 3.0 && Flash. My issue starts here: Suppose, I created a MovieClip(say, instance-name= "myClip") on the stage. …

---

## [gotoAndStop();](https://forum.kirupa.com/t/gotoandstop/288157)

<div class="topic-metadata">

**Author:** [@DeeCOT](https://forum.kirupa.com/u/DeeCOT)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 3:41am UTC](https://forum.kirupa.com/t/gotoandstop/288157 "2009-05-12T03:41:03Z")

</div>

I have used gotoAndStop() before. But this time I have a menu on the stage. Each button has a roll over, but when it's on the active frame I wanted it to stay an orange color. That where I decided to use the gotoAndSt…

---

## [Need to recreate movieclip button](https://forum.kirupa.com/t/need-to-recreate-movieclip-button/288153)

<div class="topic-metadata">

**Author:** [@ralphiedee](https://forum.kirupa.com/u/ralphiedee)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 12:51am UTC](https://forum.kirupa.com/t/need-to-recreate-movieclip-button/288153 "2009-05-12T00:51:42Z")

</div>

I need to recreate 2 buttons inside an mc or a main button in AS 2.0 best way to understand is look here http://www.pepbonet.com/index.html rollover "portfolio" then rollover faith in chaos you will see a set o…

---

## [Flash.media.Video & Closed Captioning](https://forum.kirupa.com/t/flash-media-video-closed-captioning/288150)

<div class="topic-metadata">

**Author:** [@dygfloyd](https://forum.kirupa.com/u/dygfloyd)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 11:01pm UTC](https://forum.kirupa.com/t/flash-media-video-closed-captioning/288150 "2009-05-11T23:01:08Z")

</div>

Hey everyone, I have a legacy piece of code I need to edit. It's an old video player using the flash.media.video class. They want to add Closed Captioning. Does anyone know if this can be done easily? I can't find much…

---

## [Error: Parameter child must be non-null](https://forum.kirupa.com/t/error-parameter-child-must-be-non-null/288147)

<div class="topic-metadata">

**Author:** [@shagggs55](https://forum.kirupa.com/u/shagggs55)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:25pm UTC](https://forum.kirupa.com/t/error-parameter-child-must-be-non-null/288147 "2009-05-11T22:25:40Z")

</div>

Hi there I am building a shoppin cart in flash and I am having a problem getting the purchase items list to work. Each item which gets added to the cart gets put into a movie clip and added into a purchased items moveCli…

---

## [\[AS3\] asp variables via URLLoader.data](https://forum.kirupa.com/t/as3-asp-variables-via-urlloader-data/288146)

<div class="topic-metadata">

**Author:** [@plaidharper](https://forum.kirupa.com/u/plaidharper)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:09pm UTC](https://forum.kirupa.com/t/as3-asp-variables-via-urlloader-data/288146 "2009-05-11T22:09:17Z")

</div>

Having trouble get the URLLoader class to work. Unsure but I must be missing something basic. Just trying to send name/value pairs from asp to flash. AS3 Code: var loader:URLLoader = new URLLoader(); loader.dataForm…

---

## [Preloader for external swf load](https://forum.kirupa.com/t/preloader-for-external-swf-load/288145)

<div class="topic-metadata">

**Author:** [@goalpost95](https://forum.kirupa.com/u/goalpost95)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 9:52pm UTC](https://forum.kirupa.com/t/preloader-for-external-swf-load/288145 "2009-05-11T21:52:13Z")

</div>

I have my main swf file and two external swf files i'm trying to load into the main one. I have preloaders for each external swf file but when I have the main swf file it won't load the preloaders it seems to be loading…

---

## [Drag/Drop - addChild problem](https://forum.kirupa.com/t/drag-drop-addchild-problem/288144)

<div class="topic-metadata">

**Author:** [@Jazzperson](https://forum.kirupa.com/u/Jazzperson)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 9:36pm UTC](https://forum.kirupa.com/t/drag-drop-addchild-problem/288144 "2009-05-11T21:36:43Z")

</div>

Hi Kirupas! I'm trying to drag multiple MC's around with the normal metod: function mouseDownHandler(event:MouseEvent):void { event.target.startDrag(false); } function mouseUpHandler(event:MouseEvent):void { …

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

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