# programming

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

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

**Page:** 461

---

## [How do I play a sound when I click a button?](https://forum.kirupa.com/t/how-do-i-play-a-sound-when-i-click-a-button/311278)

<div class="topic-metadata">

**Author:** [@Aro2220](https://forum.kirupa.com/u/Aro2220)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 9:28pm UTC](https://forum.kirupa.com/t/how-do-i-play-a-sound-when-i-click-a-button/311278 "2010-07-01T21:28:20Z")

</div>

Hi, I'm new to flash cs5 and actionscript 3. I have a button that appears on a certain frame. I want that button to play an imported sound file. It's simple but I'm having trouble finding an appropriate tutorial. Ca…

---

## [Advanced AS Question](https://forum.kirupa.com/t/advanced-as-question/311277)

<div class="topic-metadata">

**Author:** [@solivan2010](https://forum.kirupa.com/u/solivan2010)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 9:12pm UTC](https://forum.kirupa.com/t/advanced-as-question/311277 "2010-07-01T21:12:01Z")

</div>

How everyone! Check this site out: http://www.cheeseandburger.com I need know if there's a tutorial anywhere on how they show each individual burger, they way the cards flip like that. My customer really like this bu…

---

## [Detecting all PHP errors and reporting them](https://forum.kirupa.com/t/detecting-all-php-errors-and-reporting-them/311276)

<div class="topic-metadata">

**Author:** [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 8:55pm UTC](https://forum.kirupa.com/t/detecting-all-php-errors-and-reporting-them/311276 "2010-07-01T20:55:38Z")

</div>

\[whisper\]This weekend for some reason a few rows in the database were damaged (session variables, which weren't even very important), but for several hours the site was down. I was able to fix the problem within 5 minute…

---

## [Stuttering crossfades](https://forum.kirupa.com/t/stuttering-crossfades/311273)

<div class="topic-metadata">

**Author:** [@ghostir](https://forum.kirupa.com/u/ghostir)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 7:24pm UTC](https://forum.kirupa.com/t/stuttering-crossfades/311273 "2010-07-01T19:24:36Z")

</div>

My current project includes a seemingly simple animated sequence involving three .jpg files, converted to graphic symbols, each residing on individual layers of the timeline. Each occupies the entire stage of 600 x 300. …

---

## [Formula for string length](https://forum.kirupa.com/t/formula-for-string-length/311271)

<div class="topic-metadata">

**Author:** [@wes\_design](https://forum.kirupa.com/u/wes_design)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 5:59pm UTC](https://forum.kirupa.com/t/formula-for-string-length/311271 "2010-07-01T17:59:11Z")

</div>

I am currently working on a game would like to know if anyone by chance knows a formula that finds the length of string or any object when it wraps around a circle... you have Lf = L1+L2+L3 you have the diameter of the…

---

## [PHP - HOW TO make a form field REQUIRED](https://forum.kirupa.com/t/php-how-to-make-a-form-field-required/311270)

<div class="topic-metadata">

**Author:** [@lucobos](https://forum.kirupa.com/u/lucobos)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 5:11pm UTC](https://forum.kirupa.com/t/php-how-to-make-a-form-field-required/311270 "2010-07-01T17:11:37Z")

</div>

Hey you all. Very cool PHP tutorial, it all works great but i was wondering how to make required fields. I have been googling around for a while, i know it has to do with this line of code: \[COLOR=#0000ff\](!($name && $…

---

## [AS3 FLVPlayback](https://forum.kirupa.com/t/as3-flvplayback/311269)

<div class="topic-metadata">

**Author:** [@surf](https://forum.kirupa.com/u/surf)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 4:55pm UTC](https://forum.kirupa.com/t/as3-flvplayback/311269 "2010-07-01T16:55:02Z")

</div>

Hi, i am using OOP to create a website, I have a workin FLVPlayback component which works absolutely fine... u can have a look on http://bit.ly/cfGzih \[biturl for personal reasons\]... the as video is played... there is a…

---

## [Overlapping MovieClips](https://forum.kirupa.com/t/overlapping-movieclips/311268)

<div class="topic-metadata">

**Author:** [@h3d0](https://forum.kirupa.com/u/h3d0)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 4:54pm UTC](https://forum.kirupa.com/t/overlapping-movieclips/311268 "2010-07-01T16:54:41Z")

</div>

Just imagine: we have two MovieClips A and b. A - is a parent, b - is a child (inside A). First you see only A. When you hover your mouse over A (MOUSE\_OVER), b appears. It works like a pop-up mechanism - you hover ove…

---

## [OMG am I going backwards now with code? Please see](https://forum.kirupa.com/t/omg-am-i-going-backwards-now-with-code-please-see/311266)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 3:20pm UTC](https://forum.kirupa.com/t/omg-am-i-going-backwards-now-with-code-please-see/311266 "2010-07-01T15:20:03Z")

</div>

var tf:TextField = new TextField(); var tfFormat:TextFormat = new TextFormat(); tfFormat.size = 25; tf.defaultTextFormat = tfFormat; tf.text = "hiiii"; addChild(tf); That works fine.. For 10 minutes though I had it…

---

## [Get last line length in pixels](https://forum.kirupa.com/t/get-last-line-length-in-pixels/311263)

<div class="topic-metadata">

**Author:** [@jaioxung](https://forum.kirupa.com/u/jaioxung)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 2:24pm UTC](https://forum.kirupa.com/t/get-last-line-length-in-pixels/311263 "2010-07-01T14:24:11Z")

</div>

I am wanting to position a large close-quote graphic relative to the end of the last line of text in a text field. Is there a way to use textWidth to find the width in pixels of just the last line of a textField?

---

## [\[Flash8\] HTTP Auth with XML-RPC](https://forum.kirupa.com/t/flash8-http-auth-with-xml-rpc/311262)

<div class="topic-metadata">

**Author:** [@esaevian](https://forum.kirupa.com/u/esaevian)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 2:22pm UTC](https://forum.kirupa.com/t/flash8-http-auth-with-xml-rpc/311262 "2010-07-01T14:22:10Z")

</div>

Hey all, I have a Flash app that I'm working with in AS@ which needs to call out to a WebService via XML RPC. However, the server I need to connect to uses HTTP authentication, and I can't figure out how to pass the us…

---

## [Reflection across arbitrary line](https://forum.kirupa.com/t/reflection-across-arbitrary-line/311260)

<div class="topic-metadata">

**Author:** [@Poons](https://forum.kirupa.com/u/Poons)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 12:52pm UTC](https://forum.kirupa.com/t/reflection-across-arbitrary-line/311260 "2010-07-01T12:52:52Z")

</div>

Hello everbody, I want to reflect a movieclip over an arbitrary line with actionscript 3 (not just horizontally or vertically). After messing around for quite a bit I could not find a way to do it. Does anyone know h…

---

## [Generate random number](https://forum.kirupa.com/t/generate-random-number/311258)

<div class="topic-metadata">

**Author:** [@JaxNa](https://forum.kirupa.com/u/JaxNa)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 11:38am UTC](https://forum.kirupa.com/t/generate-random-number/311258 "2010-07-01T11:38:32Z")

</div>

Hi guys, How to create a code to generate non repeating random number? Can anyone help me plz? Thanks JaxNa

---

## [Firefox doesn't show it, Internet explorer does but won't play it properly](https://forum.kirupa.com/t/firefox-doesnt-show-it-internet-explorer-does-but-wont-play-it-properly/311256)

<div class="topic-metadata">

**Author:** [@Renierius](https://forum.kirupa.com/u/Renierius)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 9:40am UTC](https://forum.kirupa.com/t/firefox-doesnt-show-it-internet-explorer-does-but-wont-play-it-properly/311256 "2010-07-01T09:40:58Z")

</div>

Good day, I have a test page for a website I'm currently working on, there's a video player on it that shows itself on internet explore but doesn't actually play the videos and on Safari or Firefox it doesn't even show…

---

## [Trickey join](https://forum.kirupa.com/t/trickey-join/311255)

<div class="topic-metadata">

**Author:** [@crayzee](https://forum.kirupa.com/u/crayzee)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 9:36am UTC](https://forum.kirupa.com/t/trickey-join/311255 "2010-07-01T09:36:07Z")

</div>

Basically in the end my intention is to have a table that looks something like this... (see image) \[image\] The first table(blue headers) is what I want in the end, but I'm not sure how to get the attendance for each …

---

## [Dynamic Line Drawing from object locations](https://forum.kirupa.com/t/dynamic-line-drawing-from-object-locations/311252)

<div class="topic-metadata">

**Author:** [@xhippy](https://forum.kirupa.com/u/xhippy)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 8:56am UTC](https://forum.kirupa.com/t/dynamic-line-drawing-from-object-locations/311252 "2010-07-01T08:56:03Z")

</div>

First post here, sorry if its been covered before;) I'm creating a flash based dynamic electrical circuit board and have come across a problem. I have a function that is a fired from ENTER\_FRAME event that loops thoug…

---

## [Morning, Afternoon, Evening Greeting](https://forum.kirupa.com/t/morning-afternoon-evening-greeting/311251)

<div class="topic-metadata">

**Author:** [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 8:33am UTC](https://forum.kirupa.com/t/morning-afternoon-evening-greeting/311251 "2010-07-01T08:33:25Z")

</div>

Hi, Could anyone guide me to a tutorial or show me how I could display a "Good Morning", "Good Afternoon" or "Good Evening" message in a MC depending on the time of day it is?? ie: 0:00 - 11:59 = Good Morning 12:00 …

---

## [Could you explain draw() while using clipRect?](https://forum.kirupa.com/t/could-you-explain-draw-while-using-cliprect/311250)

<div class="topic-metadata">

**Author:** [@jrjellybeans](https://forum.kirupa.com/u/jrjellybeans)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 8:03am UTC](https://forum.kirupa.com/t/could-you-explain-draw-while-using-cliprect/311250 "2010-07-01T08:03:53Z")

</div>

Hey guys, I've tried working this problem out several times, but I've never been able to get it to work. What I want to do is draw a PART of a bitmapdata onto another bitmapdata while using transparency effects. My…

---

## [kirupa.com - Draggable Menu 2.0 – Part I : Making it Work](https://forum.kirupa.com/t/kirupa-com-draggable-menu-2-0-part-i-making-it-work/643436)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 7:00am UTC](https://forum.kirupa.com/t/kirupa-com-draggable-menu-2-0-part-i-making-it-work/643436 "2010-07-01T07:00:00Z")

</div>

Draggable Menu 2.0 – Part I : Making it Work written by ilyas usal a.k.a. pom OK. I've just realized that the tutorial I made for that effect was impossible to understand, even for me, so here's :The menu w…

---

## [1 NetStream, more then 1 videos](https://forum.kirupa.com/t/1-netstream-more-then-1-videos/311249)

<div class="topic-metadata">

**Author:** [@dfm\_](https://forum.kirupa.com/u/dfm_)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 6:51am UTC](https://forum.kirupa.com/t/1-netstream-more-then-1-videos/311249 "2010-07-01T06:51:31Z")

</div>

Hey guys i was trying to show one netstream in 2 different video objects, but it simply can't. Is there way to do this, without setting second netStream object? code that i used package { import flash.net.NetStr…

---

## [\[as2\]hit detection error](https://forum.kirupa.com/t/as2-hit-detection-error/311248)

<div class="topic-metadata">

**Author:** [@captainandy14](https://forum.kirupa.com/u/captainandy14)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 5:24am UTC](https://forum.kirupa.com/t/as2-hit-detection-error/311248 "2010-07-01T05:24:51Z")

</div>

hi i have made a game which is complete, please check here http://www.netsparkz.com/fredrikgame/index.html however I am facing a problem. the movieclip which is dropping down and has to be caught by the umbrella ge…

---

## [Moving array items - Best practice?](https://forum.kirupa.com/t/moving-array-items-best-practice/311245)

<div class="topic-metadata">

**Author:** [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 2:31am UTC](https://forum.kirupa.com/t/moving-array-items-best-practice/311245 "2010-07-01T02:31:19Z")

</div>

Hi there, This has been on my mind for a while, that I'm doing this wrong, so I thought I'd ask for some advice.... Lets say I have an array full of items, there are nested arrays within each item. What is the best…

---

## [Convert CSV to Multi Dimension Array](https://forum.kirupa.com/t/convert-csv-to-multi-dimension-array/311243)

<div class="topic-metadata">

**Author:** [@cjneo](https://forum.kirupa.com/u/cjneo)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 1:51am UTC](https://forum.kirupa.com/t/convert-csv-to-multi-dimension-array/311243 "2010-07-01T01:51:20Z")

</div>

PART\_CODE,WH,BIN,Total 101400899611,FG,FG,155 101500899611,FG,FG,156 101600899611,FG,FG,223 1022408000,FG,FG,669 1022408001,FG,FG,427 These are the data inside my CSV files my aim is to convert all into multidime…

---

## [XML Continuous Scroll?](https://forum.kirupa.com/t/xml-continuous-scroll/311242)

<div class="topic-metadata">

**Author:** [@holborner](https://forum.kirupa.com/u/holborner)\
**Replies:** 0\
**Last updated:** [July 1, 2010, 1:42am UTC](https://forum.kirupa.com/t/xml-continuous-scroll/311242 "2010-07-01T01:42:03Z")

</div>

I've started doing an XML gallery and want the thumbnails to do a horizontal continuous scroll. Now that in AS3 I can't use duplicateMovieClip. Is there anyway to make it loop without repeating the nodes in my XML? M…

---

## [Load XMLtext into dynamically created TextFields. How to?](https://forum.kirupa.com/t/load-xmltext-into-dynamically-created-textfields-how-to/311238)

<div class="topic-metadata">

**Author:** [@chris\_f](https://forum.kirupa.com/u/chris_f)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 10:40pm UTC](https://forum.kirupa.com/t/load-xmltext-into-dynamically-created-textfields-how-to/311238 "2010-06-30T22:40:03Z")

</div>

hi there, I have made some changes to kirupa's thumbnail gallery, so instead of loading thumbnails into the scroller, I'd like it to load TextInput from a Node in the XML. what I've come up with so far (simplified): …

---

## [Dynamic image (300DPI) need to shrink without any loss. Is it possible?](https://forum.kirupa.com/t/dynamic-image-300dpi-need-to-shrink-without-any-loss-is-it-possible/311236)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 8:50pm UTC](https://forum.kirupa.com/t/dynamic-image-300dpi-need-to-shrink-without-any-loss-is-it-possible/311236 "2010-06-30T20:50:33Z")

</div>

I have huge images coming in dynamically, and they look really sharp. I want to scale them way down. I have tried creating a Bitmap, doing Bitmap smoothing. I have tried placing it into movieClips and setting the mc qual…

---

## [10 Of the World's Greatest Jobs :D](https://forum.kirupa.com/t/10-of-the-worlds-greatest-jobs-d/311234)

<div class="topic-metadata">

**Author:** [@sugirlxz](https://forum.kirupa.com/u/sugirlxz)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 8:41pm UTC](https://forum.kirupa.com/t/10-of-the-worlds-greatest-jobs-d/311234 "2010-06-30T20:41:59Z")

</div>

Resort waterslide tester, Professional prostitute tester,Bike rider-photographer for Google Maps... http://awessome.com/10-of-the-worlds-greatest-jobs Damn \[smiley\]

---

## [MYSQL query wildcard, LIKE](https://forum.kirupa.com/t/mysql-query-wildcard-like/311230)

<div class="topic-metadata">

**Author:** [@natronp](https://forum.kirupa.com/u/natronp)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 6:56pm UTC](https://forum.kirupa.com/t/mysql-query-wildcard-like/311230 "2010-06-30T18:56:23Z")

</div>

trying to accept a string and check the database for similar but this isn't working: $data = mysql\_query("SELECT \* FROM entries WHERE entryName LIKE '%$title')" or die(mysql\_error()); is this enough or do i need mo…

---

## [Move object continuously](https://forum.kirupa.com/t/move-object-continuously/311227)

<div class="topic-metadata">

**Author:** [@imcabee](https://forum.kirupa.com/u/imcabee)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 5:50pm UTC](https://forum.kirupa.com/t/move-object-continuously/311227 "2010-06-30T17:50:24Z")

</div>

I want to move an object along the x axis continuously after a button is pressed until the object reaches a point. How can I achieve this? Thanks

---

## [Adding special moves input commands ? (as3)](https://forum.kirupa.com/t/adding-special-moves-input-commands-as3/311224)

<div class="topic-metadata">

**Author:** [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 3:50pm UTC](https://forum.kirupa.com/t/adding-special-moves-input-commands-as3/311224 "2010-06-30T15:50:25Z")

</div>

I was wondering how you could accept inputs in AS3 for something as simple as making a character dash forward, to making them throw a fireball. Example: Classic arcade beatem up: tapping forward, forward (right, right …

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

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