# programming

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

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

**Page:** 344

---

## [Color Game](https://forum.kirupa.com/t/color-game/318436)

<div class="topic-metadata">

**Author:** [@K\_n](https://forum.kirupa.com/u/K_n)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 7:09am UTC](https://forum.kirupa.com/t/color-game/318436 "2011-01-20T07:09:06Z")

</div>

Hi everyone. I want to create a simple color mixture game for kids based on actioscript 2.0. I’ve tried searching for the tutorial on the internet but to no avail. I have no idea of how to start writing the codes as I a…

---

## [AS3: Recording video from webcam](https://forum.kirupa.com/t/as3-recording-video-from-webcam/318435)

<div class="topic-metadata">

**Author:** [@pavanshinde](https://forum.kirupa.com/u/pavanshinde)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 6:42am UTC](https://forum.kirupa.com/t/as3-recording-video-from-webcam/318435 "2011-01-20T06:42:44Z")

</div>

Hi All, I have an application which shows videos from users webcam. I want to know that is there any open source script or something in as3 which can save this video as mpeg or flv format. If any one know or have any…

---

## [Accessing via an object](https://forum.kirupa.com/t/accessing-via-an-object/318431)

<div class="topic-metadata">

**Author:** [@glisando](https://forum.kirupa.com/u/glisando)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 4:58am UTC](https://forum.kirupa.com/t/accessing-via-an-object/318431 "2011-01-20T04:58:11Z")

</div>

Hi Guys... I am trying to access a shared object declared in a certain function, from another function. I am having difficulty doing so. My code are as follows: //Constructor code public function EventTest() { …

---

## [Chinese text](https://forum.kirupa.com/t/chinese-text/318430)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 4:07am UTC](https://forum.kirupa.com/t/chinese-text/318430 "2011-01-20T04:07:08Z")

</div>

If Chinese text is allowed to type as a condition for other action, how do I tell flash to recognise the Chinese character? My code : btn.onPress=function(){if(word.text=="爸爸"){message="yes";}else{gotoAndStop(2)}};

---

## [Font size different on various computers/browsers](https://forum.kirupa.com/t/font-size-different-on-various-computers-browsers/318429)

<div class="topic-metadata">

**Author:** [@VonSnuggles](https://forum.kirupa.com/u/VonSnuggles)\
**Replies:** 0\
**Last updated:** [January 20, 2011, 12:26am UTC](https://forum.kirupa.com/t/font-size-different-on-various-computers-browsers/318429 "2011-01-20T00:26:48Z")

</div>

I have everything styled with "em" sizes, and I checked that the various browsers were not zoomed in/out, but on one computer, my fonts are the desired size, and on another, they are still larger, which is breaking my pa…

---

## [Help Removing Event Listeners & Resetting Game](https://forum.kirupa.com/t/help-removing-event-listeners-resetting-game/318428)

<div class="topic-metadata">

**Author:** [@slkas](https://forum.kirupa.com/u/slkas)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 10:49pm UTC](https://forum.kirupa.com/t/help-removing-event-listeners-resetting-game/318428 "2011-01-19T22:49:20Z")

</div>

I'm trying to develop a catching game, just for a bit of fun and learning experience. I've been bouncing between tutorials and I've finally come to a point where I can't get any further. After you catch three sandwhich…

---

## [AS2 controlling movie clips timeline gotoAndPlay](https://forum.kirupa.com/t/as2-controlling-movie-clips-timeline-gotoandplay/318423)

<div class="topic-metadata">

**Author:** [@Kedge](https://forum.kirupa.com/u/Kedge)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 7:37pm UTC](https://forum.kirupa.com/t/as2-controlling-movie-clips-timeline-gotoandplay/318423 "2011-01-19T19:37:22Z")

</div>

AS2 CS5 Hi there, i am experiencing a similar problem! (beginner student of flash!!) i have a movie clip called MCMAINCLIP and within that MC i have MCPhotos. I am trying to add script to a button in MCMAINCLIP allowin…

---

## [Data display problem](https://forum.kirupa.com/t/data-display-problem/318422)

<div class="topic-metadata">

**Author:** [@rldavis622](https://forum.kirupa.com/u/rldavis622)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 7:29pm UTC](https://forum.kirupa.com/t/data-display-problem/318422 "2011-01-19T19:29:49Z")

</div>

I am new to PHP/MySQL/Apache so please pardon me if I sound like I am lost, because I am. I took over a job and there are a number of home grown PHP/MySQL aplications. The apps are with PHP5, MySQL 5.0.51a, they are ru…

---

## [Box2DFlash performance on iPhone?](https://forum.kirupa.com/t/box2dflash-performance-on-iphone/318420)

<div class="topic-metadata">

**Author:** [@slopps](https://forum.kirupa.com/u/slopps)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 5:58pm UTC](https://forum.kirupa.com/t/box2dflash-performance-on-iphone/318420 "2011-01-19T17:58:10Z")

</div>

Does anyone have any knowledge of how Box2DFlash would perform on an iPhone if I were to write a game in AS3 and use the Export for iPhone feature of flash CS5? Is that going to be significantly, if at all, slower than i…

---

## [Theremin?](https://forum.kirupa.com/t/theremin/318418)

<div class="topic-metadata">

**Author:** [@cmrui\_costa](https://forum.kirupa.com/u/cmrui_costa)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 5:11pm UTC](https://forum.kirupa.com/t/theremin/318418 "2011-01-19T17:11:44Z")

</div>

Hi, I'm a MA student and I'm trying to make a simple theremin in Flash. Can it be done and has anyone made one before? Thanks, Stephen

---

## [Adding a mask to my xml thumbnails](https://forum.kirupa.com/t/adding-a-mask-to-my-xml-thumbnails/318417)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 4:05pm UTC](https://forum.kirupa.com/t/adding-a-mask-to-my-xml-thumbnails/318417 "2011-01-19T16:05:41Z")

</div>

Hi, I am trying to add a mask to my xml thumbnails, I have managed to get the mask working but only on the first image... Here is my thumbloaded function: function thumbLoaded(e:Event):void { var my\_thumb:Loa…

---

## [startDrag and bounds](https://forum.kirupa.com/t/startdrag-and-bounds/318416)

<div class="topic-metadata">

**Author:** [@luoruize](https://forum.kirupa.com/u/luoruize)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 3:26pm UTC](https://forum.kirupa.com/t/startdrag-and-bounds/318416 "2011-01-19T15:26:06Z")

</div>

Hello, I have an image on the stage which is bigger than the stage itself: The stage is 700x550 The image is 2100x1650, and it's registration point is at its center, if I remember correctly. The initial location of the…

---

## [Total flash base website](https://forum.kirupa.com/t/total-flash-base-website/318414)

<div class="topic-metadata">

**Author:** [@rohandg86](https://forum.kirupa.com/u/rohandg86)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 12:20pm UTC](https://forum.kirupa.com/t/total-flash-base-website/318414 "2011-01-19T12:20:34Z")

</div>

Hai, I am trying to build a website completely in flash or in other words its complete but the problem is of linking. I can't build the entire website in one single flash file coz it is so heavy that it will take te…

---

## [Loading an external image into bitmap data](https://forum.kirupa.com/t/loading-an-external-image-into-bitmap-data/318413)

<div class="topic-metadata">

**Author:** [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 12:14pm UTC](https://forum.kirupa.com/t/loading-an-external-image-into-bitmap-data/318413 "2011-01-19T12:14:00Z")

</div>

hi there .. I want to turn an image into bitmapData, which isnt in the library. var theImage:BitmapData = BitmapData.loadBitmap("libraryImg"); ..is how it works from the library.. but I need to load an external file. …

---

## [Mount an read an image](https://forum.kirupa.com/t/mount-an-read-an-image/318410)

<div class="topic-metadata">

**Author:** [@portem1](https://forum.kirupa.com/u/portem1)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 11:35am UTC](https://forum.kirupa.com/t/mount-an-read-an-image/318410 "2011-01-19T11:35:58Z")

</div>

I am having a problem and dont know where to start on this one, my experience in c# programming is average and was hoping for some advice on this subject. I have a disc image (an exact duplicate of a 40gb hard disc drive…

---

## [Adding 0.\* to x result isnt correct](https://forum.kirupa.com/t/adding-0-to-x-result-isnt-correct/318407)

<div class="topic-metadata">

**Author:** [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 10:28am UTC](https://forum.kirupa.com/t/adding-0-to-x-result-isnt-correct/318407 "2011-01-19T10:28:59Z")

</div>

hey. This: for (var i=0; i\<10; i++){ symb.x += 0.4; trace(symb.x); } Where symb is an movieclip on x 0 and y 0. the result of trace is: 0.4 0.8 1.2 1.6 2 2.4 2.8 \*\*3.15\*\* what happens here 3.55 3.95 4.35 This …

---

## [Speeding up website loading](https://forum.kirupa.com/t/speeding-up-website-loading/318406)

<div class="topic-metadata">

**Author:** [@KJoe](https://forum.kirupa.com/u/KJoe)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 9:37am UTC](https://forum.kirupa.com/t/speeding-up-website-loading/318406 "2011-01-19T09:37:02Z")

</div>

I have created a new website in AS3 with a video gallery and am trying to speed up the loading of the page for this as currently it pauses before appearing on the page. I have tried to get all the movies down to as low a…

---

## [Button with switching functions](https://forum.kirupa.com/t/button-with-switching-functions/318405)

<div class="topic-metadata">

**Author:** [@funtasma](https://forum.kirupa.com/u/funtasma)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 9:11am UTC](https://forum.kirupa.com/t/button-with-switching-functions/318405 "2011-01-19T09:11:21Z")

</div>

Hello dear forum, I have a problem. I spend hours in google without success, so hopefully you can help me. I'm working on a gallery. In the "Picture.as" class I load the picture and there is also a function with an an…

---

## [How to Get Original Xbox DLC on Xbox 360](https://forum.kirupa.com/t/how-to-get-original-xbox-dlc-on-xbox-360/318404)

<div class="topic-metadata">

**Author:** [@jonahcandy](https://forum.kirupa.com/u/jonahcandy)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 7:50am UTC](https://forum.kirupa.com/t/how-to-get-original-xbox-dlc-on-xbox-360/318404 "2011-01-19T07:50:22Z")

</div>

I never had an original xbox, so bear with me here. I assume the xbox had a service similar to marketplace for downloading content (i.e. Splinter Cell Chaos Theory co-op mission pack). So now I'm playing backwards-compat…

---

## [Formatting xml in text field](https://forum.kirupa.com/t/formatting-xml-in-text-field/318400)

<div class="topic-metadata">

**Author:** [@art\_i\_choke](https://forum.kirupa.com/u/art_i_choke)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 5:32am UTC](https://forum.kirupa.com/t/formatting-xml-in-text-field/318400 "2011-01-19T05:32:57Z")

</div>

I've got an external xml file loaded into a text field... I'm trying to format the text within the xml file with actionscript. Specifically, I'd like to make the dates a different color from the actual posts, and I want …

---

## [Do these performance tips still apply?](https://forum.kirupa.com/t/do-these-performance-tips-still-apply/318399)

<div class="topic-metadata">

**Author:** [@OMG](https://forum.kirupa.com/u/OMG)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 4:14am UTC](https://forum.kirupa.com/t/do-these-performance-tips-still-apply/318399 "2011-01-19T04:14:42Z")

</div>

http://www.lostinactionscript.com/blog/index.php/2008/09/28/tips-on-how-to-write-efficient-as3 http://www.lostinactionscript.com/blog/index.php/2008/11/01/tips-on-how-to-write-efficient-as3-part-2/ (since it's written …

---

## [Button Mouse Over](https://forum.kirupa.com/t/button-mouse-over/318397)

<div class="topic-metadata">

**Author:** [@stormchaser](https://forum.kirupa.com/u/stormchaser)\
**Replies:** 0\
**Last updated:** [January 19, 2011, 2:50am UTC](https://forum.kirupa.com/t/button-mouse-over/318397 "2011-01-19T02:50:40Z")

</div>

Dear All Please find the attached image, http://img821.imageshack.us/i/demoq.jpg/ i am trying this for past few days still no idea how to make it work. when the flash loads only 4 buttons will be seen. on mouse over…

---

## [Adding Movieclip in Library through Class to Frame](https://forum.kirupa.com/t/adding-movieclip-in-library-through-class-to-frame/318395)

<div class="topic-metadata">

**Author:** [@Alycone](https://forum.kirupa.com/u/Alycone)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 11:44pm UTC](https://forum.kirupa.com/t/adding-movieclip-in-library-through-class-to-frame/318395 "2011-01-18T23:44:33Z")

</div>

Okay, so I decided to try putting some child movieclip switches into the .as instead of in the frames. After a lot of Googling and reading, I think I learned that each of those movieclips need to be in their own .as. Any…

---

## [Anyone familiar with flexcroll? Div hidden overflow problem](https://forum.kirupa.com/t/anyone-familiar-with-flexcroll-div-hidden-overflow-problem/318391)

<div class="topic-metadata">

**Author:** [@drnen101](https://forum.kirupa.com/u/drnen101)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 8:27pm UTC](https://forum.kirupa.com/t/anyone-familiar-with-flexcroll-div-hidden-overflow-problem/318391 "2011-01-18T20:27:10Z")

</div>

sample page is up at http://darrenlasso.com/freelance/frame1.html Trying to make a lookbook- there is a side nav with div overflow and some java to give it a specialized scrollbar. I've gotten it working before, but on…

---

## [Switch/Case Confusion](https://forum.kirupa.com/t/switch-case-confusion/318390)

<div class="topic-metadata">

**Author:** [@phatgreenbuds](https://forum.kirupa.com/u/phatgreenbuds)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 8:15pm UTC](https://forum.kirupa.com/t/switch-case-confusion/318390 "2011-01-18T20:15:14Z")

</div>

I have no idea why this is not working...the last block (case "0") should check for and remove whichever of the two boxs that are currently onstage but for some reason its only removing one and ignores the other. cbs…

---

## [Travel Distance Calculator](https://forum.kirupa.com/t/travel-distance-calculator/318387)

<div class="topic-metadata">

**Author:** [@navigator81](https://forum.kirupa.com/u/navigator81)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 6:50pm UTC](https://forum.kirupa.com/t/travel-distance-calculator/318387 "2011-01-18T18:50:46Z")

</div>

Hello Everyone. I am given a task by my client to develop a calculator which will calculate the Cab fair from one location to another. There is a list of Cab fairs as well as their corresponding Location Name. It would…

---

## [Access an array of Sprites from the timeline](https://forum.kirupa.com/t/access-an-array-of-sprites-from-the-timeline/318385)

<div class="topic-metadata">

**Author:** [@lario](https://forum.kirupa.com/u/lario)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 6:22pm UTC](https://forum.kirupa.com/t/access-an-array-of-sprites-from-the-timeline/318385 "2011-01-18T18:22:48Z")

</div>

Hey! i'm pretty new to AS3 and i'm having a problem with accessing an array from the timeline. What I'm trying to do is to add sprites from the array that is being created in a class. It goes like this package { i…

---

## [AS2 - playing animations depending on what mc's are onstage](https://forum.kirupa.com/t/as2-playing-animations-depending-on-what-mcs-are-onstage/318381)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 5:07pm UTC](https://forum.kirupa.com/t/as2-playing-animations-depending-on-what-mcs-are-onstage/318381 "2011-01-18T17:07:47Z")

</div>

Im building an interactive courtroom exhibit which has seven thumbnails along the bottom of the screen that can be dragged up to load a larger image of each into three possible positions above. Once in position, an "Asse…

---

## [Reducing redraw regions in snow effect](https://forum.kirupa.com/t/reducing-redraw-regions-in-snow-effect/318378)

<div class="topic-metadata">

**Author:** [@Dan\_Pixel](https://forum.kirupa.com/u/Dan_Pixel)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 3:39pm UTC](https://forum.kirupa.com/t/reducing-redraw-regions-in-snow-effect/318378 "2011-01-18T15:39:06Z")

</div>

Hi all, I have a difficult problem that I can see no way to solve. Perhaps someone here can help me? I've been making a flash animation for a client - the dimensions of the stage are 2,000px wide, 800px tall. They wa…

---

## [Object property from XML behaves erratically in switch statement](https://forum.kirupa.com/t/object-property-from-xml-behaves-erratically-in-switch-statement/318374)

<div class="topic-metadata">

**Author:** [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Replies:** 0\
**Last updated:** [January 18, 2011, 1:07pm UTC](https://forum.kirupa.com/t/object-property-from-xml-behaves-erratically-in-switch-statement/318374 "2011-01-18T13:07:51Z")

</div>

Hi, I'll start by saying I don't expect and answer to this but I am really curious if someone else has encountered it or knows what the friggle is going on or just has some thoughts on the matter: Sequence of events: …

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

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