# programming

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

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

**Page:** 112

---

## [Argument error #2126](https://forum.kirupa.com/t/argument-error-2126/331646)

<div class="topic-metadata">

**Author:** [@quest20](https://forum.kirupa.com/u/quest20)\
**Replies:** 0\
**Last updated:** [September 16, 2013, 3:21pm UTC](https://forum.kirupa.com/t/argument-error-2126/331646 "2013-09-16T15:21:37Z")

</div>

Hello Guys, I would appreciate some advice. I am trying to connect to my \[FONT=Verdana\] \[COLOR=#0000ff\]webcam\[/COLOR\] \[/FONT\] but I keep receiving this error message argument error#2126 I have been tweaking aroun…

---

## [Tilebased collision detection](https://forum.kirupa.com/t/tilebased-collision-detection/331645)

<div class="topic-metadata">

**Author:** [@Katira](https://forum.kirupa.com/u/Katira)\
**Replies:** 0\
**Last updated:** [September 16, 2013, 11:47am UTC](https://forum.kirupa.com/t/tilebased-collision-detection/331645 "2013-09-16T11:47:59Z")

</div>

Hey guys! I'm trying to create a tilebased RPG game where i use a 2D array to lay out the tiles and set the right frame. var tileSize:int = 40; var mapHeight:int = 5; var mapWidth:int = 5; var myMap:Array = \[ \[1,1…

---

## [KeyboardEvent.KEY\_DOWN in AIR project does not trigger handler with preventDefault()](https://forum.kirupa.com/t/keyboardevent-key-down-in-air-project-does-not-trigger-handler-with-preventdefault/331641)

<div class="topic-metadata">

**Author:** [@Leo\_Perez](https://forum.kirupa.com/u/Leo_Perez)\
**Replies:** 0\
**Last updated:** [September 16, 2013, 12:33am UTC](https://forum.kirupa.com/t/keyboardevent-key-down-in-air-project-does-not-trigger-handler-with-preventdefault/331641 "2013-09-16T00:33:51Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I am developing an kiosk-like application (a game) which needs to be locked in full screen all the time. I am using as3/flash/AIR for it. Things started well at first, and for the most part all…

---

## [Detecting if the User is Idle or Inactive](https://forum.kirupa.com/t/detecting-if-the-user-is-idle-or-inactive/331640)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 15, 2013, 9:40pm UTC](https://forum.kirupa.com/t/detecting-if-the-user-is-idle-or-inactive/331640 "2013-09-15T21:40:38Z")

</div>

http://www.kirupa.com/html5/detecting\_if\_the\_user\_is\_idle\_or\_inactive.htm A simple script that allows your app to do something if your users aren't interacting with it after a period of time. Netflix does this...as I f…

---

## [Flame charts (developer tools)](https://forum.kirupa.com/t/flame-charts-developer-tools/331636)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [September 15, 2013, 5:44pm UTC](https://forum.kirupa.com/t/flame-charts-developer-tools/331636 "2013-09-15T17:44:05Z")

</div>

Oooo I just saw this - something I've always wanted but didn't know already existed! Visualising JavaScript Processing Over Time With DevTools Flame Charts http://addyosmani.com/blog/devtools-flame-charts/ Basically …

---

## [Advertisement placement and responsive webdesign](https://forum.kirupa.com/t/advertisement-placement-and-responsive-webdesign/331632)

<div class="topic-metadata">

**Author:** [@quark2013](https://forum.kirupa.com/u/quark2013)\
**Replies:** 0\
**Last updated:** [September 14, 2013, 9:06am UTC](https://forum.kirupa.com/t/advertisement-placement-and-responsive-webdesign/331632 "2013-09-14T09:06:29Z")

</div>

How you locate and display advertisement on responsive web? \[LIST\] \[\*\]display ad only on desktop/laptop devices? \[\*\]have only one size of ad and replace it (swap) for different devices? \[\*\]have only one size of ad whic…

---

## [Capturing 2 mouse events at the same time](https://forum.kirupa.com/t/capturing-2-mouse-events-at-the-same-time/331630)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [September 14, 2013, 4:12am UTC](https://forum.kirupa.com/t/capturing-2-mouse-events-at-the-same-time/331630 "2013-09-14T04:12:34Z")

</div>

Hi, I'm trying to capture a mouse scroll when the mouse is held down. My code is basically: addEventListener(MouseEvent.MOUSE\_DOWN, mdown); function mdown(e:MouseEvent):void { stage.addEventListener(MouseEvent.M…

---

## [:before pseudo-element, you suck!](https://forum.kirupa.com/t/before-pseudo-element-you-suck/331629)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [September 13, 2013, 9:50pm UTC](https://forum.kirupa.com/t/before-pseudo-element-you-suck/331629 "2013-09-13T21:50:42Z")

</div>

I've just spent half of my day trying to figure out why a form element I was adding to a page (not originally created by me) was not being displayed. It was in the HTML, I could get metrics for the element to be highligh…

---

## [Is it possible to embed a whole HTML page in a pure AS3 based Adobe AIR app?](https://forum.kirupa.com/t/is-it-possible-to-embed-a-whole-html-page-in-a-pure-as3-based-adobe-air-app/331621)

<div class="topic-metadata">

**Author:** [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Replies:** 0\
**Last updated:** [September 11, 2013, 2:02pm UTC](https://forum.kirupa.com/t/is-it-possible-to-embed-a-whole-html-page-in-a-pure-as3-based-adobe-air-app/331621 "2013-09-11T14:02:30Z")

</div>

I am playing with AIR app to make some utilities for my own use. I want to know whether/how I can embed a whole HTML page (should be a URL, not a local html data) in this app. What is the most light-weight way? Thank…

---

## [PHP updates database, but changes not reflected on webpage](https://forum.kirupa.com/t/php-updates-database-but-changes-not-reflected-on-webpage/331620)

<div class="topic-metadata">

**Author:** [@r3h0ld3r](https://forum.kirupa.com/u/r3h0ld3r)\
**Replies:** 0\
**Last updated:** [September 11, 2013, 1:40pm UTC](https://forum.kirupa.com/t/php-updates-database-but-changes-not-reflected-on-webpage/331620 "2013-09-11T13:40:10Z")

</div>

Hey there. I've got a php code that updates a database with user input however it's supposed to update the webpage with the new database values. There are two items on the page that should update, however only one of the…

---

## [Where are the spaces between my images coming from?](https://forum.kirupa.com/t/where-are-the-spaces-between-my-images-coming-from/331619)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [September 11, 2013, 10:43am UTC](https://forum.kirupa.com/t/where-are-the-spaces-between-my-images-coming-from/331619 "2013-09-11T10:43:45Z")

</div>

I'm trying to transfer this PHP site: http://medtechsweden.com/ To a static Jekyll site: http://jekyll.medtechsweden.com/ But as you can see, some of the images are "shifted down" by a pixel or two; you can see this ef…

---

## [Pokemon Den of Ages (source code for sale)](https://forum.kirupa.com/t/pokemon-den-of-ages-source-code-for-sale/331617)

<div class="topic-metadata">

**Author:** [@Gameday](https://forum.kirupa.com/u/Gameday)\
**Replies:** 0\
**Last updated:** [September 11, 2013, 3:56am UTC](https://forum.kirupa.com/t/pokemon-den-of-ages-source-code-for-sale/331617 "2013-09-11T03:56:17Z")

</div>

Pokemon: Den of Ages - Are you up to the challenge? Are you up to the Challenge? Come play as a Pokemon Trainer in the vast region of Naiyo. You may capture, train, and breed Pokemon in real time with up to 1000+ oth…

---

## [Get Momentum of a Tween](https://forum.kirupa.com/t/get-momentum-of-a-tween/331616)

<div class="topic-metadata">

**Author:** [@kiwirob](https://forum.kirupa.com/u/kiwirob)\
**Replies:** 0\
**Last updated:** [September 11, 2013, 3:39am UTC](https://forum.kirupa.com/t/get-momentum-of-a-tween/331616 "2013-09-11T03:39:32Z")

</div>

Hi there I'm wanting to create a variable that changes with the speed of a tween. The faster the tween the higher the variable, the slower the tween the lower the variable. for example: The below tween has an easeInO…

---

## [PHP - Path directory problem with Zend Framework](https://forum.kirupa.com/t/php-path-directory-problem-with-zend-framework/331612)

<div class="topic-metadata">

**Author:** [@Gemixin](https://forum.kirupa.com/u/Gemixin)\
**Replies:** 0\
**Last updated:** [September 10, 2013, 12:40pm UTC](https://forum.kirupa.com/t/php-path-directory-problem-with-zend-framework/331612 "2013-09-10T12:40:40Z")

</div>

Hi there I am following the TestDrive tutorial for creating a Flex mobile app that connects to PHP/MySQL using Flash Builder 4.7 I have it all working perfectly locally but now I am that this section, where I need to g…

---

## [How to avoid auto-docking in Windows 7 for my Adobe AIR app?](https://forum.kirupa.com/t/how-to-avoid-auto-docking-in-windows-7-for-my-adobe-air-app/331610)

<div class="topic-metadata">

**Author:** [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Replies:** 0\
**Last updated:** [September 10, 2013, 1:05am UTC](https://forum.kirupa.com/t/how-to-avoid-auto-docking-in-windows-7-for-my-adobe-air-app/331610 "2013-09-10T01:05:39Z")

</div>

just created an Adobe AIR app but I found that it automatically docks to the four edges in Win 7. I don't want this feature in my AIR so I can't just disable it in my system. Is there any settings I can adjust to disable…

---

## [File Reference Help...Just need some direction](https://forum.kirupa.com/t/file-reference-help-just-need-some-direction/331609)

<div class="topic-metadata">

**Author:** [@JmacUSAF](https://forum.kirupa.com/u/JmacUSAF)\
**Replies:** 0\
**Last updated:** [September 9, 2013, 7:22pm UTC](https://forum.kirupa.com/t/file-reference-help-just-need-some-direction/331609 "2013-09-09T19:22:50Z")

</div>

Hi Everyone, I am building an AIR app for the desktop and possibly IOS devices. I would like for a user to import teacher class lists into the program, and be able to manipulate it and save the settings. I would l…

---

## [How to choose air force flight cap rank position\\r\\n as well as other Clothing Fiscally](https://forum.kirupa.com/t/how-to-choose-air-force-flight-cap-rank-position-r-n-as-well-as-other-clothing-fiscally/331605)

<div class="topic-metadata">

**Author:** [@chasidypaz695](https://forum.kirupa.com/u/chasidypaz695)\
**Replies:** 0\
**Last updated:** [September 9, 2013, 5:57am UTC](https://forum.kirupa.com/t/how-to-choose-air-force-flight-cap-rank-position-r-n-as-well-as-other-clothing-fiscally/331605 "2013-09-09T05:57:47Z")

</div>

associated with , job avid gamers funds for on the net to . A \[dolce and gabbana jeans men sun glasses think oakley sunglasses below wholesale hats puma caps Three-d eye protection batbad guy matte grey australia edition…

---

## [When is method overloading "chosen"?](https://forum.kirupa.com/t/when-is-method-overloading-chosen/331604)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [September 8, 2013, 4:04pm UTC](https://forum.kirupa.com/t/when-is-method-overloading-chosen/331604 "2013-09-08T16:04:49Z")

</div>

In languages that contain method overloading (such as Java), when does it decide "which" function to use? At compile-time, at that little funny "compile before running" step that AS3 and Java do, or at runtime?

---

## [Datagrid Comp just looks off](https://forum.kirupa.com/t/datagrid-comp-just-looks-off/331603)

<div class="topic-metadata">

**Author:** [@squadjot](https://forum.kirupa.com/u/squadjot)\
**Replies:** 0\
**Last updated:** [September 8, 2013, 2:18am UTC](https://forum.kirupa.com/t/datagrid-comp-just-looks-off/331603 "2013-09-08T02:18:32Z")

</div>

Datagrid component.. Is it possible to somehow edit it's sourcecode? Reason, it's not pixel perfect!!.. and what's up with that??. The lines between columns are sometimes misaligned.. like half a pixel is mising somewh…

---

## [How To tampa bay buccaneers\\r\\n Find The Best Get Well Gift](https://forum.kirupa.com/t/how-to-tampa-bay-buccaneers-r-n-find-the-best-get-well-gift/331602)

<div class="topic-metadata">

**Author:** [@glindakadri482](https://forum.kirupa.com/u/glindakadri482)\
**Replies:** 0\
**Last updated:** [September 8, 2013, 12:04am UTC](https://forum.kirupa.com/t/how-to-tampa-bay-buccaneers-r-n-find-the-best-get-well-gift/331602 "2013-09-08T00:04:46Z")

</div>

by using workforce workforce as a possible such as the . The together with the will bring you reliable the cost of upon prefers excellent , plus you'd like \[louis vuitton belts for men cheaplouis vuitton clutch bag louis…

---

## [Help with small change to javascript?](https://forum.kirupa.com/t/help-with-small-change-to-javascript/331601)

<div class="topic-metadata">

**Author:** [@eabigelow](https://forum.kirupa.com/u/eabigelow)\
**Replies:** 0\
**Last updated:** [September 7, 2013, 6:53pm UTC](https://forum.kirupa.com/t/help-with-small-change-to-javascript/331601 "2013-09-07T18:53:30Z")

</div>

Hi-- I am using the following code to trigger an animation to begin again (start over) by clicking on a button. Instead, I would like to trigger the same action when the page loads so no button is involved. Is there …

---

## [How to create a mouse click and drag for multiple movieclips which ar image sequences](https://forum.kirupa.com/t/how-to-create-a-mouse-click-and-drag-for-multiple-movieclips-which-ar-image-sequences/331599)

<div class="topic-metadata">

**Author:** [@kittu](https://forum.kirupa.com/u/kittu)\
**Replies:** 0\
**Last updated:** [September 7, 2013, 2:21pm UTC](https://forum.kirupa.com/t/how-to-create-a-mouse-click-and-drag-for-multiple-movieclips-which-ar-image-sequences/331599 "2013-09-07T14:21:59Z")

</div>

Hi All, I have myself in a situation where everything was perfect with mouse click and drag, keyboard events and zoom events.The project is: A movieclip with images sequence: For Original background. And other moviecli…

---

## [Embed Google Map in CS6](https://forum.kirupa.com/t/embed-google-map-in-cs6/331597)

<div class="topic-metadata">

**Author:** [@anson](https://forum.kirupa.com/u/anson)\
**Replies:** 0\
**Last updated:** [September 6, 2013, 7:22pm UTC](https://forum.kirupa.com/t/embed-google-map-in-cs6/331597 "2013-09-06T19:22:14Z")

</div>

Hi all, I'm trying to figure out how to embed a google map into a flash file. I've seen people using Google API, but it doesn't come out nicely as there will be some security warnings and other loading issues. I though…

---

## [Dynamically loaded jpgs, not able to resize them dynamically, it resizes to odd sizes](https://forum.kirupa.com/t/dynamically-loaded-jpgs-not-able-to-resize-them-dynamically-it-resizes-to-odd-sizes/331596)

<div class="topic-metadata">

**Author:** [@plainman007](https://forum.kirupa.com/u/plainman007)\
**Replies:** 0\
**Last updated:** [September 6, 2013, 3:49pm UTC](https://forum.kirupa.com/t/dynamically-loaded-jpgs-not-able-to-resize-them-dynamically-it-resizes-to-odd-sizes/331596 "2013-09-06T15:49:59Z")

</div>

Hi, i am using the movieClipLoader class (AS2, Flash 8 Pro) and loading some images into a movieclip called PicHolder in a flash webpage. I want the images to be not more than 500x300 so if the image is more than 500 p…

---

## [Cheap Kitchens For Sale Scotland](https://forum.kirupa.com/t/cheap-kitchens-for-sale-scotland/331594)

<div class="topic-metadata">

**Author:** [@ceblongkebo](https://forum.kirupa.com/u/ceblongkebo)\
**Replies:** 0\
**Last updated:** [September 6, 2013, 1:05pm UTC](https://forum.kirupa.com/t/cheap-kitchens-for-sale-scotland/331594 "2013-09-06T13:05:49Z")

</div>

Cheap Kitchens For Sale Scotland. Try looking at www.kitchendesign1.co.uk. They have some amazing designs and prices. Cheap Kitchens For Sale Scotland. \[URL="http://www.cheapcheapkitchens.co.uk"\] Cheap Kitchens For Sale …

---

## [Advanced SVG positioning and scaling?](https://forum.kirupa.com/t/advanced-svg-positioning-and-scaling/331590)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [September 5, 2013, 8:59pm UTC](https://forum.kirupa.com/t/advanced-svg-positioning-and-scaling/331590 "2013-09-05T20:59:04Z")

</div>

Basically what I'm looking to do is something like 9-slice scaling, where, in a dynamically sized SVG element (say @100% width) elements can be drawn, without distortion relative to the left and right edges of the screen…

---

## [Comet Trail Particle Effect](https://forum.kirupa.com/t/comet-trail-particle-effect/331589)

<div class="topic-metadata">

**Author:** [@KJoe](https://forum.kirupa.com/u/KJoe)\
**Replies:** 0\
**Last updated:** [September 5, 2013, 7:03pm UTC](https://forum.kirupa.com/t/comet-trail-particle-effect/331589 "2013-09-05T19:03:22Z")

</div>

I would like to create a shooting star trail. This would be some form of particle effect and I was wondering if anyone would have a code or source file I could use as a reference. Ideally I want something I can place in …

---

## [Multiple levels](https://forum.kirupa.com/t/multiple-levels/331588)

<div class="topic-metadata">

**Author:** [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Replies:** 0\
**Last updated:** [September 5, 2013, 4:18pm UTC](https://forum.kirupa.com/t/multiple-levels/331588 "2013-09-05T16:18:33Z")

</div>

I was reading a tutorial about multiple levels, and the below really interested me on how i should go about this. \[COLOR=#4B5C77\]\[FONT=Lucida Grande\]It may seem natural to make one class per level, with each class exte…

---

## [How do I get the target in javascript?](https://forum.kirupa.com/t/how-do-i-get-the-target-in-javascript/331587)

<div class="topic-metadata">

**Author:** [@lnsiu](https://forum.kirupa.com/u/lnsiu)\
**Replies:** 0\
**Last updated:** [September 5, 2013, 9:22am UTC](https://forum.kirupa.com/t/how-do-i-get-the-target-in-javascript/331587 "2013-09-05T09:22:44Z")

</div>

I'm trying to get the target in a mouseevent. I seem not able to use addEventListeners? all I get is htmlacanvasobject and object Object. This is my code so far, now where is my buttontarget? for(var i=0; i\< b…

---

## [Need help creating FLA out of SWF](https://forum.kirupa.com/t/need-help-creating-fla-out-of-swf/331584)

<div class="topic-metadata">

**Author:** [@JPAdamsjr](https://forum.kirupa.com/u/JPAdamsjr)\
**Replies:** 0\
**Last updated:** [September 4, 2013, 10:48pm UTC](https://forum.kirupa.com/t/need-help-creating-fla-out-of-swf/331584 "2013-09-04T22:48:34Z")

</div>

\[COLOR=#323333\]\[FONT=Helvetica Neue\]1) I no longer have the .FLA\[/FONT\]\[/COLOR\] \[COLOR=#323333\]\[FONT=Helvetica Neue\]2) I plan to convert my .SWF to HTML 5 (eventually)\[/FONT\]\[/COLOR\] \[COLOR=#323333\]\[FONT=Helvetica Neue\]3…

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

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