# programming

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

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

**Page:** 312

---

## [Application to calculate chances of winning the lottery](https://forum.kirupa.com/t/application-to-calculate-chances-of-winning-the-lottery/320240)

<div class="topic-metadata">

**Author:** [@superkazza](https://forum.kirupa.com/u/superkazza)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 7:01pm UTC](https://forum.kirupa.com/t/application-to-calculate-chances-of-winning-the-lottery/320240 "2011-03-17T19:01:13Z")

</div>

I need to make an application to calculate your chances of winning the lottery i want to use input textfields. The actual application will ask you: Highest choosable number Lowest chooseable number how many numbers …

---

## [Dynamically set DataGrid row colors individually](https://forum.kirupa.com/t/dynamically-set-datagrid-row-colors-individually/320239)

<div class="topic-metadata">

**Author:** [@sufire](https://forum.kirupa.com/u/sufire)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 6:35pm UTC](https://forum.kirupa.com/t/dynamically-set-datagrid-row-colors-individually/320239 "2011-03-17T18:35:59Z")

</div>

I have a datagrid. It is populated dynamically by an XML file. I need to be able to set each row's text color seperately. For example, if my variable "type" is "urgent", it would be a red text color. I've spent almost …

---

## [XML manipulation with Jquery](https://forum.kirupa.com/t/xml-manipulation-with-jquery/320237)

<div class="topic-metadata">

**Author:** [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 3:59pm UTC](https://forum.kirupa.com/t/xml-manipulation-with-jquery/320237 "2011-03-17T15:59:06Z")

</div>

Hi I am starting with Jquery and I need some help understanding how to do some things I could easily do with AS3. For example. I have a XML: var xml = "\<xmlRoot\>\<h1\>this is a tittle 1\</h1\>\<h2\>this is a sub-title\</h…

---

## [Start (reply) the whole swf file?](https://forum.kirupa.com/t/start-reply-the-whole-swf-file/320236)

<div class="topic-metadata">

**Author:** [@skullmonkey](https://forum.kirupa.com/u/skullmonkey)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 3:50pm UTC](https://forum.kirupa.com/t/start-reply-the-whole-swf-file/320236 "2011-03-17T15:50:44Z")

</div>

Hello, I have problem. On a certain frame I want the whole .swf file to reload. Cause I have components that cannot be automatically reloaded I need it to do manualy = reload the whole banner. Is there a command that wil…

---

## [Is there a "Free Select Tool" in AS3, like GIMP](https://forum.kirupa.com/t/is-there-a-free-select-tool-in-as3-like-gimp/320235)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 3:43pm UTC](https://forum.kirupa.com/t/is-there-a-free-select-tool-in-as3-like-gimp/320235 "2011-03-17T15:43:00Z")

</div>

I am wondering if there is code to select a region. Say you have a picture loaded, and now you want to select a certain region of the picture to color. Rather than drawing a box, and then clicking a color to fill it in w…

---

## [Test is something exists and then remove](https://forum.kirupa.com/t/test-is-something-exists-and-then-remove/320233)

<div class="topic-metadata">

**Author:** [@aerahn](https://forum.kirupa.com/u/aerahn)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 2:20pm UTC](https://forum.kirupa.com/t/test-is-something-exists-and-then-remove/320233 "2011-03-17T14:20:18Z")

</div>

This is something I would think would be easy, but here's my dilemma: I am trying to see if a textfield exists on the stage and if it does, I want to remove it. I am trying to do it using the code below, but if the textf…

---

## [Protect AS classes going out on cd](https://forum.kirupa.com/t/protect-as-classes-going-out-on-cd/320232)

<div class="topic-metadata">

**Author:** [@FlashUserNull](https://forum.kirupa.com/u/FlashUserNull)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 2:14pm UTC](https://forum.kirupa.com/t/protect-as-classes-going-out-on-cd/320232 "2011-03-17T14:14:20Z")

</div>

Hello, i've got an AS3 project going out on cd. The project will consist of the SWF, several folder directories containing flvs, and folders containing ActionScript Classes used by the SWF. I'm not so much worried abou…

---

## [\_root.attachMovie](https://forum.kirupa.com/t/-root-attachmovie/320231)

<div class="topic-metadata">

**Author:** [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 1:53pm UTC](https://forum.kirupa.com/t/-root-attachmovie/320231 "2011-03-17T13:53:36Z")

</div>

Hi, I am trying to attach a movie to the swf when a function gets executed. Everything in the function except this is fine, but the movie is not attached. I used this line to attach the movie. \_root.attachMovie(loade…

---

## [Stat submission](https://forum.kirupa.com/t/stat-submission/320230)

<div class="topic-metadata">

**Author:** [@agentflare](https://forum.kirupa.com/u/agentflare)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 1:31pm UTC](https://forum.kirupa.com/t/stat-submission/320230 "2011-03-17T13:31:41Z")

</div>

I need to get a stat submission system for my project. I've got the code for the game done, how do I submit that score to a server or to my email?

---

## [Fighting with File Size... advice?](https://forum.kirupa.com/t/fighting-with-file-size-advice/320229)

<div class="topic-metadata">

**Author:** [@superdmon](https://forum.kirupa.com/u/superdmon)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 1:30pm UTC](https://forum.kirupa.com/t/fighting-with-file-size-advice/320229 "2011-03-17T13:30:58Z")

</div>

Long time reader of the site, awesome stuff here so I figured this would be the place for some quick advice. I'm building a rich media banner which expands to play a streaming FLV. I have everything working, even used…

---

## [Passing Variable to ActionScript](https://forum.kirupa.com/t/passing-variable-to-actionscript/320219)

<div class="topic-metadata">

**Author:** [@renton79](https://forum.kirupa.com/u/renton79)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 3:02am UTC](https://forum.kirupa.com/t/passing-variable-to-actionscript/320219 "2011-03-17T03:02:40Z")

</div>

I have been looking for this couple hours and still can't find the answer. I need to pass variable BUT only through URL as I need to use it as a target link in html (so I can't use \<object\> flashvars), look below. \<a h…

---

## [How to paste each png in sequence in a movie clip](https://forum.kirupa.com/t/how-to-paste-each-png-in-sequence-in-a-movie-clip/320218)

<div class="topic-metadata">

**Author:** [@gia\_g21](https://forum.kirupa.com/u/gia_g21)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 2:48am UTC](https://forum.kirupa.com/t/how-to-paste-each-png-in-sequence-in-a-movie-clip/320218 "2011-03-17T02:48:31Z")

</div>

Hello I have exported a movie made in premier pro into a png sequence. Now I'm trying to put it in flash but when I import it, there doesn't seem to be a way for each png to occupy each key frame. Do I have to manually…

---

## [XML Handling Question](https://forum.kirupa.com/t/xml-handling-question/320217)

<div class="topic-metadata">

**Author:** [@flashdaddy](https://forum.kirupa.com/u/flashdaddy)\
**Replies:** 0\
**Last updated:** [March 17, 2011, 1:22am UTC](https://forum.kirupa.com/t/xml-handling-question/320217 "2011-03-17T01:22:47Z")

</div>

Hey All, I've kind of stumped myself on something. it's been a while since i've dealt with XML. So here is what I'm trying to do. I have three movieclips at the top of my page which contain text fields. When the sw…

---

## [Controlling the size of an uploaded art file to display on movie](https://forum.kirupa.com/t/controlling-the-size-of-an-uploaded-art-file-to-display-on-movie/320215)

<div class="topic-metadata">

**Author:** [@O\_Tamandua](https://forum.kirupa.com/u/O_Tamandua)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 9:28pm UTC](https://forum.kirupa.com/t/controlling-the-size-of-an-uploaded-art-file-to-display-on-movie/320215 "2011-03-16T21:28:11Z")

</div>

SOLVED! God bless you, blackbody, and thanks! Hello again, all, I’ve got the following file reference listener on a file to upload art for display on a flash movie. However, I want this to display only at a certain si…

---

## [Newb: Simple Instatiate Question](https://forum.kirupa.com/t/newb-simple-instatiate-question/320213)

<div class="topic-metadata">

**Author:** [@Whittler](https://forum.kirupa.com/u/Whittler)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 8:42pm UTC](https://forum.kirupa.com/t/newb-simple-instatiate-question/320213 "2011-03-16T20:42:44Z")

</div>

\[image\] Simple Instatiate Question Regarding these declarations: ActionScript Code: \[LEFT\]\[COLOR=#993300\]var\[…

---

## [ComboBox formatting not working for me](https://forum.kirupa.com/t/combobox-formatting-not-working-for-me/320210)

<div class="topic-metadata">

**Author:** [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 8:18pm UTC](https://forum.kirupa.com/t/combobox-formatting-not-working-for-me/320210 "2011-03-16T20:18:06Z")

</div>

Hey folks - I've done a lot of searching on this and everyone who changes font size/ font family in AS3 uses a TextFormat object and the following code: myComboBox.textField.setStyle("textFormat", myFormatBlack) That…

---

## [Probleme with Bitmapdata.draw() on masked Objects](https://forum.kirupa.com/t/probleme-with-bitmapdata-draw-on-masked-objects/320208)

<div class="topic-metadata">

**Author:** [@G115](https://forum.kirupa.com/u/G115)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 7:29pm UTC](https://forum.kirupa.com/t/probleme-with-bitmapdata-draw-on-masked-objects/320208 "2011-03-16T19:29:04Z")

</div>

Hello everyone, After several days of unsuccesful research, I hope someone here can help me (or show me where I'm wrong) on my issue. I'm trying to create a simple unregular shape crop application where a user can hand…

---

## [Help Something breaks my loop](https://forum.kirupa.com/t/help-something-breaks-my-loop/320207)

<div class="topic-metadata">

**Author:** [@jaxz](https://forum.kirupa.com/u/jaxz)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 7:15pm UTC](https://forum.kirupa.com/t/help-something-breaks-my-loop/320207 "2011-03-16T19:15:58Z")

</div>

removed question

---

## [Random Movement w/ Collision](https://forum.kirupa.com/t/random-movement-w-collision/320206)

<div class="topic-metadata">

**Author:** [@tcabaco](https://forum.kirupa.com/u/tcabaco)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 6:23pm UTC](https://forum.kirupa.com/t/random-movement-w-collision/320206 "2011-03-16T18:23:35Z")

</div>

Hi everyone, A while ago I created this animation in Flash: http://dl.dropbox.com/u/19109081/timeline\_animation.mov Thing is it's a timeline animation and my boss now wants it scripted, so he can change the differe…

---

## [Update Native AS3 Classes?](https://forum.kirupa.com/t/update-native-as3-classes/320204)

<div class="topic-metadata">

**Author:** [@Flashticles](https://forum.kirupa.com/u/Flashticles)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 5:47pm UTC](https://forum.kirupa.com/t/update-native-as3-classes/320204 "2011-03-16T17:47:53Z")

</div>

Is there any way to update the native AS3 classes short of purchasing a newer version of Flash? A native class has some additional functionality I'd like to use but do not have access to it currently (I am using CS4). …

---

## [IE ignoring height of div if content is bigger](https://forum.kirupa.com/t/ie-ignoring-height-of-div-if-content-is-bigger/320203)

<div class="topic-metadata">

**Author:** [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 5:22pm UTC](https://forum.kirupa.com/t/ie-ignoring-height-of-div-if-content-is-bigger/320203 "2011-03-16T17:22:20Z")

</div>

I'm trying to achieve the effect in the attached image. Which I've managed to do in all browsers except IE 6/7 without any extra markup: \<div id="content"\> \<p class="firstPara"\>Para1\</p\> \<p\>Para2\</p\> \<p\>P…

---

## [Help me get my first 3rd-party component working?](https://forum.kirupa.com/t/help-me-get-my-first-3rd-party-component-working/320202)

<div class="topic-metadata">

**Author:** [@jasonfahy](https://forum.kirupa.com/u/jasonfahy)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 5:01pm UTC](https://forum.kirupa.com/t/help-me-get-my-first-3rd-party-component-working/320202 "2011-03-16T17:01:55Z")

</div>

Well, I feel like I’m walking into a brain surgery symposium to get help opening a box of Band-Aids…I’ve tried pretty hard to find tutorials about this but no luck. Maybe I’m the densest person who’s ever dared to start…

---

## [Write in text](https://forum.kirupa.com/t/write-in-text/320201)

<div class="topic-metadata">

**Author:** [@Flawsh](https://forum.kirupa.com/u/Flawsh)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 4:11pm UTC](https://forum.kirupa.com/t/write-in-text/320201 "2011-03-16T16:11:34Z")

</div>

hi guys,i have a game that im doing,and i want it to take the text that is on the game's folder and read it,and write over it,to load stuff from it.. so how can i do it? \*basiclly loading the text is something i succsee…

---

## [Animated rollon/off buttons within movieclips?](https://forum.kirupa.com/t/animated-rollon-off-buttons-within-movieclips/320199)

<div class="topic-metadata">

**Author:** [@dellaclearing](https://forum.kirupa.com/u/dellaclearing)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 3:33pm UTC](https://forum.kirupa.com/t/animated-rollon-off-buttons-within-movieclips/320199 "2011-03-16T15:33:00Z")

</div>

Hello everyone I'm having a problem getting my animated rollOn/Off buttons (movieclips) to play when they are nested in another movieclip's timeline. I'm trying to build a drop down menu. On the main timeline I have …

---

## [NAN in Timer](https://forum.kirupa.com/t/nan-in-timer/320197)

<div class="topic-metadata">

**Author:** [@ohya](https://forum.kirupa.com/u/ohya)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 2:23pm UTC](https://forum.kirupa.com/t/nan-in-timer/320197 "2011-03-16T14:23:06Z")

</div>

I want to create a timer but got NAN in text field. Hoping help from expert. Thanks beforehand.

---

## [Loader error when loading local, working with weburl](https://forum.kirupa.com/t/loader-error-when-loading-local-working-with-weburl/320196)

<div class="topic-metadata">

**Author:** [@htek](https://forum.kirupa.com/u/htek)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 1:38pm UTC](https://forum.kirupa.com/t/loader-error-when-loading-local-working-with-weburl/320196 "2011-03-16T13:38:55Z")

</div>

Hello I have a problem that I don't know how to solve. I'm trying to load an image from the same folder as my .swf. And it throws me an 2036 error. The image is there but doesn't load. But if I change the urlrequest…

---

## [Suggestions for a scenario framework](https://forum.kirupa.com/t/suggestions-for-a-scenario-framework/320195)

<div class="topic-metadata">

**Author:** [@m2244](https://forum.kirupa.com/u/m2244)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 1:23pm UTC](https://forum.kirupa.com/t/suggestions-for-a-scenario-framework/320195 "2011-03-16T13:23:18Z")

</div>

Hello, I need to make an e-learning scenerio application and I am looking for a little guidance. Like most scenario gadgets you see out there this needs to have buttons, a couple of text areas, images, etc. What I …

---

## [Deleting a movie clip](https://forum.kirupa.com/t/deleting-a-movie-clip/320194)

<div class="topic-metadata">

**Author:** [@patrick8](https://forum.kirupa.com/u/patrick8)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 11:29am UTC](https://forum.kirupa.com/t/deleting-a-movie-clip/320194 "2011-03-16T11:29:21Z")

</div>

Okay so first off a little background on what I'm trying to do: Only been working with flash/as3 for about 2 months now so I'm still a little green but in a nutshell, I make interactive Flash presentations, aimed at ed…

---

## [Embed SWF in Facbook Tab](https://forum.kirupa.com/t/embed-swf-in-facbook-tab/320192)

<div class="topic-metadata">

**Author:** [@svimp](https://forum.kirupa.com/u/svimp)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 9:33am UTC](https://forum.kirupa.com/t/embed-swf-in-facbook-tab/320192 "2011-03-16T09:33:07Z")

</div>

Can someone tell me the simpliest way to embed a swf in a facebook page? Thanks.

---

## [Drag and Drop bitmap](https://forum.kirupa.com/t/drag-and-drop-bitmap/320190)

<div class="topic-metadata">

**Author:** [@rendezvousiew](https://forum.kirupa.com/u/rendezvousiew)\
**Replies:** 0\
**Last updated:** [March 16, 2011, 8:41am UTC](https://forum.kirupa.com/t/drag-and-drop-bitmap/320190 "2011-03-16T08:41:31Z")

</div>

I need some help, I am trying to drag and drop the bitmap by using getChildAt() but it doesnt work,

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

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