# programming

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

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

**Page:** 673

---

## [Quick loop random question](https://forum.kirupa.com/t/quick-loop-random-question/297684)

<div class="topic-metadata">

**Author:** [@youwh](https://forum.kirupa.com/u/youwh)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 4:06am UTC](https://forum.kirupa.com/t/quick-loop-random-question/297684 "2009-10-07T04:06:00Z")

</div>

It appears the same rotation for every brach. Is this not the correct way to randomize a loop? for (var i:Number=0; i\<branchAmount; i++) { branch.graphics.lineStyle(1, 0x333333,1); bra…

---

## [Dispatching an Event in the Child and listen for in the Parent](https://forum.kirupa.com/t/dispatching-an-event-in-the-child-and-listen-for-in-the-parent/297683)

<div class="topic-metadata">

**Author:** [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 3:51am UTC](https://forum.kirupa.com/t/dispatching-an-event-in-the-child-and-listen-for-in-the-parent/297683 "2009-10-07T03:51:33Z")

</div>

Hello everybody I have a dialogBox with 2 buttons - ok\_btn and cancel\_btn. The code is in a Class - testDialog. There are 2 issues:\[LIST=1\] \[\*\]When any of the 2 buttons clicked, they dismiss the dialogBox without se…

---

## [CS4 - Library keyboard shortcuts](https://forum.kirupa.com/t/cs4-library-keyboard-shortcuts/297677)

<div class="topic-metadata">

**Author:** [@Whittaker007](https://forum.kirupa.com/u/Whittaker007)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 1:54am UTC](https://forum.kirupa.com/t/cs4-library-keyboard-shortcuts/297677 "2009-10-07T01:54:51Z")

</div>

Hi guys, I'm assuming the answer to my question is "no" but figure it's worth asking just in case. I'm mostly an AS3 coder, but I need to work on library assets quite often to set classnames on assets so they can be in…

---

## [Public Functions (for all MC's)](https://forum.kirupa.com/t/public-functions-for-all-mcs/297676)

<div class="topic-metadata">

**Author:** [@Nick23](https://forum.kirupa.com/u/Nick23)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 1:37am UTC](https://forum.kirupa.com/t/public-functions-for-all-mcs/297676 "2009-10-07T01:37:53Z")

</div>

Hello, I am trying to make a function such that every instance, or Movie Clip, can use the function as well. How would I do this? Thanks!

---

## [Working with mp4 and m4v file](https://forum.kirupa.com/t/working-with-mp4-and-m4v-file/297675)

<div class="topic-metadata">

**Author:** [@drdave](https://forum.kirupa.com/u/drdave)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 1:24am UTC](https://forum.kirupa.com/t/working-with-mp4-and-m4v-file/297675 "2009-10-07T01:24:23Z")

</div>

I am working with .m4v file that came from a Mac computer. I then renamed it .mp4 and was able to import it into Flash CS4. Note that this file was imported into Flash CS4 on Windows XP with Service Pack 2. I then…

---

## [If statement using \_visible](https://forum.kirupa.com/t/if-statement-using--visible/297673)

<div class="topic-metadata">

**Author:** [@zonferno](https://forum.kirupa.com/u/zonferno)\
**Replies:** 0\
**Last updated:** [October 7, 2009, 12:44am UTC](https://forum.kirupa.com/t/if-statement-using--visible/297673 "2009-10-07T00:44:15Z")

</div>

Hey, I want to make the timeline go to the next frame (ie gotoAndStop) only if two button instances are invisible. For the buttons I have scripted an on(release) to make them invisible, but I don't know how to use the if…

---

## [Waving shape effect](https://forum.kirupa.com/t/waving-shape-effect/297672)

<div class="topic-metadata">

**Author:** [@cot45](https://forum.kirupa.com/u/cot45)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 11:29pm UTC](https://forum.kirupa.com/t/waving-shape-effect/297672 "2009-10-06T23:29:53Z")

</div>

Hi, I want to make AS 3 effect, that looks like sine wave goes through circle or another closed shape. This morphing shape I want to use as mask lately. Shape morphing should look something like this image \[image\] I know…

---

## [External code doin' nuthin](https://forum.kirupa.com/t/external-code-doin-nuthin/297671)

<div class="topic-metadata">

**Author:** [@oluc](https://forum.kirupa.com/u/oluc)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 11:11pm UTC](https://forum.kirupa.com/t/external-code-doin-nuthin/297671 "2009-10-06T23:11:12Z")

</div>

I need some major help! I am trying to complete this thing today and I am sooo close! I had a bunch of internal code that worked all fine to make an image gallery with motion and forward and back buttons etc. I turn it i…

---

## [Preloader starts at 40%](https://forum.kirupa.com/t/preloader-starts-at-40/297669)

<div class="topic-metadata">

**Author:** [@cookingkym](https://forum.kirupa.com/u/cookingkym)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 10:30pm UTC](https://forum.kirupa.com/t/preloader-starts-at-40/297669 "2009-10-06T22:30:02Z")

</div>

HI. this web site always seems to start with a blank screen and the preloader starts at 40%. I nothing exported to the first frame! www.zupperia.no Any ideas? Thanks for your time. k

---

## [CS4/AS3 Video Help!](https://forum.kirupa.com/t/cs4-as3-video-help/297667)

<div class="topic-metadata">

**Author:** [@Jerm7](https://forum.kirupa.com/u/Jerm7)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 9:38pm UTC](https://forum.kirupa.com/t/cs4-as3-video-help/297667 "2009-10-06T21:38:17Z")

</div>

OK so I have been pulling my hair out for days now trying to figure this out so maybe some of you Flash friends out there can give me a hand. I am creating a portfolio that has 4 buttons inside the portfolio. These but…

---

## [Conquering the World \[Repost\]](https://forum.kirupa.com/t/conquering-the-world-repost/297665)

<div class="topic-metadata">

**Author:** [@websmythe](https://forum.kirupa.com/u/websmythe)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 9:03pm UTC](https://forum.kirupa.com/t/conquering-the-world-repost/297665 "2009-10-06T21:03:41Z")

</div>

Repost from the Random forum... http://www.kirupa.com/forum/showthread.php?p=2506633#post2506633 K. So I have Flash 8, and had this idea of building a world, and am wondering what Flash platform I could/should build it…

---

## [How to pass a variable to another frame or function?](https://forum.kirupa.com/t/how-to-pass-a-variable-to-another-frame-or-function/297664)

<div class="topic-metadata">

**Author:** [@jac4b](https://forum.kirupa.com/u/jac4b)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:56pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-to-another-frame-or-function/297664 "2009-10-06T20:56:23Z")

</div>

Hi, I'm trying to pass a variable to another frame but it's not working, can anyone please explain how to do this. (I'm trying to build a video player--I have buttons for various videos on one frame and the player on …

---

## [Mail script closes flash and jumps to php page?](https://forum.kirupa.com/t/mail-script-closes-flash-and-jumps-to-php-page/297663)

<div class="topic-metadata">

**Author:** [@nastycut](https://forum.kirupa.com/u/nastycut)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:55pm UTC](https://forum.kirupa.com/t/mail-script-closes-flash-and-jumps-to-php-page/297663 "2009-10-06T20:55:01Z")

</div>

I am confused... ?? I've done several Flash mail scripts without problems. Now, my latest script works fine and data is sent but as soon as I hit the SEND -button browser jumps from (www.mydomain.com) to (www.mydomain.co…

---

## [My code works, it's just ugly. Help?](https://forum.kirupa.com/t/my-code-works-its-just-ugly-help/297662)

<div class="topic-metadata">

**Author:** [@vivacuica](https://forum.kirupa.com/u/vivacuica)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:47pm UTC](https://forum.kirupa.com/t/my-code-works-its-just-ugly-help/297662 "2009-10-06T20:47:27Z")

</div>

Hey all-- Anyone want to help me be a better coder? After some math operations, I have 5 different variables, all with different values. Their value depends on what a user inputs, so it's different each time. Depending…

---

## [Prevent automatic scaling for just one DisplayObject](https://forum.kirupa.com/t/prevent-automatic-scaling-for-just-one-displayobject/297661)

<div class="topic-metadata">

**Author:** [@zoimt](https://forum.kirupa.com/u/zoimt)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:30pm UTC](https://forum.kirupa.com/t/prevent-automatic-scaling-for-just-one-displayobject/297661 "2009-10-06T20:30:09Z")

</div>

I am truely sorry for the post I wrote here before I edited it to this. The question was asked too early and I spent not enough time thinking about it for myself. It just overcame me to post right the time I encountered …

---

## [RemoteObject in Flash CS4](https://forum.kirupa.com/t/remoteobject-in-flash-cs4/297660)

<div class="topic-metadata">

**Author:** [@kkos](https://forum.kirupa.com/u/kkos)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 7:57pm UTC](https://forum.kirupa.com/t/remoteobject-in-flash-cs4/297660 "2009-10-06T19:57:32Z")

</div>

I had a hard time to get this thing working, and still no success. Using RemoteObject in Flex is no problem. For instance, in Flex (without using a services-config.xml) something like this: myRemote.endpoint = "http:…

---

## [Hiding cursor on full screen video](https://forum.kirupa.com/t/hiding-cursor-on-full-screen-video/297657)

<div class="topic-metadata">

**Author:** [@East\_High](https://forum.kirupa.com/u/East_High)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 6:26pm UTC](https://forum.kirupa.com/t/hiding-cursor-on-full-screen-video/297657 "2009-10-06T18:26:21Z")

</div>

I've seen this on other video site and would like to apply it to the video player I made. I want the cursor to fade out when the video is popped into full screen and conversely fade back in if the user moves the mouse. …

---

## [Render Event... Frame Change Detection](https://forum.kirupa.com/t/render-event-frame-change-detection/297651)

<div class="topic-metadata">

**Author:** [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 3:28pm UTC](https://forum.kirupa.com/t/render-event-frame-change-detection/297651 "2009-10-06T15:28:47Z")

</div>

I need to detect when a frame has changed to properly call the Render Event Is there a more memory efficient way to detect if someone has used play(), gotoAndPlay(), gotoAndStop(), ect.... I feel like relying on ENT…

---

## [Colour picker issue](https://forum.kirupa.com/t/colour-picker-issue/297647)

<div class="topic-metadata">

**Author:** [@phillawson](https://forum.kirupa.com/u/phillawson)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 1:13pm UTC](https://forum.kirupa.com/t/colour-picker-issue/297647 "2009-10-06T13:13:18Z")

</div>

Greetings all and I hope everyone is well. I have a small (but probably a simple fix) issue regarding setting the position of a bitmap image object. \[image\] When I add the colour image to a movie clip - this is wha…

---

## [Blurring a picture according to pixels](https://forum.kirupa.com/t/blurring-a-picture-according-to-pixels/297646)

<div class="topic-metadata">

**Author:** [@OML](https://forum.kirupa.com/u/OML)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 1:04pm UTC](https://forum.kirupa.com/t/blurring-a-picture-according-to-pixels/297646 "2009-10-06T13:04:23Z")

</div>

Hello, I want to be able to blur an image\\bitmap horizontally and vertically according to a given radious of pixels. Lets say, that I want to blur the picture with a radious of 5 pixels... I saw there's an existing c…

---

## [mouseChildren & mouseEnabled problem](https://forum.kirupa.com/t/mousechildren-mouseenabled-problem/297645)

<div class="topic-metadata">

**Author:** [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 12:55pm UTC](https://forum.kirupa.com/t/mousechildren-mouseenabled-problem/297645 "2009-10-06T12:55:29Z")

</div>

i have a class that extends sprite. in that class i make an instance of a movieclip simbol from the library. i also set some other properties like: \_popup = new PopupMC(); addChild(\_popup); \_popup.alpha = 0; \_popup.mo…

---

## [Need some help on adding dynamic MC](https://forum.kirupa.com/t/need-some-help-on-adding-dynamic-mc/297642)

<div class="topic-metadata">

**Author:** [@georgesmith](https://forum.kirupa.com/u/georgesmith)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 12:30pm UTC](https://forum.kirupa.com/t/need-some-help-on-adding-dynamic-mc/297642 "2009-10-06T12:30:18Z")

</div>

Hello All, This forum rocks. I need some help in creating a card game, where I have to add a dynamic chips on button click. I wonder how to add the chips one by one on button click on the same position. any help …

---

## [AS 2: scrolling panel (up down left right)](https://forum.kirupa.com/t/as-2-scrolling-panel-up-down-left-right/297641)

<div class="topic-metadata">

**Author:** [@tiingshii](https://forum.kirupa.com/u/tiingshii)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 12:18pm UTC](https://forum.kirupa.com/t/as-2-scrolling-panel-up-down-left-right/297641 "2009-10-06T12:18:15Z")

</div>

\[FONT=monospace\]careless mistake thanks guys \[/FONT\]

---

## [Depth problem](https://forum.kirupa.com/t/depth-problem/297637)

<div class="topic-metadata">

**Author:** [@akhil1983](https://forum.kirupa.com/u/akhil1983)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 11:21am UTC](https://forum.kirupa.com/t/depth-problem/297637 "2009-10-06T11:21:35Z")

</div>

hi i made a menu which uses matrix to skew and rotate the images.The problem is that i m not able to set the depth of the images according to the angle.i hope someone can help me. i have attached the sample .fla file. th…

---

## [Autoformat Bug?](https://forum.kirupa.com/t/autoformat-bug/297636)

<div class="topic-metadata">

**Author:** [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 10:26am UTC](https://forum.kirupa.com/t/autoformat-bug/297636 "2009-10-06T10:26:09Z")

</div>

Hi, When I type out code, I tend to press the autoformat button quite a bit just to make sure there are no errors with my coding while making it look good while I'm at it. But I ran into this little problem. You see …

---

## [Loading XML into popup](https://forum.kirupa.com/t/loading-xml-into-popup/297635)

<div class="topic-metadata">

**Author:** [@donlimpio](https://forum.kirupa.com/u/donlimpio)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 9:59am UTC](https://forum.kirupa.com/t/loading-xml-into-popup/297635 "2009-10-06T09:59:41Z")

</div>

Hi guys! I'm new in this forum e above all I'm new in Flash, Actionscript and XML.. \[frowning\] I have a "very" need of your help!!! This is my problem: I realized a layout with flash cs4, actionscript 2.0. This layout …

---

## [Not passing the text data](https://forum.kirupa.com/t/not-passing-the-text-data/297630)

<div class="topic-metadata">

**Author:** [@sunGLASS](https://forum.kirupa.com/u/sunGLASS)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:37am UTC](https://forum.kirupa.com/t/not-passing-the-text-data/297630 "2009-10-06T08:37:23Z")

</div>

A dynamic text box captured the query string and passes on to the server PHP. Php should return a mail with the received query string. But I'm not getting it. I guess the problem is in the dynamic text box passing the …

---

## [Page flip help](https://forum.kirupa.com/t/page-flip-help/297629)

<div class="topic-metadata">

**Author:** [@tomto](https://forum.kirupa.com/u/tomto)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 8:17am UTC](https://forum.kirupa.com/t/page-flip-help/297629 "2009-10-06T08:17:00Z")

</div>

Hiya I'm modifying pixelwits pageflip component (http://www.pixelwit.com/flip/PageFlip.html) for a project that i'm doing however there is one little function that I would like to add. I would like the flip to action w…

---

## [Mailer - New lines within textarea problem](https://forum.kirupa.com/t/mailer-new-lines-within-textarea-problem/297627)

<div class="topic-metadata">

**Author:** [@GGMcGee](https://forum.kirupa.com/u/GGMcGee)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 5:49am UTC](https://forum.kirupa.com/t/mailer-new-lines-within-textarea-problem/297627 "2009-10-06T05:49:18Z")

</div>

Got a php contact form set up and I've made the email it sends formatted with HTML. $headers .= "MIME-Version: 1.0" . " "; $headers .= "Content-type: text/html; charset=utf-8" . " "; $headers .= "From: $em…

---

## [Dynamic line based on mouse movement](https://forum.kirupa.com/t/dynamic-line-based-on-mouse-movement/297626)

<div class="topic-metadata">

**Author:** [@flash\_fool](https://forum.kirupa.com/u/flash_fool)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 5:48am UTC](https://forum.kirupa.com/t/dynamic-line-based-on-mouse-movement/297626 "2009-10-06T05:48:21Z")

</div>

Hi Everyone. How are we all? Its been awhile but its good to be back. Ok, the problem - One of my Clients wants a certain type animation on his buttons and he wont budge. here it is. a set of buttons (home - about - pr…

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

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