# programming

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

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

**Page:** 293

---

## [Flash to database](https://forum.kirupa.com/t/flash-to-database/321353)

<div class="topic-metadata">

**Author:** [@Aruhath](https://forum.kirupa.com/u/Aruhath)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 11:17pm UTC](https://forum.kirupa.com/t/flash-to-database/321353 "2011-04-17T23:17:11Z")

</div>

Hey folks I need some info/tutorials for sending a quiz result from flash/as3 to SQL Now im not asking for someone to type up exactly what and how to do it and code it, not in the slightest What im looking for is s…

---

## [Pie chart animation](https://forum.kirupa.com/t/pie-chart-animation/321351)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 9:34pm UTC](https://forum.kirupa.com/t/pie-chart-animation/321351 "2011-04-17T21:34:49Z")

</div>

I was trying to resurrect some old code from this old tutorial: http://www.actionscript.org/resources/articles/168/3/Dynamic-masking-using-the-drawing-API/Page3.html I'm not figuring out why the "maskee" isn't being …

---

## [hitTestObject dispatching randomly](https://forum.kirupa.com/t/hittestobject-dispatching-randomly/321350)

<div class="topic-metadata">

**Author:** [@noahssite](https://forum.kirupa.com/u/noahssite)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 6:50pm UTC](https://forum.kirupa.com/t/hittestobject-dispatching-randomly/321350 "2011-04-17T18:50:34Z")

</div>

Hello, I have a movieclip called blackCircle that is controlled by the user. I also have other movie clips created on a timer called redCircles. When the two movie clips collide score increases by 1. This works however a…

---

## [Help in random function](https://forum.kirupa.com/t/help-in-random-function/321349)

<div class="topic-metadata">

**Author:** [@essa2002135](https://forum.kirupa.com/u/essa2002135)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 5:56pm UTC](https://forum.kirupa.com/t/help-in-random-function/321349 "2011-04-17T17:56:44Z")

</div>

i want to make random number between 1 to 10 without repate numbet twice or more i use this function to make random function getRandomNumber(min:Number, max:Number):Number { var randomNumber:Number = Math.round(Ma…

---

## [Update sql with looping](https://forum.kirupa.com/t/update-sql-with-looping/321343)

<div class="topic-metadata">

**Author:** [@sinyi88](https://forum.kirupa.com/u/sinyi88)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 9:27am UTC](https://forum.kirupa.com/t/update-sql-with-looping/321343 "2011-04-17T09:27:26Z")

</div>

$query\_query1="SELECT \* FROM patterns WHERE status='$radiobutton' ORDER BY id"; $result\_query1= mysql\_query($query\_query1); $j=0; do { $query\_query= "UPDATE patterns SET patpic='../nailbg$alphabet/imag…

---

## [Plz help...loaded external .swf doesnt act on its code, but acts proper individually](https://forum.kirupa.com/t/plz-help-loaded-external-swf-doesnt-act-on-its-code-but-acts-proper-individually/321338)

<div class="topic-metadata">

**Author:** [@plainman007](https://forum.kirupa.com/u/plainman007)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 5:06am UTC](https://forum.kirupa.com/t/plz-help-loaded-external-swf-doesnt-act-on-its-code-but-acts-proper-individually/321338 "2011-04-17T05:06:26Z")

</div>

I have a mainmc on the stage. I have another extarnal mc called buttons\_mc. When i use loadMovie and load that external mc, the loaded mc's AS2 doesnt seem to run when playing within the mainmc. Is it possible that a l…

---

## [How To insert Day And Time In flash AS2?](https://forum.kirupa.com/t/how-to-insert-day-and-time-in-flash-as2/321336)

<div class="topic-metadata">

**Author:** [@runzun](https://forum.kirupa.com/u/runzun)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 4:05am UTC](https://forum.kirupa.com/t/how-to-insert-day-and-time-in-flash-as2/321336 "2011-04-17T04:05:44Z")

</div>

I want to display Day and time in flash with AS2 not only that i want to put certain event on certain date and time that means i have a movie clip with object on it ,when i run it, it changes its position BUT now i…

---

## [Inserting adsense ads](https://forum.kirupa.com/t/inserting-adsense-ads/321334)

<div class="topic-metadata">

**Author:** [@worthless](https://forum.kirupa.com/u/worthless)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 2:34am UTC](https://forum.kirupa.com/t/inserting-adsense-ads/321334 "2011-04-17T02:34:59Z")

</div>

Want to know how can I insert adsense ads in my flash templates? Any help will be highly appreciated. Regards FB

---

## [Dynamic instance name problems](https://forum.kirupa.com/t/dynamic-instance-name-problems/321333)

<div class="topic-metadata">

**Author:** [@jleonardusa](https://forum.kirupa.com/u/jleonardusa)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 2:15am UTC](https://forum.kirupa.com/t/dynamic-instance-name-problems/321333 "2011-04-17T02:15:07Z")

</div>

Hi all, I'm working on a small game right now that is a basic drag drop with collision detection etc. Im trying to get to grips with AS3 but am having some problems. Currently I am using a loop to populate the scree…

---

## [Very noobish questions](https://forum.kirupa.com/t/very-noobish-questions/321332)

<div class="topic-metadata">

**Author:** [@Aruhath](https://forum.kirupa.com/u/Aruhath)\
**Replies:** 0\
**Last updated:** [April 17, 2011, 12:19am UTC](https://forum.kirupa.com/t/very-noobish-questions/321332 "2011-04-17T00:19:39Z")

</div>

Hey guys, im new to flash and as3 so please be gentle \[smile\] I made a simple flash preference quiz that takes preferences on key words and saves them into an array at certain indexes. My problem is i made a second k…

---

## [How can I make my mc moving across the page in a loop?](https://forum.kirupa.com/t/how-can-i-make-my-mc-moving-across-the-page-in-a-loop/321331)

<div class="topic-metadata">

**Author:** [@Chbook](https://forum.kirupa.com/u/Chbook)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 11:30pm UTC](https://forum.kirupa.com/t/how-can-i-make-my-mc-moving-across-the-page-in-a-loop/321331 "2011-04-16T23:30:54Z")

</div>

Hi, I am trying to make a simulation of a blood moving in an artery and I want blood cells to continuously be moving across the stage ( so that there are no gaps in between one loop and the other) when i click the start …

---

## [FXON (Flash XML Object Notation) Project](https://forum.kirupa.com/t/fxon-flash-xml-object-notation-project/321330)

<div class="topic-metadata">

**Author:** [@stompkins](https://forum.kirupa.com/u/stompkins)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 10:00pm UTC](https://forum.kirupa.com/t/fxon-flash-xml-object-notation-project/321330 "2011-04-16T22:00:58Z")

</div>

Hey All, I just started an open source project @ Google Code. I came up with this simple notation for a recent project. I have since used it on several projects and am happy to share it with anyone else who might benef…

---

## [Play/Pause toggle used for multiple movieclips](https://forum.kirupa.com/t/play-pause-toggle-used-for-multiple-movieclips/321329)

<div class="topic-metadata">

**Author:** [@sslat](https://forum.kirupa.com/u/sslat)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 9:40pm UTC](https://forum.kirupa.com/t/play-pause-toggle-used-for-multiple-movieclips/321329 "2011-04-16T21:40:18Z")

</div>

I am setting up a module that has about 10 movieclips, all on the stage on one layer. I have a play/pause toggle button and next button that I want to use as the media player for all the movieclips and just make the movi…

---

## [Novice question re: SharedObjects](https://forum.kirupa.com/t/novice-question-re-sharedobjects/321328)

<div class="topic-metadata">

**Author:** [@lkingman](https://forum.kirupa.com/u/lkingman)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 8:42pm UTC](https://forum.kirupa.com/t/novice-question-re-sharedobjects/321328 "2011-04-16T20:42:58Z")

</div>

Where is the SharedObject file? My SharedObject files work just fine. But when I create a local SO "myPrefs", Flash apparently does not write a file named "myPrefs". Is it in a Flash db, or is it hidden or what? Is …

---

## [Cleaning up code using variables](https://forum.kirupa.com/t/cleaning-up-code-using-variables/321327)

<div class="topic-metadata">

**Author:** [@Gabums](https://forum.kirupa.com/u/Gabums)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 7:45pm UTC](https://forum.kirupa.com/t/cleaning-up-code-using-variables/321327 "2011-04-16T19:45:32Z")

</div>

Hello all, I'm trying to clean up my code for an animation I created. I'm hoping by doing this, my animation will stop being as buggy and/or I can more easily figure out why its being buggy. I think that variables are …

---

## [Entering classes](https://forum.kirupa.com/t/entering-classes/321321)

<div class="topic-metadata">

**Author:** [@detrik](https://forum.kirupa.com/u/detrik)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 12:23pm UTC](https://forum.kirupa.com/t/entering-classes/321321 "2011-04-16T12:23:01Z")

</div>

Well.. I got a question that i hope someone can answer, here goes. Is it possible to call a function in a class from another class? and if it is possible then how can i do it???

---

## [Call function with argument](https://forum.kirupa.com/t/call-function-with-argument/321319)

<div class="topic-metadata">

**Author:** [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 11:12am UTC](https://forum.kirupa.com/t/call-function-with-argument/321319 "2011-04-16T11:12:28Z")

</div>

In the code I want to call the function like this \_root.onMouseUp=do("xyz"), but the way is not correct. Can anybody tell me the correct way to do this. function do(abc) { trace(abc) } \_root.onMouseUp=function(){ do…

---

## [MovieClip Class](https://forum.kirupa.com/t/movieclip-class/321317)

<div class="topic-metadata">

**Author:** [@Dushan69](https://forum.kirupa.com/u/Dushan69)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 9:26am UTC](https://forum.kirupa.com/t/movieclip-class/321317 "2011-04-16T09:26:25Z")

</div>

Hello, I am new to action script 3.0 and i have been reading the tutorial about MovieClip classes on kirupa.com, and i learned a lot from it. Yet i have a question about doing a movieclip button class that does roll\_ov…

---

## [Is there a Data Dictionary in Flash Fla's](https://forum.kirupa.com/t/is-there-a-data-dictionary-in-flash-flas/321311)

<div class="topic-metadata">

**Author:** [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 6:28am UTC](https://forum.kirupa.com/t/is-there-a-data-dictionary-in-flash-flas/321311 "2011-04-16T06:28:52Z")

</div>

I have been getting sporadic errors after deleting a symbol then recreating the symbol and making a past used instance name. Sure my current workaround is to use changing the name by adding an extra letter. Eg if instanc…

---

## [Actionscript 2.0 Multiple duplicateMovieClip not working](https://forum.kirupa.com/t/actionscript-2-0-multiple-duplicatemovieclip-not-working/321309)

<div class="topic-metadata">

**Author:** [@OldMouse](https://forum.kirupa.com/u/OldMouse)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 4:53am UTC](https://forum.kirupa.com/t/actionscript-2-0-multiple-duplicatemovieclip-not-working/321309 "2011-04-16T04:53:31Z")

</div>

Hello, im new here and im having a bit of trouble on a project for school. I'm trying to make a moving star field using a for loop and duplicateMovieClip, but when I try to add more than one duplicateMovieClip statemen…

---

## [I think i have a problem with my Loop](https://forum.kirupa.com/t/i-think-i-have-a-problem-with-my-loop/321308)

<div class="topic-metadata">

**Author:** [@mrTristan](https://forum.kirupa.com/u/mrTristan)\
**Replies:** 0\
**Last updated:** [April 16, 2011, 4:25am UTC](https://forum.kirupa.com/t/i-think-i-have-a-problem-with-my-loop/321308 "2011-04-16T04:25:04Z")

</div>

Hi guys, having some issues with converting an AS2 tutorial i found into AS3. I have 4 Movieclips on stage, each called btn1, btn2, btn3 and btn4. Inside each movieclip is an image and then a layer above it called cov…

---

## [mp3 player opening in new window](https://forum.kirupa.com/t/mp3-player-opening-in-new-window/321304)

<div class="topic-metadata">

**Author:** [@KJoe](https://forum.kirupa.com/u/KJoe)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 9:25pm UTC](https://forum.kirupa.com/t/mp3-player-opening-in-new-window/321304 "2011-04-15T21:25:46Z")

</div>

I have made an mp3 player which works fine but I have one issue. Currently if you click on the speakers it will open the player in another window. That's what I want but what I need help with is can you tell me of a w…

---

## [Letting the user draw lines, then smooth them out](https://forum.kirupa.com/t/letting-the-user-draw-lines-then-smooth-them-out/321301)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 7:06pm UTC](https://forum.kirupa.com/t/letting-the-user-draw-lines-then-smooth-them-out/321301 "2011-04-15T19:06:34Z")

</div>

Hello, Right now I have it so that the user draws a line and I capture the points at which they begin and end the line. Then I delete that line (it is too sqiggly) and draw a straight line between those 2 points. Wh…

---

## [TypeError: #1009 Issues](https://forum.kirupa.com/t/typeerror-1009-issues/321300)

<div class="topic-metadata">

**Author:** [@Snowflake343](https://forum.kirupa.com/u/Snowflake343)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 6:24pm UTC](https://forum.kirupa.com/t/typeerror-1009-issues/321300 "2011-04-15T18:24:29Z")

</div>

Okay. I'm trying to make a popup alert modal window thing with an external class. I have a simple swf set up with just some random sample text, a rectangle, and a button (just so I can tell if it's working or not). What …

---

## [Problem with the actionscripting of a button within a movie clip](https://forum.kirupa.com/t/problem-with-the-actionscripting-of-a-button-within-a-movie-clip/321299)

<div class="topic-metadata">

**Author:** [@Michelle\_E](https://forum.kirupa.com/u/Michelle_E)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 5:53pm UTC](https://forum.kirupa.com/t/problem-with-the-actionscripting-of-a-button-within-a-movie-clip/321299 "2011-04-15T17:53:25Z")

</div>

I have created a simple movie clip with an instance name of "MOVIE". The movie clip contains a 2 stage tween. I have also labelled the frames of my movie clip. The first label is called "SHOW" and the tween goes from an…

---

## [Building a Game for WP7 (WindowsPhone 7)](https://forum.kirupa.com/t/building-a-game-for-wp7-windowsphone-7/321297)

<div class="topic-metadata">

**Author:** [@samint2011](https://forum.kirupa.com/u/samint2011)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 4:56pm UTC](https://forum.kirupa.com/t/building-a-game-for-wp7-windowsphone-7/321297 "2011-04-15T16:56:18Z")

</div>

Hello, I'm new to WP7 application development, the question is, I want to make a game for WP7 so i want to ask that from where should i get start and what are the necessary softwares or application I will need to build a…

---

## [CodeDrive: New ActionScript 3 IDE with fast compiler](https://forum.kirupa.com/t/codedrive-new-actionscript-3-ide-with-fast-compiler/321296)

<div class="topic-metadata">

**Author:** [@codedrive](https://forum.kirupa.com/u/codedrive)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 3:51pm UTC](https://forum.kirupa.com/t/codedrive-new-actionscript-3-ide-with-fast-compiler/321296 "2011-04-15T15:51:58Z")

</div>

Recently - at April 12, 2011 - we announced public beta version of CodeDrive - new ActionScript 3 IDE for Visual Studio - and offers you to try it in your Flash development. We need your feedback very much - both positi…

---

## [\[papervision\] Add image to a plane?](https://forum.kirupa.com/t/papervision-add-image-to-a-plane/321294)

<div class="topic-metadata">

**Author:** [@keitai](https://forum.kirupa.com/u/keitai)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 2:43pm UTC](https://forum.kirupa.com/t/papervision-add-image-to-a-plane/321294 "2011-04-15T14:43:01Z")

</div>

how i can add text on a plane and put the plane in a 3d scene? I have the following \[Embed(source="../lib/QuickScan.png")\] private var QuickScan:Class; private function createScene():void { quickscan = new Quick…

---

## [AS3 Features not working outside of Flash Publish](https://forum.kirupa.com/t/as3-features-not-working-outside-of-flash-publish/321293)

<div class="topic-metadata">

**Author:** [@aerahn](https://forum.kirupa.com/u/aerahn)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 2:26pm UTC](https://forum.kirupa.com/t/as3-features-not-working-outside-of-flash-publish/321293 "2011-04-15T14:26:48Z")

</div>

I am having a strange issue where some AS3 features work when I publish directly from Flash by using Ctrl+Enter, but then if I launch the .swf directly from the folder where I publish it, things don't work. For example, …

---

## [Reload slides.xml and images in Slideshow](https://forum.kirupa.com/t/reload-slides-xml-and-images-in-slideshow/321291)

<div class="topic-metadata">

**Author:** [@macdons](https://forum.kirupa.com/u/macdons)\
**Replies:** 0\
**Last updated:** [April 15, 2011, 2:02pm UTC](https://forum.kirupa.com/t/reload-slides-xml-and-images-in-slideshow/321291 "2011-04-15T14:02:26Z")

</div>

I am attempting to create a Digital Signage-like presentation. I am using a Cisco DMP 4310G Digital Media Player which is flash-optimized and likes actionscript 2.0 best. The slideshow consists of a slides.xml file and a…

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

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