# programming

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

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

**Page:** 107

---

## [Creating a mute button](https://forum.kirupa.com/t/creating-a-mute-button/331920)

<div class="topic-metadata">

**Author:** [@quest20](https://forum.kirupa.com/u/quest20)\
**Replies:** 0\
**Last updated:** [November 26, 2013, 2:11pm UTC](https://forum.kirupa.com/t/creating-a-mute-button/331920 "2013-11-26T14:11:44Z")

</div>

\[LEFT\]\[COLOR=#000000\]Hello Everyone, I am trying to build a toggle mute button. I have set up the Video and Camera class to capture video from a clients camera device. I would like to add a mute button to the video objec…

---

## [My application works correctly on a .swf but not .exe?](https://forum.kirupa.com/t/my-application-works-correctly-on-a-swf-but-not-exe/331918)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 26, 2013, 5:34am UTC](https://forum.kirupa.com/t/my-application-works-correctly-on-a-swf-but-not-exe/331918 "2013-11-26T05:34:45Z")

</div>

\[COLOR=#333333\]\[FONT=adobe-clean\]My application works perfects when I open it in its .swf format, but some buttons don't work correctly when I open it in its .exe format. It doesn't work correctly in HTML as well. This …

---

## [Swinging gift tag AS2](https://forum.kirupa.com/t/swinging-gift-tag-as2/331913)

<div class="topic-metadata">

**Author:** [@coastalstudio](https://forum.kirupa.com/u/coastalstudio)\
**Replies:** 0\
**Last updated:** [November 24, 2013, 5:34pm UTC](https://forum.kirupa.com/t/swinging-gift-tag-as2/331913 "2013-11-24T17:34:20Z")

</div>

Hello there, I'm creating a series of christmas banners and the main image I will be using across all of them is a gift tag. I would like to add a subtle animation to the gift tag so that it swings / sways (very gently…

---

## [Simple buttons not working](https://forum.kirupa.com/t/simple-buttons-not-working/331911)

<div class="topic-metadata">

**Author:** [@Jure\_Stama](https://forum.kirupa.com/u/Jure_Stama)\
**Replies:** 0\
**Last updated:** [November 23, 2013, 6:09pm UTC](https://forum.kirupa.com/t/simple-buttons-not-working/331911 "2013-11-23T18:09:29Z")

</div>

Hello, I am making a simple labyrinth game with rollover functions. I made a labyrinth (button), and end button (at the end of labyrinth). If you touch end button it goes on frame 4, and if you touch labyrinth wall (butt…

---

## [Actionscript to php and back (working, but...)](https://forum.kirupa.com/t/actionscript-to-php-and-back-working-but/331909)

<div class="topic-metadata">

**Author:** [@nightkarnation](https://forum.kirupa.com/u/nightkarnation)\
**Replies:** 0\
**Last updated:** [November 22, 2013, 8:51pm UTC](https://forum.kirupa.com/t/actionscript-to-php-and-back-working-but/331909 "2013-11-22T20:51:00Z")

</div>

Hey guys! I have a simple script that sends a variable to php (locally) and then php returns another variable to flash... Here's the simple script: var variables:URLVariables = new URLVariables(); var varSend:URLReq…

---

## [Random blinking / twinkling stars in AS2](https://forum.kirupa.com/t/random-blinking-twinkling-stars-in-as2/331907)

<div class="topic-metadata">

**Author:** [@coastalstudio](https://forum.kirupa.com/u/coastalstudio)\
**Replies:** 0\
**Last updated:** [November 22, 2013, 1:14pm UTC](https://forum.kirupa.com/t/random-blinking-twinkling-stars-in-as2/331907 "2013-11-22T13:14:30Z")

</div>

Hi there, I would like to insert some blinking / twinkling / flashing (whatever you want to call it!) stars into the background of my flash banner and I'm a little unsure as to how to do it using code (as2) - can anyon…

---

## [How to recreate image panning in AS2](https://forum.kirupa.com/t/how-to-recreate-image-panning-in-as2/331906)

<div class="topic-metadata">

**Author:** [@coastalstudio](https://forum.kirupa.com/u/coastalstudio)\
**Replies:** 0\
**Last updated:** [November 22, 2013, 8:50am UTC](https://forum.kirupa.com/t/how-to-recreate-image-panning-in-as2/331906 "2013-11-22T08:50:24Z")

</div>

Hi there, I need some urgent help from you lovely people... I've seen an ad (I've attached the zipped swf file) which contains an image in the background that pans slowly from top to bottom then fades at the end of t…

---

## [Help with automatic image panning in AS2 (Flash CS5)](https://forum.kirupa.com/t/help-with-automatic-image-panning-in-as2-flash-cs5/331904)

<div class="topic-metadata">

**Author:** [@coastalstudio](https://forum.kirupa.com/u/coastalstudio)\
**Replies:** 0\
**Last updated:** [November 21, 2013, 6:09pm UTC](https://forum.kirupa.com/t/help-with-automatic-image-panning-in-as2-flash-cs5/331904 "2013-11-21T18:09:02Z")

</div>

Hi there, I'm looking for some urgent help with a flash banner ad I'm working on... Basically, I would like an image to appear and then automatically pan horizontally from left to right, where it will then fade out.…

---

## [How to detect where the MC is coming from?](https://forum.kirupa.com/t/how-to-detect-where-the-mc-is-coming-from/331903)

<div class="topic-metadata">

**Author:** [@pistelli](https://forum.kirupa.com/u/pistelli)\
**Replies:** 0\
**Last updated:** [November 21, 2013, 5:12pm UTC](https://forum.kirupa.com/t/how-to-detect-where-the-mc-is-coming-from/331903 "2013-11-21T17:12:09Z")

</div>

Hi! I'll try to explain my problem in a simple way: I have a ball going from left to right or from right to left of stage. When this ball hits a MC positioned in the center of stage, I have 2 options: 1) If the ball is c…

---

## [Fixing PHP Syntax](https://forum.kirupa.com/t/fixing-php-syntax/331901)

<div class="topic-metadata">

**Author:** [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Replies:** 0\
**Last updated:** [November 21, 2013, 3:22am UTC](https://forum.kirupa.com/t/fixing-php-syntax/331901 "2013-11-21T03:22:38Z")

</div>

I need to use PHP to set a conditional and change the css style for the following element: \<h3 id="h3\_g\_\<?= $gall\["url"\] ?\>" class="ir"\>\<?= $gall\["name"\] ?\>\</h3\> Something like: \<?php if ($workpage) { …

---

## [Real-time platformer online game with php and As2?](https://forum.kirupa.com/t/real-time-platformer-online-game-with-php-and-as2/331900)

<div class="topic-metadata">

**Author:** [@mightybob](https://forum.kirupa.com/u/mightybob)\
**Replies:** 0\
**Last updated:** [November 21, 2013, 12:39am UTC](https://forum.kirupa.com/t/real-time-platformer-online-game-with-php-and-as2/331900 "2013-11-21T00:39:36Z")

</div>

I've already made this platform game in as2, but it gets boring quick with no reason for players to return and keep playing... So I'm asking here wondering how I could make this as2 flash platformer into a real time mu…

---

## [Match-making system for audio calls + automatic recording of calls](https://forum.kirupa.com/t/match-making-system-for-audio-calls-automatic-recording-of-calls/331899)

<div class="topic-metadata">

**Author:** [@Yanizz123](https://forum.kirupa.com/u/Yanizz123)\
**Replies:** 0\
**Last updated:** [November 20, 2013, 5:28pm UTC](https://forum.kirupa.com/t/match-making-system-for-audio-calls-automatic-recording-of-calls/331899 "2013-11-20T17:28:15Z")

</div>

Hello, I am looking to create a website that lets users click a button to start an audio conversation with somebody else who also clicks the button in his own browser. so this has to be a match-making system that lets …

---

## [Change Alignment of DataGrid Column](https://forum.kirupa.com/t/change-alignment-of-datagrid-column/331898)

<div class="topic-metadata">

**Author:** [@geHuC](https://forum.kirupa.com/u/geHuC)\
**Replies:** 0\
**Last updated:** [November 20, 2013, 9:55am UTC](https://forum.kirupa.com/t/change-alignment-of-datagrid-column/331898 "2013-11-20T09:55:51Z")

</div>

I've been splitting my hairs for the last few hours searching how to do it (the adobe reference documents are abysmal). When using mxml it just adding \<mx:DataGridColumn textAlign="right" /\> and you're done. In pu…

---

## [FancyHat: An in-dev Game by a 12yr old Programmer](https://forum.kirupa.com/t/fancyhat-an-in-dev-game-by-a-12yr-old-programmer/331895)

<div class="topic-metadata">

**Author:** [@mightybob](https://forum.kirupa.com/u/mightybob)\
**Replies:** 0\
**Last updated:** [November 18, 2013, 2:34pm UTC](https://forum.kirupa.com/t/fancyhat-an-in-dev-game-by-a-12yr-old-programmer/331895 "2013-11-18T14:34:41Z")

</div>

Hey, I'm 12yrs old and I like to program and animate games. My favorite flash game of all time is the Fancy Pants Adventures, so this game is sort of a tribute to it. I didn't go to any type of class, everything I kn…

---

## [How to make a movie clip invisible depending on a value in another layer?](https://forum.kirupa.com/t/how-to-make-a-movie-clip-invisible-depending-on-a-value-in-another-layer/331894)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 17, 2013, 11:06pm UTC](https://forum.kirupa.com/t/how-to-make-a-movie-clip-invisible-depending-on-a-value-in-another-layer/331894 "2013-11-17T23:06:05Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I am trying to make an "achievements" page for my game, where if the user has a high score greater than 100, then the achievement can be unlocked. I tried using a code like this, but it didn't …

---

## [The simple ones are always the hardest](https://forum.kirupa.com/t/the-simple-ones-are-always-the-hardest/331893)

<div class="topic-metadata">

**Author:** [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)\
**Replies:** 0\
**Last updated:** [November 17, 2013, 6:51pm UTC](https://forum.kirupa.com/t/the-simple-ones-are-always-the-hardest/331893 "2013-11-17T18:51:45Z")

</div>

import fl.transitions.Tween; import fl.transitions.easing.\*; import fl.transitions.TweenEvent; import flash.events.Event; var \_old:Event = e.currentTarget; ///////////////////////////////////////////////////////////////…

---

## [Why are my dynamic text fields not populating?](https://forum.kirupa.com/t/why-are-my-dynamic-text-fields-not-populating/331892)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 17, 2013, 1:59am UTC](https://forum.kirupa.com/t/why-are-my-dynamic-text-fields-not-populating/331892 "2013-11-17T01:59:58Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]For some reason my dynamic text fields aren't populating anymore. The only new thing I added before it stopped working correctly was a new button, but either way..if I take the button out or no…

---

## [How to play sounds depending on a value in a movie clip?](https://forum.kirupa.com/t/how-to-play-sounds-depending-on-a-value-in-a-movie-clip/331891)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 16, 2013, 4:41pm UTC](https://forum.kirupa.com/t/how-to-play-sounds-depending-on-a-value-in-a-movie-clip/331891 "2013-11-16T16:41:23Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I have a movie clip layer (in main timeline) named "options\_mc" inside of it; it contains a dynamic text field (onoff\_txt) that changes to 0 or 100 when a button (sound\_btn) is clicked. If the …

---

## [Jquery file Upload and database file integration](https://forum.kirupa.com/t/jquery-file-upload-and-database-file-integration/331889)

<div class="topic-metadata">

**Author:** [@surf](https://forum.kirupa.com/u/surf)\
**Replies:** 0\
**Last updated:** [November 16, 2013, 10:39am UTC](https://forum.kirupa.com/t/jquery-file-upload-and-database-file-integration/331889 "2013-11-16T10:39:25Z")

</div>

Hi I looked at JQuery file upload and i am trying to set up so that it stores the file name and path into database. i looked at https://github.com/blueimp/jQuery-File-Upload/wiki/PHP-MySQL-database-integration but it d…

---

## [How do I save a dynamic text?](https://forum.kirupa.com/t/how-do-i-save-a-dynamic-text/331885)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 16, 2013, 2:22am UTC](https://forum.kirupa.com/t/how-do-i-save-a-dynamic-text/331885 "2013-11-16T02:22:22Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I have a dynamic text field that changes from 100 to 0 and vice versa when a button is clicked. I want this number to be saved when exiting the application, but it seems that it's not returning…

---

## [How to save a text locally when a button is clicked?](https://forum.kirupa.com/t/how-to-save-a-text-locally-when-a-button-is-clicked/331884)

<div class="topic-metadata">

**Author:** [@razer56](https://forum.kirupa.com/u/razer56)\
**Replies:** 0\
**Last updated:** [November 15, 2013, 9:25pm UTC](https://forum.kirupa.com/t/how-to-save-a-text-locally-when-a-button-is-clicked/331884 "2013-11-15T21:25:25Z")

</div>

\[COLOR=#000000\]\[FONT=Arial\]I want to make a button where once the button is clicked it changes a dynamic text field from 100 to 0, and if clicked again from 0 to 100. When I exit the game, I want it to save what the user…

---

## [Game Physics, Curved Ground](https://forum.kirupa.com/t/game-physics-curved-ground/331883)

<div class="topic-metadata">

**Author:** [@Jack\_Dudley](https://forum.kirupa.com/u/Jack_Dudley)\
**Replies:** 0\
**Last updated:** [November 15, 2013, 7:19pm UTC](https://forum.kirupa.com/t/game-physics-curved-ground/331883 "2013-11-15T19:19:23Z")

</div>

Hey Guys, I've been working on a flash game (sidescrolling platformer)for a few weeks now and was wondering how I can get my character (on a bike) to move up a curved bit of ground. At the moment he moves up it staying…

---

## [AS2 - move two objects with drag?](https://forum.kirupa.com/t/as2-move-two-objects-with-drag/331882)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [November 15, 2013, 2:57pm UTC](https://forum.kirupa.com/t/as2-move-two-objects-with-drag/331882 "2013-11-15T14:57:17Z")

</div>

I've been looking all over and I see that there's no simple way to drag more than one object with startDrag. But there must be some way of coding it so that, say, movieClipA.x = movieClipB.x, so they move together. It mu…

---

## [Sliding/Drag Menu, HELP PLEASE](https://forum.kirupa.com/t/sliding-drag-menu-help-please/331881)

<div class="topic-metadata">

**Author:** [@Nan\_Ksdkjd](https://forum.kirupa.com/u/Nan_Ksdkjd)\
**Replies:** 0\
**Last updated:** [November 15, 2013, 1:49pm UTC](https://forum.kirupa.com/t/sliding-drag-menu-help-please/331881 "2013-11-15T13:49:23Z")

</div>

Hello guys. I'm currently studying html, css and java for a college project. And we basically have to self-learn it and i'm having a bit of a trouble. I'm just making an app interface and I'm wondering if you can help me…

---

## [Draw method stop at first frame](https://forum.kirupa.com/t/draw-method-stop-at-first-frame/331880)

<div class="topic-metadata">

**Author:** [@saschart](https://forum.kirupa.com/u/saschart)\
**Replies:** 0\
**Last updated:** [November 15, 2013, 7:58am UTC](https://forum.kirupa.com/t/draw-method-stop-at-first-frame/331880 "2013-11-15T07:58:40Z")

</div>

I need to make an animated flower movie using tile of one bitmap. I use the code below but write only the first frame then stop, how can I draw more frames? createEmptyMovieClip("triangle",2); triangle.beginFill(0x000…

---

## [Understanding the world and usage of flash banner ads](https://forum.kirupa.com/t/understanding-the-world-and-usage-of-flash-banner-ads/331877)

<div class="topic-metadata">

**Author:** [@g5creative007](https://forum.kirupa.com/u/g5creative007)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 4:35pm UTC](https://forum.kirupa.com/t/understanding-the-world-and-usage-of-flash-banner-ads/331877 "2013-11-14T16:35:10Z")

</div>

If you want to promote any of your new ventures, it would be a wise idea to take the help of outsourcing forms that can provide quality commercial photography service at a reasonable rate. G5 Creative Group is one such o…

---

## [AS2 - Drag rotationally](https://forum.kirupa.com/t/as2-drag-rotationally/331876)

<div class="topic-metadata">

**Author:** [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 2:27pm UTC](https://forum.kirupa.com/t/as2-drag-rotationally/331876 "2013-11-14T14:27:07Z")

</div>

I've got an interesting problem to solve, an interactive line graph. It's pretty simple graphically, but what I need to do is make one graph line both draggable up and down, and also, if possible, to rotate it interactiv…

---

## [How to embed html code inside my fla file?](https://forum.kirupa.com/t/how-to-embed-html-code-inside-my-fla-file/331875)

<div class="topic-metadata">

**Author:** [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 2:27pm UTC](https://forum.kirupa.com/t/how-to-embed-html-code-inside-my-fla-file/331875 "2013-11-14T14:27:03Z")

</div>

Hi! I have this code that is a video player from justin.tv broadcaster web site and I want to put this player inside my .fla file to compile it in to my swf file. How can I do it? \<object type="application/x-shockwa…

---

## [How to embed a html video player code inside my fla file?](https://forum.kirupa.com/t/how-to-embed-a-html-video-player-code-inside-my-fla-file/331874)

<div class="topic-metadata">

**Author:** [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Replies:** 0\
**Last updated:** [November 14, 2013, 1:58am UTC](https://forum.kirupa.com/t/how-to-embed-a-html-video-player-code-inside-my-fla-file/331874 "2013-11-14T01:58:41Z")

</div>

Hi! I have this code that is a video player from justin.tv broadcaster web site and I want to put this player inside my .fla file to compile it in to my swf file. How can I do it? \<object type="application/x-shockwa…

---

## [Pan a scene to right together with your character move in AS3](https://forum.kirupa.com/t/pan-a-scene-to-right-together-with-your-character-move-in-as3/331873)

<div class="topic-metadata">

**Author:** [@annawing](https://forum.kirupa.com/u/annawing)\
**Replies:** 0\
**Last updated:** [November 13, 2013, 2:19pm UTC](https://forum.kirupa.com/t/pan-a-scene-to-right-together-with-your-character-move-in-as3/331873 "2013-11-13T14:19:07Z")

</div>

Hello guys, Need some help regarding to the pan your scene to the right while your character is walking to the right Hope there's anyone willing to help out there. Thanks \[grin\]

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

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