# programming

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

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

**Page:** 358

---

## [Point at Mouse Math](https://forum.kirupa.com/t/point-at-mouse-math/317550)

<div class="topic-metadata">

**Author:** [@Hoshi](https://forum.kirupa.com/u/Hoshi)\
**Replies:** 0\
**Last updated:** [December 24, 2010, 6:42am UTC](https://forum.kirupa.com/t/point-at-mouse-math/317550 "2010-12-24T06:42:24Z")

</div>

basically I'm trying to make a movie clip that rotates to point at the mouse. I got the parts of the script to work where the clip rotates when the mouse moves, the problem is the math that goes into finding the angle of…

---

## [Flash in Flex?](https://forum.kirupa.com/t/flash-in-flex/317549)

<div class="topic-metadata">

**Author:** [@zerdang](https://forum.kirupa.com/u/zerdang)\
**Replies:** 0\
**Last updated:** [December 24, 2010, 6:19am UTC](https://forum.kirupa.com/t/flash-in-flex/317549 "2010-12-24T06:19:11Z")

</div>

So I recently got Flash Builder 4 for my Mac and started to import some recent projects from my old hard drive. I finished and then proceeded to test the files in FB4. My only problem was that FB4 kept giving me this e…

---

## [Textfield gets in the way of clicking event](https://forum.kirupa.com/t/textfield-gets-in-the-way-of-clicking-event/317548)

<div class="topic-metadata">

**Author:** [@OMG](https://forum.kirupa.com/u/OMG)\
**Replies:** 0\
**Last updated:** [December 24, 2010, 6:01am UTC](https://forum.kirupa.com/t/textfield-gets-in-the-way-of-clicking-event/317548 "2010-12-24T06:01:36Z")

</div>

Hi I have a mc that holds a rectangle and a dynamic textfield on it. Then I set some mouse events to drag the rectangle, but the textfield gets in the way and returns the error: property startDrag not found on flash.te…

---

## [Scratching head over custom slider](https://forum.kirupa.com/t/scratching-head-over-custom-slider/317547)

<div class="topic-metadata">

**Author:** [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Replies:** 0\
**Last updated:** [December 24, 2010, 1:47am UTC](https://forum.kirupa.com/t/scratching-head-over-custom-slider/317547 "2010-12-24T01:47:11Z")

</div>

I'm looking for good tutorials on how to construct custom sliders in AS3. Here's a link to an older (but constantly updated) AS2 interactive that I'm in the process of rewriting in AS3. I'm having a bit of trouble duplic…

---

## [Formating editable text](https://forum.kirupa.com/t/formating-editable-text/317545)

<div class="topic-metadata">

**Author:** [@dandd](https://forum.kirupa.com/u/dandd)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 10:32pm UTC](https://forum.kirupa.com/t/formating-editable-text/317545 "2010-12-23T22:32:15Z")

</div>

I created an multiline TLF editable text field in my fla file. How can I format different alignments and font size for different lines in the same text field? Thanks for any help in advance.

---

## [addChild inheritance](https://forum.kirupa.com/t/addchild-inheritance/317544)

<div class="topic-metadata">

**Author:** [@orgio](https://forum.kirupa.com/u/orgio)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 9:47pm UTC](https://forum.kirupa.com/t/addchild-inheritance/317544 "2010-12-23T21:47:53Z")

</div>

hi there. i have this: object1.addChild(object2); object1.alpha = 0,5; How can object2 preserve it's initial alpha? thanks in advance

---

## [Inserting A Button Into A TextField](https://forum.kirupa.com/t/inserting-a-button-into-a-textfield/317541)

<div class="topic-metadata">

**Author:** [@FlashAj325](https://forum.kirupa.com/u/FlashAj325)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 9:11pm UTC](https://forum.kirupa.com/t/inserting-a-button-into-a-textfield/317541 "2010-12-23T21:11:53Z")

</div>

\[FONT=Courier New\]Hello, I am new here, and I am a Flash illiterate trying to learn AS3. I barely get time to work with it and I only got it about four months ago. I have got really far since then, but I still have some…

---

## [Loading Png dinamicaly](https://forum.kirupa.com/t/loading-png-dinamicaly/317539)

<div class="topic-metadata">

**Author:** [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 8:22pm UTC](https://forum.kirupa.com/t/loading-png-dinamicaly/317539 "2010-12-23T20:22:55Z")

</div>

Hello I have to load .png imagens dinamicaly, but can´t make it work. Searched the web and the forum and found nothing that helped me. When I change the image to a .jpg, it works fine. There´s no error message, ju…

---

## [Passing multiple checkbox results to PHP in on varible](https://forum.kirupa.com/t/passing-multiple-checkbox-results-to-php-in-on-varible/317538)

<div class="topic-metadata">

**Author:** [@damonlee3](https://forum.kirupa.com/u/damonlee3)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 7:37pm UTC](https://forum.kirupa.com/t/passing-multiple-checkbox-results-to-php-in-on-varible/317538 "2010-12-23T19:37:33Z")

</div>

Ok, I figured out how to give one variable multiple values dynamically. But still having trouble getting PHP to recognize all the values in the array. Giving multiple values to a variable was pretty easy. Just create…

---

## [How to create a random timeline?](https://forum.kirupa.com/t/how-to-create-a-random-timeline/317534)

<div class="topic-metadata">

**Author:** [@hans\_cellc](https://forum.kirupa.com/u/hans_cellc)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 5:28pm UTC](https://forum.kirupa.com/t/how-to-create-a-random-timeline/317534 "2010-12-23T17:28:25Z")

</div>

I have a simple multiple question quiz with 100 questions. I want the questions to be randomly asked, without repea ting a questions as the end works on a scoring system out of the 100 so it needs to ask all the questi…

---

## [Flash 9, CS3. Sound object affecting global sounds](https://forum.kirupa.com/t/flash-9-cs3-sound-object-affecting-global-sounds/317533)

<div class="topic-metadata">

**Author:** [@jshock](https://forum.kirupa.com/u/jshock)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 4:52pm UTC](https://forum.kirupa.com/t/flash-9-cs3-sound-object-affecting-global-sounds/317533 "2010-12-23T16:52:29Z")

</div>

I have a sound object that I want to control independently of other sounds in my movie. I created a volume button, but it is affecting all sound in the movie. Am I doing something wrong? Here is the volume button script.…

---

## [Preloader doesn't start at zero](https://forum.kirupa.com/t/preloader-doesnt-start-at-zero/317532)

<div class="topic-metadata">

**Author:** [@na\_il](https://forum.kirupa.com/u/na_il)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 4:43pm UTC](https://forum.kirupa.com/t/preloader-doesnt-start-at-zero/317532 "2010-12-23T16:43:28Z")

</div>

I know dozen of ppl have probably have already posted this problem: My preloader doesn't start at zero, but rather it starts at 26. Before it reaches 26 it is a blank screen and i want to see the preloader when it sta…

---

## [Tex Field issues](https://forum.kirupa.com/t/tex-field-issues/317531)

<div class="topic-metadata">

**Author:** [@dandd](https://forum.kirupa.com/u/dandd)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 4:41pm UTC](https://forum.kirupa.com/t/tex-field-issues/317531 "2010-12-23T16:41:22Z")

</div>

I am trying to build a specialized word processor using Flash CS5 and I'm having some problems because I am new to this. I draw an editable TLF textfield instance on the fla file and name it "input". Then on the actionsc…

---

## [Solid background color with a transparent PNG background Image](https://forum.kirupa.com/t/solid-background-color-with-a-transparent-png-background-image/317530)

<div class="topic-metadata">

**Author:** [@johnyct9760](https://forum.kirupa.com/u/johnyct9760)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 3:37pm UTC](https://forum.kirupa.com/t/solid-background-color-with-a-transparent-png-background-image/317530 "2010-12-23T15:37:10Z")

</div>

Short version of the question: Does any one know how to apply a solid background color with a transparent PNG background Image and NOT have the solid color over-ride the transparency of the PNG. Link to the site in que…

---

## [Graphics Quality & performance in Flash](https://forum.kirupa.com/t/graphics-quality-performance-in-flash/317523)

<div class="topic-metadata">

**Author:** [@revo999](https://forum.kirupa.com/u/revo999)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 11:34am UTC](https://forum.kirupa.com/t/graphics-quality-performance-in-flash/317523 "2010-12-23T11:34:39Z")

</div>

Hi I am trying to figure out the "Best Quality & Best Performance (easy to load )" Graphics we All know VECTORS are considered best , but sometimes it makes too heavy \*\*Please check the link and tell what type of Im…

---

## [Flex / Pure AS3: Components and drawing](https://forum.kirupa.com/t/flex-pure-as3-components-and-drawing/317522)

<div class="topic-metadata">

**Author:** [@Nathan1](https://forum.kirupa.com/u/Nathan1)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 11:13am UTC](https://forum.kirupa.com/t/flex-pure-as3-components-and-drawing/317522 "2010-12-23T11:13:08Z")

</div>

Hi, I have mainly been developing pure AS3 application and have recently started to explore Flex and I was wondering if I could get a few pointers on some elements: - in terms of performance, is there a difference betw…

---

## [Adobe AIR: How to check if the application window is minimized](https://forum.kirupa.com/t/adobe-air-how-to-check-if-the-application-window-is-minimized/317521)

<div class="topic-metadata">

**Author:** [@abrandao](https://forum.kirupa.com/u/abrandao)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 10:55am UTC](https://forum.kirupa.com/t/adobe-air-how-to-check-if-the-application-window-is-minimized/317521 "2010-12-23T10:55:06Z")

</div>

Hi folks Anyone knows how to check if the application window is minimized? My app is minimizing to the system tray. I need to launch a notification when an event ocurrs, but only if the window is minimized. Also, …

---

## [Rotation is always off?](https://forum.kirupa.com/t/rotation-is-always-off/317515)

<div class="topic-metadata">

**Author:** [@newsomjk](https://forum.kirupa.com/u/newsomjk)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 6:18am UTC](https://forum.kirupa.com/t/rotation-is-always-off/317515 "2010-12-23T06:18:40Z")

</div>

So I've found numerous tutorials on rotating to face the mouse, and none of the rotation equations work properly for me. I made my own that worked but then it just over complicated things such as bullet direction and …

---

## [Random Number inside a Loop](https://forum.kirupa.com/t/random-number-inside-a-loop/317513)

<div class="topic-metadata">

**Author:** [@jfx1026](https://forum.kirupa.com/u/jfx1026)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 5:17am UTC](https://forum.kirupa.com/t/random-number-inside-a-loop/317513 "2010-12-23T05:17:47Z")

</div>

I'm trying to generate 5 random numbers within a range. I'm saving these inside an array through the use of a for loop. for ( var j:int = 0; j \< (questions); j++) { var randomNum:Number = Math.floor(Math.random()\*…

---

## [New to programming, a few basic questions:](https://forum.kirupa.com/t/new-to-programming-a-few-basic-questions/317512)

<div class="topic-metadata">

**Author:** [@CloaknDagger](https://forum.kirupa.com/u/CloaknDagger)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 4:49am UTC](https://forum.kirupa.com/t/new-to-programming-a-few-basic-questions/317512 "2010-12-23T04:49:52Z")

</div>

Hello forums. I've delved head first into Flash animation. I have no experience programming, but I'm willing to put the time and effort into learning, i just need to be pointed in the right direction. Questions: 1) …

---

## [Published to Match Movie Size in HTML options, no ScrollBar](https://forum.kirupa.com/t/published-to-match-movie-size-in-html-options-no-scrollbar/317511)

<div class="topic-metadata">

**Author:** [@jany](https://forum.kirupa.com/u/jany)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 1:46am UTC](https://forum.kirupa.com/t/published-to-match-movie-size-in-html-options-no-scrollbar/317511 "2010-12-23T01:46:57Z")

</div>

Hello everyone :fab: So I published my Flash Movie using the HTML settings of Match Movie Size, rather than Fit To Screen (fit to percent, I believe it is) under the publish settings options. This way it works great,…

---

## [Simple AS3 var scope question](https://forum.kirupa.com/t/simple-as3-var-scope-question/317508)

<div class="topic-metadata">

**Author:** [@jfx1026](https://forum.kirupa.com/u/jfx1026)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 1:02am UTC](https://forum.kirupa.com/t/simple-as3-var-scope-question/317508 "2010-12-23T01:02:17Z")

</div>

So, I'm just starting a bigger AS3 project. I'm still learning AS3, transitioning from AS2 and I keep getting caught up on dumb stuff. I'm creating two variables to store a maximum and minimum value for a random number…

---

## [Very basic newb question,](https://forum.kirupa.com/t/very-basic-newb-question/317507)

<div class="topic-metadata">

**Author:** [@SunfireTYR](https://forum.kirupa.com/u/SunfireTYR)\
**Replies:** 0\
**Last updated:** [December 23, 2010, 12:26am UTC](https://forum.kirupa.com/t/very-basic-newb-question/317507 "2010-12-23T00:26:54Z")

</div>

Hello guys, I have a simple question I would like to ask. I am trying to write and "if / else" statement. I want to take the user to a certain frame "prep" if the average of their three scores are below 90. However, whe…

---

## [bitmapData - setPixels / setVector difficulties](https://forum.kirupa.com/t/bitmapdata-setpixels-setvector-difficulties/317505)

<div class="topic-metadata">

**Author:** [@Hzle](https://forum.kirupa.com/u/Hzle)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 11:38pm UTC](https://forum.kirupa.com/t/bitmapdata-setpixels-setvector-difficulties/317505 "2010-12-22T23:38:35Z")

</div>

Hi folks - my first question. I'm trying to get my head round bitmapData and everything you can do with it. I'm using \*\*pure AS3 \*\*at the moment I've been playing with some Perlin noise examples - worked ok - and tried…

---

## [Problem with Drop Down menu button events inside Movie Clips](https://forum.kirupa.com/t/problem-with-drop-down-menu-button-events-inside-movie-clips/317502)

<div class="topic-metadata">

**Author:** [@BottleShock](https://forum.kirupa.com/u/BottleShock)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 9:05pm UTC](https://forum.kirupa.com/t/problem-with-drop-down-menu-button-events-inside-movie-clips/317502 "2010-12-22T21:05:57Z")

</div>

Hope someone can help me with this one, cause it's really annoying and I've been searching and testing for three days now :cry3: Basically, I have a drop down menu consisting of buttons inside one movie clip, inside an…

---

## [Choppy filter / bitmap animations?](https://forum.kirupa.com/t/choppy-filter-bitmap-animations/317499)

<div class="topic-metadata">

**Author:** [@watcher](https://forum.kirupa.com/u/watcher)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 7:42pm UTC](https://forum.kirupa.com/t/choppy-filter-bitmap-animations/317499 "2010-12-22T19:42:22Z")

</div>

Hi All, ... most of you folks probably know what im gonna ask ... \[short\] when you animate text or display object with filter applied to it, especcially for long duration over small distances, the animation is not PE…

---

## [Flash player crash after closing SWF](https://forum.kirupa.com/t/flash-player-crash-after-closing-swf/317498)

<div class="topic-metadata">

**Author:** [@LeonardLew](https://forum.kirupa.com/u/LeonardLew)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 7:01pm UTC](https://forum.kirupa.com/t/flash-player-crash-after-closing-swf/317498 "2010-12-22T19:01:51Z")

</div>

Hey there, so I was having this weird phenomenon in a rather complex flash app, that even though the app worked fine and didn't throw any errors, it just crashed the flashplayer upon closing the SWF... I first thought th…

---

## [Iteration statement "for each..in" as part of a constructor?](https://forum.kirupa.com/t/iteration-statement-for-each-in-as-part-of-a-constructor/317496)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 4:44pm UTC](https://forum.kirupa.com/t/iteration-statement-for-each-in-as-part-of-a-constructor/317496 "2010-12-22T16:44:49Z")

</div>

I was just thinking... is there a way to look at each variable passed into the paramaters of a function. For example, taken the given code. package { import flash.display.MovieClip; import flash.display.Shap…

---

## [Trying something with addEventListener](https://forum.kirupa.com/t/trying-something-with-addeventlistener/317495)

<div class="topic-metadata">

**Author:** [@itbkris](https://forum.kirupa.com/u/itbkris)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 4:01pm UTC](https://forum.kirupa.com/t/trying-something-with-addeventlistener/317495 "2010-12-22T16:01:18Z")

</div>

I have been reading as3 documentation and the type of listener is supposedly a string value. So instead of creating a button the common way: button1.addEventListener(MouseEvent.CLICK, clickaction); I am trying to do…

---

## [Generating sequence number (for filename)](https://forum.kirupa.com/t/generating-sequence-number-for-filename/317493)

<div class="topic-metadata">

**Author:** [@Butters](https://forum.kirupa.com/u/Butters)\
**Replies:** 0\
**Last updated:** [December 22, 2010, 1:51pm UTC](https://forum.kirupa.com/t/generating-sequence-number-for-filename/317493 "2010-12-22T13:51:36Z")

</div>

Got another issue... I've made a form that allows users to upload images to the webserver and then stores the URL in a database to be recovered later (to show images on a page). The code i'm using generates a random…

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

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