# programming

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

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

**Page:** 175

---

## [Card game draw function](https://forum.kirupa.com/t/card-game-draw-function/328155)

<div class="topic-metadata">

**Author:** [@WarChimp](https://forum.kirupa.com/u/WarChimp)\
**Replies:** 0\
**Last updated:** [April 23, 2012, 12:37pm UTC](https://forum.kirupa.com/t/card-game-draw-function/328155 "2012-04-23T12:37:50Z")

</div>

I am experimenting with a card game. In what I have been working on, I got a button to be able to be click and "draw" a card into the players hand. This is all done through the use of arrays and tracing. I have set it up…

---

## [Most efficient (less lag) side scrolling level?](https://forum.kirupa.com/t/most-efficient-less-lag-side-scrolling-level/328154)

<div class="topic-metadata">

**Author:** [@deadkman](https://forum.kirupa.com/u/deadkman)\
**Replies:** 0\
**Last updated:** [April 23, 2012, 9:59am UTC](https://forum.kirupa.com/t/most-efficient-less-lag-side-scrolling-level/328154 "2012-04-23T09:59:45Z")

</div>

Hi! Recently I start a little and easy project that is some kind of side scrolling where you just pick up stuff and avoid obstacles, I already add all the physics and stuff i wanted on the player (that only moves up and …

---

## [Making a movieclip flash/blink](https://forum.kirupa.com/t/making-a-movieclip-flash-blink/328152)

<div class="topic-metadata">

**Author:** [@mikeL](https://forum.kirupa.com/u/mikeL)\
**Replies:** 0\
**Last updated:** [April 23, 2012, 3:23am UTC](https://forum.kirupa.com/t/making-a-movieclip-flash-blink/328152 "2012-04-23T03:23:50Z")

</div>

Hello all, I’m creating a game which has a healthbar. I want the health bar to blink couple of times when it goes over a certain amount or goes below a certain amount. How could I achieve this in AS3? I have a bar, whi…

---

## [Controlling MULTI flv's Please help](https://forum.kirupa.com/t/controlling-multi-flvs-please-help/328150)

<div class="topic-metadata">

**Author:** [@MAGG0T](https://forum.kirupa.com/u/MAGG0T)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 11:10pm UTC](https://forum.kirupa.com/t/controlling-multi-flvs-please-help/328150 "2012-04-22T23:10:02Z")

</div>

\[COLOR=#000000\]\[FONT=verdana\]On my Main SWF i have a Flv that has no sound \[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]var snd:Sound = new Sound(root.flvholder.flv\_mc);\[/FONT\]\[/COLOR\] \[COLOR=#000000\]\[FONT=verdana\]snd.…

---

## [Problem with radio buttons in as2](https://forum.kirupa.com/t/problem-with-radio-buttons-in-as2/328149)

<div class="topic-metadata">

**Author:** [@aleksandurg](https://forum.kirupa.com/u/aleksandurg)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 11:09pm UTC](https://forum.kirupa.com/t/problem-with-radio-buttons-in-as2/328149 "2012-04-22T23:09:57Z")

</div>

Hi, i have problem with 2 radio buttons. I\`m tryin to use if else for the radio buttons. I have two input text fileds and i want when radiobutton1 is selected, (textfield1.visible = true and textfield2.visible = false). …

---

## [Sending a matrix from PHP to AS3](https://forum.kirupa.com/t/sending-a-matrix-from-php-to-as3/328148)

<div class="topic-metadata">

**Author:** [@SuperDoD](https://forum.kirupa.com/u/SuperDoD)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 8:25pm UTC](https://forum.kirupa.com/t/sending-a-matrix-from-php-to-as3/328148 "2012-04-22T20:25:18Z")

</div>

Hello! I have a bit of a problem. I need to send a two dimensional array from PHP to AS3 and save the data in AS3 in a two dimensional array, but I can't find a way. Here is my code: adatatvitel.php \<?php require…

---

## [External SWF realted question to access the button from another swf file?](https://forum.kirupa.com/t/external-swf-realted-question-to-access-the-button-from-another-swf-file/328147)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 8:16pm UTC](https://forum.kirupa.com/t/external-swf-realted-question-to-access-the-button-from-another-swf-file/328147 "2012-04-22T20:16:24Z")

</div>

Hi, I have a main.swf file. From that file I am accessing the external.swf file which is an external file. Now, how can I write code on my main.swf file for the button which is on my external.swf file? Activities…

---

## [When is it worth "splitting" similar objects into different classes?](https://forum.kirupa.com/t/when-is-it-worth-splitting-similar-objects-into-different-classes/328146)

<div class="topic-metadata">

**Author:** [@neoflame](https://forum.kirupa.com/u/neoflame)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 5:30pm UTC](https://forum.kirupa.com/t/when-is-it-worth-splitting-similar-objects-into-different-classes/328146 "2012-04-22T17:30:53Z")

</div>

Hello all, I'm about to start on a side-scrolling game which will involve around 10 different characters the play could choose from and probably about 20 different enemies. Each of these will have slightly different grap…

---

## [Is it possible to limit the possibility of randomized label to show?](https://forum.kirupa.com/t/is-it-possible-to-limit-the-possibility-of-randomized-label-to-show/328145)

<div class="topic-metadata">

**Author:** [@qdbp\_bee](https://forum.kirupa.com/u/qdbp_bee)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 4:51pm UTC](https://forum.kirupa.com/t/is-it-possible-to-limit-the-possibility-of-randomized-label-to-show/328145 "2012-04-22T16:51:35Z")

</div>

Let me explain what I am doing. I am making a simple game that shows player two boxes at a time with a question, the player need to click one of the box to get to the next question. Clicking one of the box will lead pl…

---

## [.\_visible not working when moving between frames](https://forum.kirupa.com/t/-visible-not-working-when-moving-between-frames/328144)

<div class="topic-metadata">

**Author:** [@MissD](https://forum.kirupa.com/u/MissD)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 4:04pm UTC](https://forum.kirupa.com/t/-visible-not-working-when-moving-between-frames/328144 "2012-04-22T16:04:33Z")

</div>

I'm using a lot of .visible on buttons an all have been fine up to this point... I call the function continue from frame 8... the continue function is in frame 2 the trace shows that the for loop is being entered but it'…

---

## [Controlling sound from FLV](https://forum.kirupa.com/t/controlling-sound-from-flv/328142)

<div class="topic-metadata">

**Author:** [@MAGG0T](https://forum.kirupa.com/u/MAGG0T)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 1:15pm UTC](https://forum.kirupa.com/t/controlling-sound-from-flv/328142 "2012-04-22T13:15:14Z")

</div>

On so i have my FLV i have managed to set it on a loop so it plays over and over however i want to Mute the sound of the FLV or set the sound to 0. I tried this on the main timeline root.flvholder.flv\_mc.my\_flv.setVol…

---

## [How to change this line of code?](https://forum.kirupa.com/t/how-to-change-this-line-of-code/328139)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 22, 2012, 8:21am UTC](https://forum.kirupa.com/t/how-to-change-this-line-of-code/328139 "2012-04-22T08:21:09Z")

</div>

Hi, I want to change\[COLOR=#ff0000\] .as \[/COLOR\]to use directly in my flash actions. How to change the following line with \[COLOR=#0000ff\]blue \[/COLOR\]text? \[COLOR=#0000ff\]public class \[/COLOR\]Main extends MovieClip {…

---

## [\[Help\] How to curve a text in runtime using AS 2.0?](https://forum.kirupa.com/t/help-how-to-curve-a-text-in-runtime-using-as-2-0/328136)

<div class="topic-metadata">

**Author:** [@CodeKid23](https://forum.kirupa.com/u/CodeKid23)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 11:04pm UTC](https://forum.kirupa.com/t/help-how-to-curve-a-text-in-runtime-using-as-2-0/328136 "2012-04-21T23:04:18Z")

</div>

Hi pips, how to curve a text in runtime?

---

## [Is there a way to do multiples in c++?](https://forum.kirupa.com/t/is-there-a-way-to-do-multiples-in-c/328133)

<div class="topic-metadata">

**Author:** [@Jhonalid1](https://forum.kirupa.com/u/Jhonalid1)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 6:10pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-multiples-in-c/328133 "2012-04-21T18:10:13Z")

</div>

is there a way to tell your C++ programs to only execute an equation if it is a multiple of the number that was input? basicaly unless the number is a multiple of 10 it would move on to a different equation \[TABLE="wid…

---

## [MyDataGrid not sorting right, any help?](https://forum.kirupa.com/t/mydatagrid-not-sorting-right-any-help/328132)

<div class="topic-metadata">

**Author:** [@avaughn](https://forum.kirupa.com/u/avaughn)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 3:42pm UTC](https://forum.kirupa.com/t/mydatagrid-not-sorting-right-any-help/328132 "2012-04-21T15:42:49Z")

</div>

Rows B, D and E do not sort correctly, basically because I am assuming they have numbers with unmatching or too many places. I can not find any help online with this. The columns with percentages work fine unless they go…

---

## [Dynamic Text Box won't load first and last letters](https://forum.kirupa.com/t/dynamic-text-box-wont-load-first-and-last-letters/328131)

<div class="topic-metadata">

**Author:** [@MissD](https://forum.kirupa.com/u/MissD)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 3:06pm UTC](https://forum.kirupa.com/t/dynamic-text-box-wont-load-first-and-last-letters/328131 "2012-04-21T15:06:10Z")

</div>

I'm making a dynamic text box where the text is changed when a button is pressed. But when I open the frame that its in it has levelStavete written in the text box (which I don't have written anywhere) And when I press…

---

## [Getting error on sending an email!](https://forum.kirupa.com/t/getting-error-on-sending-an-email/328129)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 12:48pm UTC](https://forum.kirupa.com/t/getting-error-on-sending-an-email/328129 "2012-04-21T12:48:11Z")

</div>

Hi, I have followed the tutorial and created Flash file to send emails. But getting the error: "\[COLOR=#ff0000\]Message not sent\[/COLOR\]". Is it becuase my web server doesn't support aspx or what? Please help. The lin…

---

## [Tutorial: Numbers in JavaScript](https://forum.kirupa.com/t/tutorial-numbers-in-javascript/328127)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 21, 2012, 10:45am UTC](https://forum.kirupa.com/t/tutorial-numbers-in-javascript/328127 "2012-04-21T10:45:09Z")

</div>

\[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[COLOR=#333333\]Hi everyone,\[/COLOR\]\[/COLOR\]\[/FONT\]\[/FONT\]\[/COLOR\]\[/COLOR\] \[COLOR=#333333\]\[COLOR=#333333\]\[FONT=Segoe UI\]\[COLOR=#333333\]\[FONT=Segoe…

---

## [CDK Collision help](https://forum.kirupa.com/t/cdk-collision-help/328123)

<div class="topic-metadata">

**Author:** [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 10:41pm UTC](https://forum.kirupa.com/t/cdk-collision-help/328123 "2012-04-20T22:41:08Z")

</div>

Im using the collision detection kit I have it mostly working but the collisions are little off. the object seems to get stuck in the object it is colliding with. I think its todo with the angular velocity but Im still…

---

## [Tooltip positioning help needed](https://forum.kirupa.com/t/tooltip-positioning-help-needed/328121)

<div class="topic-metadata">

**Author:** [@Vanss472](https://forum.kirupa.com/u/Vanss472)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 8:48pm UTC](https://forum.kirupa.com/t/tooltip-positioning-help-needed/328121 "2012-04-20T20:48:52Z")

</div>

Hello I'm using the Datepicker jquery with tooltip and I want my tooltip to show up on the center of the calendar. For example every time you mouse over it will show up at the center of the calendar. Here is my code …

---

## [Problems with saving a highscore with Shared Objects](https://forum.kirupa.com/t/problems-with-saving-a-highscore-with-shared-objects/328117)

<div class="topic-metadata">

**Author:** [@CJBaak](https://forum.kirupa.com/u/CJBaak)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 4:56pm UTC](https://forum.kirupa.com/t/problems-with-saving-a-highscore-with-shared-objects/328117 "2012-04-20T16:56:19Z")

</div>

Hey, so I've been trying to get this problem right for a couple of hours now, but i just cant get it right. I'm making a game, and I'm trying to add a high score stat and saving it for next launches with Shared Objects. …

---

## [How to import .md2 file and manually control it's animation in Flash?](https://forum.kirupa.com/t/how-to-import-md2-file-and-manually-control-its-animation-in-flash/328115)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 12:51pm UTC](https://forum.kirupa.com/t/how-to-import-md2-file-and-manually-control-its-animation-in-flash/328115 "2012-04-20T12:51:54Z")

</div>

Hi I am a Flash developer. I use Flash CS5.5 for development. What I want to achieve is importing of an .md2 format file developed in 3DS Max 2012 into Flash. I am using Papervision3D/Away3D libraries to do so. Now, wh…

---

## [AS2 to AS3 convert](https://forum.kirupa.com/t/as2-to-as3-convert/328114)

<div class="topic-metadata">

**Author:** [@melihgulcan](https://forum.kirupa.com/u/melihgulcan)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 10:06am UTC](https://forum.kirupa.com/t/as2-to-as3-convert/328114 "2012-04-20T10:06:20Z")

</div>

Hi, how to convert the following codes to AS3? stop(); var lowHighScore=0; myData = new LoadVars(); myData.load("http://127.0.0.1/get\_score.php"); myData.onLoad = function(session) { for (var i=1;i&lt;this\['cou…

---

## [Having problems with the What are you thinking form](https://forum.kirupa.com/t/having-problems-with-the-what-are-you-thinking-form/328112)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 4:36am UTC](https://forum.kirupa.com/t/having-problems-with-the-what-are-you-thinking-form/328112 "2012-04-20T04:36:35Z")

</div>

I've been trying to get this to work for a long time. I have done everything that the tutorial said to do, but when you click on the form, it goes to a 404 error page on every browser, I don't know what I'm doing wrong, …

---

## [CSS class and descendant selectors practices](https://forum.kirupa.com/t/css-class-and-descendant-selectors-practices/328110)

<div class="topic-metadata">

**Author:** [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Replies:** 0\
**Last updated:** [April 20, 2012, 1:30am UTC](https://forum.kirupa.com/t/css-class-and-descendant-selectors-practices/328110 "2012-04-20T01:30:04Z")

</div>

I would like to form a better understanding of when it is appropriate to use classes to target content as opposed to other available options, specifically, descendant selectors. In many cases, instead of using classes,…

---

## [Using a For Loop with Hittest objects - I'm stuck!](https://forum.kirupa.com/t/using-a-for-loop-with-hittest-objects-im-stuck/328109)

<div class="topic-metadata">

**Author:** [@netmonkey](https://forum.kirupa.com/u/netmonkey)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 10:05pm UTC](https://forum.kirupa.com/t/using-a-for-loop-with-hittest-objects-im-stuck/328109 "2012-04-19T22:05:37Z")

</div>

Hi, I'm trying to get something quite simple to work, but can't figure out what's happening here. I have five identical MCs (Bat characters), and the user can drag a bottle to feed them. There is a hittest object (cal…

---

## [Is there a way to control the Smoking not going above the stage?](https://forum.kirupa.com/t/is-there-a-way-to-control-the-smoking-not-going-above-the-stage/328108)

<div class="topic-metadata">

**Author:** [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 6:57pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-control-the-smoking-not-going-above-the-stage/328108 "2012-04-19T18:57:31Z")

</div>

Hi, In the following example (File attached), the smoke goes above the stage. I want to avoid it, and limit the smoke to go maximum up to the stage. I need it because my flash is auto re-sizable to the browser width &…

---

## [Magnify DisplacementMapFilter won't let me use button interactivity](https://forum.kirupa.com/t/magnify-displacementmapfilter-wont-let-me-use-button-interactivity/328107)

<div class="topic-metadata">

**Author:** [@system](https://forum.kirupa.com/u/system)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 6:38pm UTC](https://forum.kirupa.com/t/magnify-displacementmapfilter-wont-let-me-use-button-interactivity/328107 "2012-04-19T18:38:39Z")

</div>

Hi all, I followed this tutorial below: active\[dot\]tutsplus\[dot\]com/tutorials/effects/create-an-impressive-magnifying-effect-with-actionscript-30/ to get a magnify lens effect which works wonderfully, unfortunately the…

---

## [Help with resizing mask in fullscreen mode](https://forum.kirupa.com/t/help-with-resizing-mask-in-fullscreen-mode/328104)

<div class="topic-metadata">

**Author:** [@Maureen\_Stewart](https://forum.kirupa.com/u/Maureen_Stewart)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 12:20pm UTC](https://forum.kirupa.com/t/help-with-resizing-mask-in-fullscreen-mode/328104 "2012-04-19T12:20:03Z")

</div>

Hi I have created a drawing board using a tutorial that uses a main as file and the png encoder in cs5.5. I am creating this as an exe file to be run from a cd and am not sure how to resize the mask on the board to the s…

---

## [I need image editor fla file](https://forum.kirupa.com/t/i-need-image-editor-fla-file/328100)

<div class="topic-metadata">

**Author:** [@vinothsn](https://forum.kirupa.com/u/vinothsn)\
**Replies:** 0\
**Last updated:** [April 19, 2012, 4:22am UTC](https://forum.kirupa.com/t/i-need-image-editor-fla-file/328100 "2012-04-19T04:22:33Z")

</div>

hi, i need image editor fla file any help...... or i found the one fla file but i don't know to customize new uploading image in action script below i have the attached source find it. help me...

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

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