# programming

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

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

**Page:** 132

---

## [Tip: Enabling Webcam and Microphone in Firefox 18 or 19](https://forum.kirupa.com/t/tip-enabling-webcam-and-microphone-in-firefox-18-or-19/330542)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [February 6, 2013, 11:32am UTC](https://forum.kirupa.com/t/tip-enabling-webcam-and-microphone-in-firefox-18-or-19/330542 "2013-02-06T11:32:36Z")

</div>

After spending nearly an hour trying to figure out why my webcam code wasn't working in Firefox 19, I realized that the feature is supported but currently turned off by default in the config according to this post. To …

---

## [Tutorial: Introduction to Animation in HTML](https://forum.kirupa.com/t/tutorial-introduction-to-animation-in-html/330540)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [February 6, 2013, 9:44am UTC](https://forum.kirupa.com/t/tutorial-introduction-to-animation-in-html/330540 "2013-02-06T09:44:17Z")

</div>

\[COLOR=#333333\]Hi everyone,\[/COLOR\] \[COLOR=#333333\]This is THE place to discuss all things related to the Introduction to Animation in HTML\[/COLOR\]\[COLOR=#333333\] tutorial.\[/COLOR\] \[COLOR=#333333\]Cheers,\[/COLOR\] \[COLOR…

---

## [Error: Unable to load GestureWorksCML.swc](https://forum.kirupa.com/t/error-unable-to-load-gestureworkscml-swc/330539)

<div class="topic-metadata">

**Author:** [@lokraj](https://forum.kirupa.com/u/lokraj)\
**Replies:** 0\
**Last updated:** [February 6, 2013, 7:44am UTC](https://forum.kirupa.com/t/error-unable-to-load-gestureworkscml-swc/330539 "2013-02-06T07:44:02Z")

</div>

Hi, I'm using OpenExhibits library. I'm unable to use this GestureWorksCML.swc lib. I could not find the path "com.gestureworks.cml" in the GestureWorksCML.swc library. I got error message, Error: Unable to load Gesture…

---

## [AS2 - xml files help](https://forum.kirupa.com/t/as2-xml-files-help/330537)

<div class="topic-metadata">

**Author:** [@razzledee](https://forum.kirupa.com/u/razzledee)\
**Replies:** 0\
**Last updated:** [February 6, 2013, 12:21am UTC](https://forum.kirupa.com/t/as2-xml-files-help/330537 "2013-02-06T00:21:26Z")

</div>

I have a quiz that has categories. The questions for each category are in separate xml files. When the quiz movie clip ends after 10 questions it goes to the results page where there is a choice to replay the same catego…

---

## [Css/JS issues](https://forum.kirupa.com/t/css-js-issues/330536)

<div class="topic-metadata">

**Author:** [@john\_wayne](https://forum.kirupa.com/u/john_wayne)\
**Replies:** 0\
**Last updated:** [February 5, 2013, 10:28pm UTC](https://forum.kirupa.com/t/css-js-issues/330536 "2013-02-05T22:28:14Z")

</div>

Recently started coding a website project and it went nuts! The css, js and everything were working properly, then all of a sudden nothing. The pages are all blown apart so I'm assuming its the css, or something, but i…

---

## [gotoAndPlay in a class](https://forum.kirupa.com/t/gotoandplay-in-a-class/330533)

<div class="topic-metadata">

**Author:** [@Marc\_Guardiola](https://forum.kirupa.com/u/Marc_Guardiola)\
**Replies:** 0\
**Last updated:** [February 5, 2013, 8:12pm UTC](https://forum.kirupa.com/t/gotoandplay-in-a-class/330533 "2013-02-05T20:12:59Z")

</div>

Hello, I ll try to explain what im trying to do in a game. I spawn a monster on x=500 and he walks with an animation to x=100,(animation loop is from frame 1 to 6), i want to change that animation from frame 8 to 20 (att…

---

## [Some shapes don't fill - Why?](https://forum.kirupa.com/t/some-shapes-dont-fill-why/330532)

<div class="topic-metadata">

**Author:** [@catcat31](https://forum.kirupa.com/u/catcat31)\
**Replies:** 0\
**Last updated:** [February 5, 2013, 7:53pm UTC](https://forum.kirupa.com/t/some-shapes-dont-fill-why/330532 "2013-02-05T19:53:12Z")

</div>

Why for example, when the line tool is used to create an object shape (with object drawing off), is the shape unable to be filled? I've tried re-creating the shape from scratch and sometimes it will fill but then it won'…

---

## [Drag and Drop Game - need some help](https://forum.kirupa.com/t/drag-and-drop-game-need-some-help/330528)

<div class="topic-metadata">

**Author:** [@Jennifer\_Wray](https://forum.kirupa.com/u/Jennifer_Wray)\
**Replies:** 0\
**Last updated:** [February 5, 2013, 1:34pm UTC](https://forum.kirupa.com/t/drag-and-drop-game-need-some-help/330528 "2013-02-05T13:34:51Z")

</div>

I am pretty new to game development and I'm making a fairly simple game (or so I thought) I have the drag and drop function down, that was pretty easy but ran into a few problems. First, I have an input menu where the pl…

---

## [How to link my flash banner to a webpage?](https://forum.kirupa.com/t/how-to-link-my-flash-banner-to-a-webpage/330526)

<div class="topic-metadata">

**Author:** [@Vincentas](https://forum.kirupa.com/u/Vincentas)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 3:57pm UTC](https://forum.kirupa.com/t/how-to-link-my-flash-banner-to-a-webpage/330526 "2013-02-04T15:57:31Z")

</div>

Hi there, I have made a simple flash banner which has 8 layers. Now i wanna link it to a webpage. How can I do this????

---

## [Spark List constructor](https://forum.kirupa.com/t/spark-list-constructor/330525)

<div class="topic-metadata">

**Author:** [@destinier](https://forum.kirupa.com/u/destinier)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 7:02am UTC](https://forum.kirupa.com/t/spark-list-constructor/330525 "2013-02-04T07:02:35Z")

</div>

I have observed that Spark List constructor is adding below event. But I see that the same is not removed anywhere. Moreover the handler is scoped to "private" which means that it cannot be accessed to its descendants. …

---

## [Help on shared object and MC](https://forum.kirupa.com/t/help-on-shared-object-and-mc/330524)

<div class="topic-metadata">

**Author:** [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Replies:** 0\
**Last updated:** [February 4, 2013, 6:13am UTC](https://forum.kirupa.com/t/help-on-shared-object-and-mc/330524 "2013-02-04T06:13:52Z")

</div>

What I want to do is : I want my\_MC to be visible the first time user opened my swf. after that,the my\_MC is invisible, How can I store my\_MC into shared object and properly use it? is this possible? Thank you.

---

## [Animated card turn - How to?](https://forum.kirupa.com/t/animated-card-turn-how-to/330523)

<div class="topic-metadata">

**Author:** [@catcat31](https://forum.kirupa.com/u/catcat31)\
**Replies:** 0\
**Last updated:** [February 3, 2013, 8:58pm UTC](https://forum.kirupa.com/t/animated-card-turn-how-to/330523 "2013-02-03T20:58:21Z")

</div>

Hi, I want to animate two matched cards in a matching game so that when clicked they turn and either fly off and or once turned are removed. Could someone please demonstrate how this is done? I don't want the cards to si…

---

## [Problem with reading an element from array](https://forum.kirupa.com/t/problem-with-reading-an-element-from-array/330519)

<div class="topic-metadata">

**Author:** [@xxelxx](https://forum.kirupa.com/u/xxelxx)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 7:24pm UTC](https://forum.kirupa.com/t/problem-with-reading-an-element-from-array/330519 "2013-02-02T19:24:05Z")

</div>

Hello guys! I am very new to Flash and AS3 so I am sorry if my question is too obvious but I cannot figure out what is going on. Basically what I want is to import random sprites from the library to the stage by cal…

---

## [Find Cube xyz in an array of cubes](https://forum.kirupa.com/t/find-cube-xyz-in-an-array-of-cubes/330518)

<div class="topic-metadata">

**Author:** [@FJW](https://forum.kirupa.com/u/FJW)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 5:33pm UTC](https://forum.kirupa.com/t/find-cube-xyz-in-an-array-of-cubes/330518 "2013-02-02T17:33:26Z")

</div>

Hi once again I am trying to see if a cube exists in an array of cubes and although I believe there should be a match, it does not find one. Here is the code snippet, could anyone offer any help please? \<code\> private fu…

---

## [Weird Lines](https://forum.kirupa.com/t/weird-lines/330517)

<div class="topic-metadata">

**Author:** [@alpie78](https://forum.kirupa.com/u/alpie78)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 9:47am UTC](https://forum.kirupa.com/t/weird-lines/330517 "2013-02-02T09:47:52Z")

</div>

Can anybody tell me why I see these lines on safari and firefox lately? www.alpaygumrukcu.com Please check out the jpg attached I have no similar experiences in the past! Thank you in advance! Alpay Gumrukcu

---

## [Weird Stripes popping out](https://forum.kirupa.com/t/weird-stripes-popping-out/330516)

<div class="topic-metadata">

**Author:** [@alpie78](https://forum.kirupa.com/u/alpie78)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 9:29am UTC](https://forum.kirupa.com/t/weird-stripes-popping-out/330516 "2013-02-02T09:29:01Z")

</div>

Hello All, I have designed a web site featuring my portfolio but lately I started to see some stripes on top of my main animation. They can be seen on the jpg I have attached. Can somebody help me get rid of it? And …

---

## [Using an Array to load MovieClips for inventory](https://forum.kirupa.com/t/using-an-array-to-load-movieclips-for-inventory/330515)

<div class="topic-metadata">

**Author:** [@Logimus](https://forum.kirupa.com/u/Logimus)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 8:31am UTC](https://forum.kirupa.com/t/using-an-array-to-load-movieclips-for-inventory/330515 "2013-02-02T08:31:38Z")

</div>

Hi all, I have what seems to be a pretty simple request but I can't for the life of me figure out a solution. I have a feeling it's so simple and that I must be missing something. What I have is this: \[LIST\] \[\*\]An ar…

---

## [Increasing stats help](https://forum.kirupa.com/t/increasing-stats-help/330511)

<div class="topic-metadata">

**Author:** [@cluin14](https://forum.kirupa.com/u/cluin14)\
**Replies:** 0\
**Last updated:** [February 1, 2013, 2:55am UTC](https://forum.kirupa.com/t/increasing-stats-help/330511 "2013-02-01T02:55:44Z")

</div>

Hey there, so I'm working on a game where as you click a button, your stats increase. I'm having a problem though, I have a code that generates a random number between 1 and 100, but I need it to be a decimal so I can tu…

---

## [So simple I can't figure it out](https://forum.kirupa.com/t/so-simple-i-cant-figure-it-out/330510)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [January 31, 2013, 3:04pm UTC](https://forum.kirupa.com/t/so-simple-i-cant-figure-it-out/330510 "2013-01-31T15:04:34Z")

</div>

I want to be able to drag one item in \_x and have it move another item in \_y. This has got to be simple, yes? I may be overthinking it but I'm stumped!

---

## [Pass a loaded Sprite into a Worker](https://forum.kirupa.com/t/pass-a-loaded-sprite-into-a-worker/330508)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 10:40pm UTC](https://forum.kirupa.com/t/pass-a-loaded-sprite-into-a-worker/330508 "2013-01-30T22:40:09Z")

</div>

I've been trying to pass my Sprite (a loaded swf-image) into my Worker in some way. I've tried to just pass the sprite as the send-command to the MessageChannel, like this: Main.mainToWorker.send(e.currentTarget.conte…

---

## [AS3 Worker - External or internal SWF?](https://forum.kirupa.com/t/as3-worker-external-or-internal-swf/330506)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 4:38pm UTC](https://forum.kirupa.com/t/as3-worker-external-or-internal-swf/330506 "2013-01-30T16:38:22Z")

</div>

I'm playing around with threads in AS3 using the Worker-class. I've searched for tutorials all over the net but haven't managed to find many enough to get some questions solved, so I'll ask it here! The thing with the …

---

## [Client-side communicate to the Server-Side](https://forum.kirupa.com/t/client-side-communicate-to-the-server-side/330505)

<div class="topic-metadata">

**Author:** [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 3:57pm UTC](https://forum.kirupa.com/t/client-side-communicate-to-the-server-side/330505 "2013-01-30T15:57:59Z")

</div>

Hello All, I am looking for a little advice. I hope this is the correct forum to post this question. Anyhow, I want to build a live video chat application. I am really unsure what is the best alternative to go for, for t…

---

## [ActionScript 3 code meanings](https://forum.kirupa.com/t/actionscript-3-code-meanings/330504)

<div class="topic-metadata">

**Author:** [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 2:49pm UTC](https://forum.kirupa.com/t/actionscript-3-code-meanings/330504 "2013-01-30T14:49:45Z")

</div>

I have just started learning ActionScirpt 3.0 and Server-Side ActionScript I have been reading lots of tutorials. And, i come across these pieces of code often: +"/n" i++ i=0; But i am clueless i don't understand what th…

---

## [Multiple Buttons in a MC in a Scrollpane](https://forum.kirupa.com/t/multiple-buttons-in-a-mc-in-a-scrollpane/330503)

<div class="topic-metadata">

**Author:** [@OldNewDude](https://forum.kirupa.com/u/OldNewDude)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 2:41pm UTC](https://forum.kirupa.com/t/multiple-buttons-in-a-mc-in-a-scrollpane/330503 "2013-01-30T14:41:25Z")

</div>

\[LEFT\]This non-programmer artist needs some AS3 help. All my previous Flash work was just drawing and tweening, etc., no significant scripting. Then along came this project, with a tight deadline. I’ve blown too much tim…

---

## [CS4 /AS2 : Problem with Detecting Collisions between moving/ tweening objects](https://forum.kirupa.com/t/cs4-as2-problem-with-detecting-collisions-between-moving-tweening-objects/330502)

<div class="topic-metadata">

**Author:** [@Plug\_Head](https://forum.kirupa.com/u/Plug_Head)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 2:38pm UTC](https://forum.kirupa.com/t/cs4-as2-problem-with-detecting-collisions-between-moving-tweening-objects/330502 "2013-01-30T14:38:31Z")

</div>

Here's the thing I am working on project where: \[LIST\] \[\*\]A rectangle is rotating. Think of a clock. Programmed with a tween. \[\*\]There is a generator. On click it produces a square, duplicate of a movieclip. This squar…

---

## [Tutorial: Centering a Div Horizontally](https://forum.kirupa.com/t/tutorial-centering-a-div-horizontally/330499)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 6:35am UTC](https://forum.kirupa.com/t/tutorial-centering-a-div-horizontally/330499 "2013-01-30T06:35:37Z")

</div>

Hi everyone, This is THE place to discuss all things related to the Centering a Div Horizontally tutorial. Cheers, Kirupa =)

---

## [Programming for multiple devices- PPI](https://forum.kirupa.com/t/programming-for-multiple-devices-ppi/330497)

<div class="topic-metadata">

**Author:** [@wortic](https://forum.kirupa.com/u/wortic)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 3:59am UTC](https://forum.kirupa.com/t/programming-for-multiple-devices-ppi/330497 "2013-01-30T03:59:00Z")

</div>

Hello, How can you write a program for multiple devices? I mean devices with different resolutions. I found out there is a thing called PPI but couln't really find a way to implement it. Lets say I have an object in flas…

---

## [Creating holder mc for dynamically created sprites/objects to rotate holder](https://forum.kirupa.com/t/creating-holder-mc-for-dynamically-created-sprites-objects-to-rotate-holder/330495)

<div class="topic-metadata">

**Author:** [@saratogacoach2](https://forum.kirupa.com/u/saratogacoach2)\
**Replies:** 0\
**Last updated:** [January 30, 2013, 12:09am UTC](https://forum.kirupa.com/t/creating-holder-mc-for-dynamically-created-sprites-objects-to-rotate-holder/330495 "2013-01-30T00:09:03Z")

</div>

Is it possible to dynamically create a holder movieclip that would hold several dynamically created sprites/objects/children? I found an excellent tutorial for a bejeweled game, with a rotation of gemsCanvas feature, but…

---

## [Action Script 3](https://forum.kirupa.com/t/action-script-3/330494)

<div class="topic-metadata">

**Author:** [@Asma\_Azzabi](https://forum.kirupa.com/u/Asma_Azzabi)\
**Replies:** 0\
**Last updated:** [January 29, 2013, 6:51pm UTC](https://forum.kirupa.com/t/action-script-3/330494 "2013-01-29T18:51:23Z")

</div>

plz I have this error(TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul. at projet\_flash\_fla::MainTimeline/Clip()) I don't understand why !!!! \[frowning\] …

---

## [Time-delay in memory game](https://forum.kirupa.com/t/time-delay-in-memory-game/330491)

<div class="topic-metadata">

**Author:** [@m\_van\_gijzen](https://forum.kirupa.com/u/m_van_gijzen)\
**Replies:** 0\
**Last updated:** [January 29, 2013, 9:55am UTC](https://forum.kirupa.com/t/time-delay-in-memory-game/330491 "2013-01-29T09:55:20Z")

</div>

Hi, I'm building a memory game and am trying to build in a delay, a pause before a matching pair of cards is removed. I have tried almost every option given in any other post on this site but I can't figure it out. I tri…

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

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