# programming

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

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

**Page:** 114

---

## [addChild and globaltoLocal](https://forum.kirupa.com/t/addchild-and-globaltolocal/331525)

<div class="topic-metadata">

**Author:** [@BindleStick](https://forum.kirupa.com/u/BindleStick)\
**Replies:** 0\
**Last updated:** [August 19, 2013, 11:20am UTC](https://forum.kirupa.com/t/addchild-and-globaltolocal/331525 "2013-08-19T11:20:43Z")

</div>

\[COLOR=#333333\]\[FONT=adobe-clean\]I have an enemy that adds an attack movie clip. More specifically, this attack movie (We'll call it masterAttack) clip is a blank movie clip that acts like a super class, that will hold o…

---

## [CSS Wrapper problem on mobile devices](https://forum.kirupa.com/t/css-wrapper-problem-on-mobile-devices/331524)

<div class="topic-metadata">

**Author:** [@luckymagpies](https://forum.kirupa.com/u/luckymagpies)\
**Replies:** 0\
**Last updated:** [August 19, 2013, 9:30am UTC](https://forum.kirupa.com/t/css-wrapper-problem-on-mobile-devices/331524 "2013-08-19T09:30:41Z")

</div>

I have recently created this website http://www.lucky-mag...vices/index.php and when tested on a mobile, the main content wrapper seems to be the wrong width so the text & images appear to overlap. Does anyone know of…

---

## [How do I reduce lives when insects go off?](https://forum.kirupa.com/t/how-do-i-reduce-lives-when-insects-go-off/331522)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [August 18, 2013, 5:00pm UTC](https://forum.kirupa.com/t/how-do-i-reduce-lives-when-insects-go-off/331522 "2013-08-18T17:00:33Z")

</div>

\[FONT=Verdana\]I am trying to create a game where insects coming from the Y direction are racing to go down the screen. The point of this game is that the user has to click on the insects for them to die, if the insects g…

---

## [Newbie: How to access class instance from childSWF](https://forum.kirupa.com/t/newbie-how-to-access-class-instance-from-childswf/331521)

<div class="topic-metadata">

**Author:** [@squadjot](https://forum.kirupa.com/u/squadjot)\
**Replies:** 0\
**Last updated:** [August 18, 2013, 3:46pm UTC](https://forum.kirupa.com/t/newbie-how-to-access-class-instance-from-childswf/331521 "2013-08-18T15:46:22Z")

</div>

Hi I got a child swf that needs to access a public static function in my "main" class, in parent swf. When i compile the child SWF with code myApp.myFunction() it says it does not know what myApp is (logically) I guess …

---

## [Quadrants and items that can't touch or overlap](https://forum.kirupa.com/t/quadrants-and-items-that-cant-touch-or-overlap/331519)

<div class="topic-metadata">

**Author:** [@Iammontoya](https://forum.kirupa.com/u/Iammontoya)\
**Replies:** 0\
**Last updated:** [August 16, 2013, 6:19pm UTC](https://forum.kirupa.com/t/quadrants-and-items-that-cant-touch-or-overlap/331519 "2013-08-16T18:19:51Z")

</div>

Hi there, Could use some help... I have 4 quadrants, each can be a separate MC. Just think a square divided into 4, smaller quares. q1 q2 q3 q4 I have…

---

## [Resetting variables](https://forum.kirupa.com/t/resetting-variables/331516)

<div class="topic-metadata">

**Author:** [@Blablob](https://forum.kirupa.com/u/Blablob)\
**Replies:** 0\
**Last updated:** [August 16, 2013, 12:41pm UTC](https://forum.kirupa.com/t/resetting-variables/331516 "2013-08-16T12:41:00Z")

</div>

I've had this problem for a while now and I really don't know how to fix it. I have a class called PlayerWeapon that gets added to the game every time the player hits the Play button. This is the function that I have rig…

---

## [AS3: How to create a fighting game](https://forum.kirupa.com/t/as3-how-to-create-a-fighting-game/331514)

<div class="topic-metadata">

**Author:** [@s4f300](https://forum.kirupa.com/u/s4f300)\
**Replies:** 0\
**Last updated:** [August 15, 2013, 10:07pm UTC](https://forum.kirupa.com/t/as3-how-to-create-a-fighting-game/331514 "2013-08-15T22:07:02Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I'm trying to create a beat em up game and right now i got my character walking, jumping and dashing. I have 6 attack animation so far 3 for punches 3 for kicks. If you hit the a key it will pu…

---

## [Looking for an HTML 5 chat room for my website](https://forum.kirupa.com/t/looking-for-an-html-5-chat-room-for-my-website/331511)

<div class="topic-metadata">

**Author:** [@Lalainealb](https://forum.kirupa.com/u/Lalainealb)\
**Replies:** 0\
**Last updated:** [August 15, 2013, 9:23am UTC](https://forum.kirupa.com/t/looking-for-an-html-5-chat-room-for-my-website/331511 "2013-08-15T09:23:37Z")

</div>

I am looking for an HTML 5 chat room for my website that is mobile friendly. I could find only RumbleTalk and chatwind but both have no 3rd party users integration, any suggestions?

---

## [TCL stdin](https://forum.kirupa.com/t/tcl-stdin/331509)

<div class="topic-metadata">

**Author:** [@bdan](https://forum.kirupa.com/u/bdan)\
**Replies:** 0\
**Last updated:** [August 14, 2013, 4:09pm UTC](https://forum.kirupa.com/t/tcl-stdin/331509 "2013-08-14T16:09:30Z")

</div>

This is my first post. My question is when using the following puts "What show command would you like to execute? Type 'stop' to close dialog." set cmd \[gets stdin\] proc makeLC {str} { puts "begin" puts $str …

---

## [Object not moving even when there's no errors](https://forum.kirupa.com/t/object-not-moving-even-when-theres-no-errors/331507)

<div class="topic-metadata">

**Author:** [@Mark1989](https://forum.kirupa.com/u/Mark1989)\
**Replies:** 0\
**Last updated:** [August 14, 2013, 2:45pm UTC](https://forum.kirupa.com/t/object-not-moving-even-when-theres-no-errors/331507 "2013-08-14T14:45:41Z")

</div>

Hi guys, I've been working on my class for a while now and everything is running without errors however my PlayerPic doesn't actually move when the arrow keys are pressed which it's meant to. Can some please help me. p…

---

## [Problem with Nested Movieclip](https://forum.kirupa.com/t/problem-with-nested-movieclip/331505)

<div class="topic-metadata">

**Author:** [@kittu](https://forum.kirupa.com/u/kittu)\
**Replies:** 0\
**Last updated:** [August 14, 2013, 11:47am UTC](https://forum.kirupa.com/t/problem-with-nested-movieclip/331505 "2013-08-14T11:47:10Z")

</div>

Hi All, I have movieclip, inside a movieclip. And Inside that second movieclip I have another mc with buttonmODE enabled. The target is a mvoieclip and movieclip inside. If I click in the button then the second moviecl…

---

## [How to enable clicking through a movie clip?](https://forum.kirupa.com/t/how-to-enable-clicking-through-a-movie-clip/331504)

<div class="topic-metadata">

**Author:** [@daHsu](https://forum.kirupa.com/u/daHsu)\
**Replies:** 0\
**Last updated:** [August 14, 2013, 3:13am UTC](https://forum.kirupa.com/t/how-to-enable-clicking-through-a-movie-clip/331504 "2013-08-14T03:13:31Z")

</div>

So I'm making this game where an enemy is standing inside a tile. The enemy has MOUSE\_OVER/MOUSE\_OUT event listeners so that when you roll over it, it displays the enemy's name, hp bar, and level. The tile underneath it …

---

## [To download wamp, do I need to download c++ aswell](https://forum.kirupa.com/t/to-download-wamp-do-i-need-to-download-c-aswell/331503)

<div class="topic-metadata">

**Author:** [@silverhorse](https://forum.kirupa.com/u/silverhorse)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 8:27pm UTC](https://forum.kirupa.com/t/to-download-wamp-do-i-need-to-download-c-aswell/331503 "2013-08-13T20:27:38Z")

</div>

In wamp.com it says must download c++ first. but in sourceforge, you just download wamp. but I did that, but then the tray wont open says looking online for solution to problem, but it doesnt. nothing happens. am I doing…

---

## [How to make on.Press from \_level2 for a button thats on \_level3 (AS2 - Flash 8 Pro)](https://forum.kirupa.com/t/how-to-make-on-press-from--level2-for-a-button-thats-on--level3-as2-flash-8-pro/331501)

<div class="topic-metadata">

**Author:** [@plainman007](https://forum.kirupa.com/u/plainman007)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 1:02pm UTC](https://forum.kirupa.com/t/how-to-make-on-press-from--level2-for-a-button-thats-on--level3-as2-flash-8-pro/331501 "2013-08-13T13:02:27Z")

</div>

Hi, \*\*(AS2 - Flash 8 Pro) \*\* My script on \_level2 loads a swf webpage into \_level3. I also have a script on \_level2 main timeline as follows... \*\*\_level3.returnBtn.onPress=function(){ loadMovieNum("NoFile",3); }; \*\* I…

---

## [printJob printed extra 1 copy](https://forum.kirupa.com/t/printjob-printed-extra-1-copy/331500)

<div class="topic-metadata">

**Author:** [@Fadhli](https://forum.kirupa.com/u/Fadhli)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 9:00am UTC](https://forum.kirupa.com/t/printjob-printed-extra-1-copy/331500 "2013-08-13T09:00:45Z")

</div>

Hello guys, I'm working on mobile apps development as my intern project. I've referred to many threads in here for printJob coding and so far it went well. However, the printout seems to print 2 copy of it instead of 1. …

---

## [Correct use of eval in combination with array](https://forum.kirupa.com/t/correct-use-of-eval-in-combination-with-array/331499)

<div class="topic-metadata">

**Author:** [@ToubMor](https://forum.kirupa.com/u/ToubMor)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 8:26am UTC](https://forum.kirupa.com/t/correct-use-of-eval-in-combination-with-array/331499 "2013-08-13T08:26:24Z")

</div>

Hi there, its been a while since i used flash. Now and than i do small fun kind of things, ut im no hardcore coder. Im busy with a sort generatool which makes a code for a 3d application. I made a help section which i …

---

## [How to close Soft Keyboard?](https://forum.kirupa.com/t/how-to-close-soft-keyboard/331497)

<div class="topic-metadata">

**Author:** [@kiwirob](https://forum.kirupa.com/u/kiwirob)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 1:45am UTC](https://forum.kirupa.com/t/how-to-close-soft-keyboard/331497 "2013-08-13T01:45:38Z")

</div>

Hi I'm developing an app on an Android phone phone which requires the soft keyboard. This works fine however closing the keyboard on pressing the enter key is proving to be problematic. I'm using: stage.focus…

---

## [Windows 8 Metro app, How to set a click event for different images that are loaded?](https://forum.kirupa.com/t/windows-8-metro-app-how-to-set-a-click-event-for-different-images-that-are-loaded/331496)

<div class="topic-metadata">

**Author:** [@Matt\_Brooking](https://forum.kirupa.com/u/Matt_Brooking)\
**Replies:** 0\
**Last updated:** [August 12, 2013, 6:49pm UTC](https://forum.kirupa.com/t/windows-8-metro-app-how-to-set-a-click-event-for-different-images-that-are-loaded/331496 "2013-08-12T18:49:47Z")

</div>

\[COLOR=#333333\]\[FONT=Arial\]Im developing an windows 8 metro app in c# and xaml I've created a drag and drop function in my app which i've used a code sample and works ok. The images need to have a click event, so ive u…

---

## [One TextFormat for each font size?](https://forum.kirupa.com/t/one-textformat-for-each-font-size/331495)

<div class="topic-metadata">

**Author:** [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Replies:** 0\
**Last updated:** [August 12, 2013, 2:18pm UTC](https://forum.kirupa.com/t/one-textformat-for-each-font-size/331495 "2013-08-12T14:18:05Z")

</div>

I want to use the same TextFormat on lots of different textFields, the only difference between these fields is the font size. Is there some way to keep the same TextFormat but just change the size? \*(I want to avoid crea…

---

## [Colors in a text](https://forum.kirupa.com/t/colors-in-a-text/331493)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [August 12, 2013, 7:11am UTC](https://forum.kirupa.com/t/colors-in-a-text/331493 "2013-08-12T07:11:07Z")

</div>

Hi, If I want to have more than one colors in a text, can it be done ? For example, I have a text, "someone", I want "so" in red color, "me" in blue color and "one" in green color, without breaking apart and change color…

---

## [How to minimise the CSS](https://forum.kirupa.com/t/how-to-minimise-the-css/331491)

<div class="topic-metadata">

**Author:** [@rosendobarfield](https://forum.kirupa.com/u/rosendobarfield)\
**Replies:** 0\
**Last updated:** [August 12, 2013, 4:21am UTC](https://forum.kirupa.com/t/how-to-minimise-the-css/331491 "2013-08-12T04:21:32Z")

</div>

Hello to all, This is my first post , actually recently i faced a problem of page speed. Google webmaster tools says ( firebug) that need to minimize the CSS. Have you any idea thru which we can minimize it? Then it is G…

---

## [Strange arithmetic is AS 3.0?](https://forum.kirupa.com/t/strange-arithmetic-is-as-3-0/331490)

<div class="topic-metadata">

**Author:** [@juniorspecial](https://forum.kirupa.com/u/juniorspecial)\
**Replies:** 0\
**Last updated:** [August 11, 2013, 4:31pm UTC](https://forum.kirupa.com/t/strange-arithmetic-is-as-3-0/331490 "2013-08-11T16:31:51Z")

</div>

I'm confused. In a function I'm running, there are these two steps: fade3.scaleX -=0.01; trace(fade3.scaleX); So, I'm puzzled that the trace reads out like this, with nice even numbers, …

---

## [Rounded variable](https://forum.kirupa.com/t/rounded-variable/331487)

<div class="topic-metadata">

**Author:** [@theicecube92](https://forum.kirupa.com/u/theicecube92)\
**Replies:** 0\
**Last updated:** [August 11, 2013, 8:10am UTC](https://forum.kirupa.com/t/rounded-variable/331487 "2013-08-11T08:10:01Z")

</div>

Hi guys, I have a question regarding my project. So, I have var distance:Number = 0; I need this variable to show only rounded numbers. The 'distance' variable is constantly increasing with 0.05. So if 'distance' is curr…

---

## [As3 -\> php and vice versa](https://forum.kirupa.com/t/as3-php-and-vice-versa/331486)

<div class="topic-metadata">

**Author:** [@Morsus](https://forum.kirupa.com/u/Morsus)\
**Replies:** 0\
**Last updated:** [August 11, 2013, 2:51am UTC](https://forum.kirupa.com/t/as3-php-and-vice-versa/331486 "2013-08-11T02:51:14Z")

</div>

Okay so i am trying to figure this out few days already and its killing me..I know its possible it was just a lot easier in AS2. Can anyone help me make this only in as3? (or just pass the variable to php) For php to A…

---

## [Go to a specific scene after a specific time](https://forum.kirupa.com/t/go-to-a-specific-scene-after-a-specific-time/331485)

<div class="topic-metadata">

**Author:** [@wrangler2004](https://forum.kirupa.com/u/wrangler2004)\
**Replies:** 0\
**Last updated:** [August 10, 2013, 7:40pm UTC](https://forum.kirupa.com/t/go-to-a-specific-scene-after-a-specific-time/331485 "2013-08-10T19:40:07Z")

</div>

Hi everyone, Can anyone help me with a flash AS3 scenes, by advancing to a specific scene after a specific time?

---

## [PHP contact form - upload not working!](https://forum.kirupa.com/t/php-contact-form-upload-not-working/331484)

<div class="topic-metadata">

**Author:** [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Replies:** 0\
**Last updated:** [August 10, 2013, 7:29pm UTC](https://forum.kirupa.com/t/php-contact-form-upload-not-working/331484 "2013-08-10T19:29:58Z")

</div>

Hi guys, I have a PHP contact form where people can apply for a vacancy online. I think I've pretty much got it working but a couple of things don't work as I'd like... If you don't fill in any of the compulsory f…

---

## [Remove Bitmap](https://forum.kirupa.com/t/remove-bitmap/331483)

<div class="topic-metadata">

**Author:** [@kiwirob](https://forum.kirupa.com/u/kiwirob)\
**Replies:** 0\
**Last updated:** [August 10, 2013, 7:55am UTC](https://forum.kirupa.com/t/remove-bitmap/331483 "2013-08-10T07:55:23Z")

</div>

Hi there I'm new to AS3 so bare with me if my code is rough! I've created the following code that takes a screen shot of my webcam and places it on the stage: function ScreenShot():void { addChild(snapShot(Lo…

---

## [Can I make a SWF bootable](https://forum.kirupa.com/t/can-i-make-a-swf-bootable/331482)

<div class="topic-metadata">

**Author:** [@Zimatrix](https://forum.kirupa.com/u/Zimatrix)\
**Replies:** 0\
**Last updated:** [August 9, 2013, 6:20pm UTC](https://forum.kirupa.com/t/can-i-make-a-swf-bootable/331482 "2013-08-09T18:20:11Z")

</div>

Hey guys, I made a post here a while ago asking for help with a uni project, thanks to that post I managed to get my flash animation finished but now I need help with something else. I was wondering if it would be poss…

---

## [Events not removing](https://forum.kirupa.com/t/events-not-removing/331481)

<div class="topic-metadata">

**Author:** [@destinier](https://forum.kirupa.com/u/destinier)\
**Replies:** 0\
**Last updated:** [August 9, 2013, 4:08pm UTC](https://forum.kirupa.com/t/events-not-removing/331481 "2013-08-09T16:08:57Z")

</div>

Hi, I have added an event "changing" to a List component and when I am trying to remove the same, its not removing. Following is the code. \<?xml version="1.0" encoding="utf-8"?\> \<s:Application xmlns:fx="http://ns.…

---

## [Giving a Description to a Parameter](https://forum.kirupa.com/t/giving-a-description-to-a-parameter/331479)

<div class="topic-metadata">

**Author:** [@Blablob](https://forum.kirupa.com/u/Blablob)\
**Replies:** 0\
**Last updated:** [August 9, 2013, 2:59pm UTC](https://forum.kirupa.com/t/giving-a-description-to-a-parameter/331479 "2013-08-09T14:59:02Z")

</div>

This isn't a problem so much as it is an interest. In FlashDevelop (not entirely sure about the Flash IDE), when you write a public function like \*drawRect \*for a sprite, your parameters are the x, y, width and height. B…

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

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