# programming

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

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

**Page:** 82

---

## [Replacing one movie clip on stage with another on a button press.](https://forum.kirupa.com/t/replacing-one-movie-clip-on-stage-with-another-on-a-button-press/498470)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 6\
**Last updated:** [January 28, 2015, 10:36am UTC](https://forum.kirupa.com/t/replacing-one-movie-clip-on-stage-with-another-on-a-button-press/498470 "2015-01-28T10:36:57Z")

</div>

Hi, I wish to replace a movie clip with another from the library ( at the same place as the first object) at the press of a button. So I have 2 movie clips mc\_rect for a rectangle, mc\_Oval for an oval and a button bt…

---

## [Bringing objects of 3d array to front](https://forum.kirupa.com/t/bringing-objects-of-3d-array-to-front/491916)

<div class="topic-metadata">

**Author:** [@onurcan1977](https://forum.kirupa.com/u/onurcan1977)\
**Replies:** 5\
**Last updated:** [January 26, 2015, 7:40pm UTC](https://forum.kirupa.com/t/bringing-objects-of-3d-array-to-front/491916 "2015-01-26T19:40:32Z")

</div>

I'm trying to create 3d array which holds movieclips and textfields. When I test the movie, textfields aren't visible, they are behind movieclips (I guess so). I tried using setchildindex however it gave me error. Here's…

---

## [Data Grid or List ?](https://forum.kirupa.com/t/data-grid-or-list/494809)

<div class="topic-metadata">

**Author:** [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Replies:** 1\
**Last updated:** [January 26, 2015, 4:46am UTC](https://forum.kirupa.com/t/data-grid-or-list/494809 "2015-01-26T04:46:42Z")

</div>

Hi guys I have chosen to try the Data Grid component instead of just the list component, everything works out great. Customised the look & everything but no data shown \[frowning\] Can someone help me please. var mp3\_A…

---

## [can AIR for mobile deploy to device via wifi?](https://forum.kirupa.com/t/can-air-for-mobile-deploy-to-device-via-wifi/494800)

<div class="topic-metadata">

**Author:** [@tbo](https://forum.kirupa.com/u/tbo)\
**Replies:** 2\
**Last updated:** [January 26, 2015, 2:54am UTC](https://forum.kirupa.com/t/can-air-for-mobile-deploy-to-device-via-wifi/494800 "2015-01-26T02:54:50Z")

</div>

Im pretty sure the answer is no, but is there a way to deploy to ios or android via WIFI and skip the USB? Im talking about for everyday device testing, I have not used testflight yet, but I assume its not quick enough…

---

## [CSS Rules of Cascading](https://forum.kirupa.com/t/css-rules-of-cascading/493639)

<div class="topic-metadata">

**Author:** [@VaiFanatic](https://forum.kirupa.com/u/VaiFanatic)\
**Replies:** 1\
**Last updated:** [January 25, 2015, 7:52pm UTC](https://forum.kirupa.com/t/css-rules-of-cascading/493639 "2015-01-25T19:52:27Z")

</div>

As I continue to become more and more familiar with CSS, I find myself reading a lot about the Rules of Cascading and Specificity and order the Precedence. Once and for all, I'd like to get a straight answer on various…

---

## [TLF editManager.overwriteText is deleting special characters](https://forum.kirupa.com/t/tlf-editmanager-overwritetext-is-deleting-special-characters/488034)

<div class="topic-metadata">

**Author:** [@Guy\_Parker](https://forum.kirupa.com/u/Guy_Parker)\
**Replies:** 2\
**Last updated:** [January 24, 2015, 1:03am UTC](https://forum.kirupa.com/t/tlf-editmanager-overwritetext-is-deleting-special-characters/488034 "2015-01-24T01:03:57Z")

</div>

I've ran into a problem using the built in functions in editManager (flashx.textLayout.edit.IEditManager) where it is killing/removing/deleting special characters in a String when I use the function overwriteText() or in…

---

## [How do I make it stop raining?](https://forum.kirupa.com/t/how-do-i-make-it-stop-raining/487526)

<div class="topic-metadata">

**Author:** [@Sebzicide](https://forum.kirupa.com/u/Sebzicide)\
**Replies:** 6\
**Last updated:** [January 23, 2015, 5:17pm UTC](https://forum.kirupa.com/t/how-do-i-make-it-stop-raining/487526 "2015-01-23T17:17:32Z")

</div>

Hello, Im currently working on a movie project and i was wondering how to make it stop raining. Here is the script for the rain: for (i = 0; i \< 500; i++) { duplicateMovieClip("drop", "drop" + i, i); setProperty(…

---

## [Can't add scrollpane properly from class](https://forum.kirupa.com/t/cant-add-scrollpane-properly-from-class/487485)

<div class="topic-metadata">

**Author:** [@onurcan1977](https://forum.kirupa.com/u/onurcan1977)\
**Replies:** 2\
**Last updated:** [January 22, 2015, 11:03pm UTC](https://forum.kirupa.com/t/cant-add-scrollpane-properly-from-class/487485 "2015-01-22T23:03:36Z")

</div>

Hello, I created many movieclips and added them into my scrollpane source. The code is working fine when I test it with .fla file. However I'm new to classes and it's giving me error: RangeError: Error #2006: The supplie…

---

## [Loading a SET of audio files](https://forum.kirupa.com/t/loading-a-set-of-audio-files/477626)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 9\
**Last updated:** [January 22, 2015, 9:21am UTC](https://forum.kirupa.com/t/loading-a-set-of-audio-files/477626 "2015-01-22T09:21:58Z")

</div>

Hi all, I have been looking at some forums and the net in general to see if someone ever had a similar problem but this one is just a bit different. What I have is 2 different sets of sound files ( each set contain…

---

## [Confining mouse actions to MC on stage](https://forum.kirupa.com/t/confining-mouse-actions-to-mc-on-stage/484732)

<div class="topic-metadata">

**Author:** [@jsimpsonJSD](https://forum.kirupa.com/u/jsimpsonJSD)\
**Replies:** 2\
**Last updated:** [January 21, 2015, 8:28pm UTC](https://forum.kirupa.com/t/confining-mouse-actions-to-mc-on-stage/484732 "2015-01-21T20:28:33Z")

</div>

Hey gang - newbie with AS3 here. What I'm doing here is drawing a simple straight line on stage by clicking and dragging. This code works fine, but I only want this to happen within a specified area of the stage. How …

---

## [Swipe Gesture stops working when using removeChild](https://forum.kirupa.com/t/swipe-gesture-stops-working-when-using-removechild/478480)

<div class="topic-metadata">

**Author:** [@kiwirob](https://forum.kirupa.com/u/kiwirob)\
**Replies:** 3\
**Last updated:** [January 20, 2015, 11:56am UTC](https://forum.kirupa.com/t/swipe-gesture-stops-working-when-using-removechild/478480 "2015-01-20T11:56:56Z")

</div>

Hi there, I'm developing an Android app using Air which utilizes swipe gestures. I have an up/down swipe menu on a movieclip called "Parts\_Menu" that has a bunch of nested MovieClips added from the library: for (…

---

## [Bevel Cube 3D AS3](https://forum.kirupa.com/t/bevel-cube-3d-as3/479497)

<div class="topic-metadata">

**Author:** [@Hikkyu](https://forum.kirupa.com/u/Hikkyu)\
**Replies:** 0\
**Last updated:** [January 19, 2015, 12:45pm UTC](https://forum.kirupa.com/t/bevel-cube-3d-as3/479497 "2015-01-19T12:45:04Z")

</div>

I wish I create a beveled cube with clickable automatically rotating faces like this (http://www.observatoire-marketing-pme.com/lancer.html, click "enter" and then on "Marketing") I tried to create a cube with BitmapDa…

---

## [Flash AS3 get window size](https://forum.kirupa.com/t/flash-as3-get-window-size/476173)

<div class="topic-metadata">

**Author:** [@Thomas120](https://forum.kirupa.com/u/Thomas120)\
**Replies:** 3\
**Last updated:** [January 17, 2015, 7:42pm UTC](https://forum.kirupa.com/t/flash-as3-get-window-size/476173 "2015-01-17T19:42:22Z")

</div>

I want Flash to respond to the size of the browser window. What is wrong with this script? When I preview the swf The textfield 'showWidth' says '550' even when I resize the window. stage.addEventListener(Event.ENTER\_F…

---

## [Where is my Android Certificate?](https://forum.kirupa.com/t/where-is-my-android-certificate/473690)

<div class="topic-metadata">

**Author:** [@Thomas120](https://forum.kirupa.com/u/Thomas120)\
**Replies:** 4\
**Last updated:** [January 17, 2015, 1:52am UTC](https://forum.kirupa.com/t/where-is-my-android-certificate/473690 "2015-01-17T01:52:32Z")

</div>

Hi, I have made an app in Flash. Now I want to publish it as an Air for Android. I installed the Android SDK. But where is my certificate on my pc?

---

## [kirupa.com - Predicting Collisions, Page 6](https://forum.kirupa.com/t/kirupa-com-predicting-collisions-page-6/470427)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 14, 2015, 5:49am UTC](https://forum.kirupa.com/t/kirupa-com-predicting-collisions-page-6/470427 "2015-01-14T05:49:56Z")

</div>

In the previous page, I finished explaining what all of the ActionScript code does. In this page, I will summarize what was discussed in the past five pages. This is a companion discussion topic for the original entr…

---

## [Swapping Items in an Array | kirupa.com](https://forum.kirupa.com/t/swapping-items-in-an-array-kirupa-com/469403)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 13, 2015, 7:18am UTC](https://forum.kirupa.com/t/swapping-items-in-an-array-kirupa-com/469403 "2015-01-13T07:18:41Z")

</div>

by kirupa | 11 January 2015 Arrays in JavaScript are really powerful, really awesome, and really REALLY funny. If you don't feel that way, that's too bad. They are the primary data structure you have …

---

## [kirupa.com - Using Resources for External Content - Page 1](https://forum.kirupa.com/t/kirupa-com-using-resources-for-external-content-page-1/466450)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 11, 2015, 7:42am UTC](https://forum.kirupa.com/t/kirupa-com-using-resources-for-external-content-page-1/466450 "2015-01-11T07:42:39Z")

</div>

Resources are used when dealing with external content. When you have an application with images, icons, external text files, etc., you can refer to the external content by accessing the file's path d…

---

## [Traversing the DOM](https://forum.kirupa.com/t/traversing-the-dom/352073)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 5\
**Last updated:** [January 11, 2015, 4:16am UTC](https://forum.kirupa.com/t/traversing-the-dom/352073 "2015-01-11T04:16:41Z")

</div>

Easily navigate the mean streets of our DOM by learning how to use the helpful built-in properties and methods. This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/traversing\_the\_…

---

## [Display an Outline on Hover | Snippets | kirupa.com](https://forum.kirupa.com/t/display-an-outline-on-hover-snippets-kirupa-com/464138)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 9, 2015, 4:09am UTC](https://forum.kirupa.com/t/display-an-outline-on-hover-snippets-kirupa-com/464138 "2015-01-09T04:09:51Z")

</div>

by kirupa | 10 October 2012 It is very common to display an outline when you hover over something. This snippet gives you what you need to join the club. This is a companion discussion topic for the original e…

---

## [kirupa.com - Swift 3D Fills](https://forum.kirupa.com/t/kirupa-com-swift-3d-fills/462978)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 2\
**Last updated:** [January 8, 2015, 4:53am UTC](https://forum.kirupa.com/t/kirupa-com-swift-3d-fills/462978 "2015-01-08T04:53:28Z")

</div>

The best part of having a versatile 3D Vector editor like Swift 3D is the ability to manipulate objects in stunning textures. The ability to change lighti…

---

## [Ball to bounce of an object](https://forum.kirupa.com/t/ball-to-bounce-of-an-object/456227)

<div class="topic-metadata">

**Author:** [@johnnien2](https://forum.kirupa.com/u/johnnien2)\
**Replies:** 2\
**Last updated:** [January 6, 2015, 8:43pm UTC](https://forum.kirupa.com/t/ball-to-bounce-of-an-object/456227 "2015-01-06T20:43:36Z")

</div>

Hello! I need help with a ball colliding correctly with a square on stage. This is the file: https://app.box.com/s/ui4q15juyp9iqszmm95g It’s basically a ball bouncing of four walls and hitting 2 object incorrectly. Bec…

---

## [Check existing XML item](https://forum.kirupa.com/t/check-existing-xml-item/456022)

<div class="topic-metadata">

**Author:** [@neo0800](https://forum.kirupa.com/u/neo0800)\
**Replies:** 3\
**Last updated:** [January 5, 2015, 10:49pm UTC](https://forum.kirupa.com/t/check-existing-xml-item/456022 "2015-01-05T22:49:39Z")

</div>

Hello there! I'm trying to check the existence of an Item in a XML File here is my XML: myXML = (\<data\> \<cart\> \<id\>1\</id\> \<product\>Item 1\</product\> \</cart\> \<cart\> \<id\>2\</id\> \<product\>Item 1\</…

---

## [Email Form Help](https://forum.kirupa.com/t/email-form-help/455809)

<div class="topic-metadata">

**Author:** [@ddgoldberg](https://forum.kirupa.com/u/ddgoldberg)\
**Replies:** 5\
**Last updated:** [January 5, 2015, 1:11am UTC](https://forum.kirupa.com/t/email-form-help/455809 "2015-01-05T01:11:58Z")

</div>

In trying to use the email contact form on your site , I get the following error when the send button is pushed: Warning: Cannot modify header information - headers already sent by (output started at /home/telact5/pub…

---

## [kirupa.com - Dynamic Mouse Trail, Page 1](https://forum.kirupa.com/t/kirupa-com-dynamic-mouse-trail-page-1/455118)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [January 1, 2015, 8:44pm UTC](https://forum.kirupa.com/t/kirupa-com-dynamic-mouse-trail-page-1/455118 "2015-01-01T20:44:26Z")

</div>

by kirupa | 30 July 2009 A popular effect that you can add to your applications is a mouse trail. In case you are not familiar with them, mouse trails are nothing more than some …

---

## [A Look at Insertion Sort | kirupa.com](https://forum.kirupa.com/t/a-look-at-insertion-sort-kirupa-com/449395)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [December 26, 2014, 8:12am UTC](https://forum.kirupa.com/t/a-look-at-insertion-sort-kirupa-com/449395 "2014-12-26T08:12:07Z")

</div>

by kirupa | 14 December 2014 A fun sorting algorithm is insertion sort. Have you ever played cards and needed to sort the cards in your hand? This is a companion discussion topic for the original entry at…

---

## [video without youtube](https://forum.kirupa.com/t/video-without-youtube/445759)

<div class="topic-metadata">

**Author:** [@Xarzu](https://forum.kirupa.com/u/Xarzu)\
**Replies:** 1\
**Last updated:** [December 23, 2014, 8:44am UTC](https://forum.kirupa.com/t/video-without-youtube/445759 "2014-12-23T08:44:00Z")

</div>

I have a video clip that I want shown on my website. I downloaded it and now it is a file in the windows media player format. Let's say it is the video clip that is the death scene from "The Interview" and I am sure yout…

---

## [Question about audio from child loaded swf files](https://forum.kirupa.com/t/question-about-audio-from-child-loaded-swf-files/440418)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 7\
**Last updated:** [December 23, 2014, 4:49am UTC](https://forum.kirupa.com/t/question-about-audio-from-child-loaded-swf-files/440418 "2014-12-23T04:49:39Z")

</div>

Hello, I'm trying to figure something out and would really like some input on this. I have a swf (file1.swf) and that loads another swf (file2.swf). In file1.swf, I have a SoundMixer that controls the overall volume…

---

## [Completely removing swf file from memory](https://forum.kirupa.com/t/completely-removing-swf-file-from-memory/441391)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 2\
**Last updated:** [December 22, 2014, 6:15pm UTC](https://forum.kirupa.com/t/completely-removing-swf-file-from-memory/441391 "2014-12-22T18:15:37Z")

</div>

Hi All, I’m running into an annoying issue. I have a swf file that loads another swf file (i don’t know what that swf file is going to be, it comes from whatever URL i provide and I just load it). I notice in my Activ…

---

## [Removing objects and eventlisteners](https://forum.kirupa.com/t/removing-objects-and-eventlisteners/441076)

<div class="topic-metadata">

**Author:** [@ZombieDude](https://forum.kirupa.com/u/ZombieDude)\
**Replies:** 2\
**Last updated:** [December 20, 2014, 9:21am UTC](https://forum.kirupa.com/t/removing-objects-and-eventlisteners/441076 "2014-12-20T09:21:26Z")

</div>

Ok, So I have created my drag and drop game but I want to have a reset button. I have pasted my code below for you to see, but I have a couple of problems. I cannot remove the event listeners when the game is over. I can…

---

## [one page responsive template - lightbox not working](https://forum.kirupa.com/t/one-page-responsive-template-lightbox-not-working/440836)

<div class="topic-metadata">

**Author:** [@wdesign123](https://forum.kirupa.com/u/wdesign123)\
**Replies:** 0\
**Last updated:** [December 19, 2014, 9:02pm UTC](https://forum.kirupa.com/t/one-page-responsive-template-lightbox-not-working/440836 "2014-12-19T21:02:13Z")

</div>

Hi, I was hoping someone could help me with applying a lightbox to portfolio images. It seems the images are placed through CSS and not embedded on the page. There is an image rollover CSS rule but the template wasn't fi…

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

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