# programming

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

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

**Page:** 1063

---

## [Is this a bad programming practice?](https://forum.kirupa.com/t/is-this-a-bad-programming-practice/271924)

<div class="topic-metadata">

**Author:** [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 1:24pm UTC](https://forum.kirupa.com/t/is-this-a-bad-programming-practice/271924 "2008-09-30T13:24:35Z")

</div>

if (this.lbar.alpha\>0) { lbar.alpha=lbar.alpha-1; } else { } Is there a better way to do this? I noticed the loop stops whilst changing the x and y coords.. must be to stop "overloaling". …

---

## [Format the e-mail contents sent by mailer.php](https://forum.kirupa.com/t/format-the-e-mail-contents-sent-by-mailer-php/271922)

<div class="topic-metadata">

**Author:** [@ian\_dcuk](https://forum.kirupa.com/u/ian_dcuk)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 1:09pm UTC](https://forum.kirupa.com/t/format-the-e-mail-contents-sent-by-mailer-php/271922 "2008-09-30T13:09:39Z")

</div>

Im thinking theres an easy answer to this however i cant seem to over come the problem. All im now trying to do is to have the information sent to me presented neatly in the e-mail. For example to have the '$message' v…

---

## [HTTP, Sockets, and Stuff](https://forum.kirupa.com/t/http-sockets-and-stuff/271921)

<div class="topic-metadata">

**Author:** [@Walexman](https://forum.kirupa.com/u/Walexman)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 12:30pm UTC](https://forum.kirupa.com/t/http-sockets-and-stuff/271921 "2008-09-30T12:30:34Z")

</div>

I'm trying to understand sockets and HTTP. I understand that sockets is a method of communicating over a network. And this is how browsers work, and HTTP is a standard form of this communication used by browsers. I'm try…

---

## [Help with links and rollover effects!](https://forum.kirupa.com/t/help-with-links-and-rollover-effects/271919)

<div class="topic-metadata">

**Author:** [@SFuller79](https://forum.kirupa.com/u/SFuller79)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 11:44am UTC](https://forum.kirupa.com/t/help-with-links-and-rollover-effects/271919 "2008-09-30T11:44:24Z")

</div>

Hi folks, I'm pretty new to Flash in general, and I'm trying to put up a slick website for my illustrative work. At present, I understand animation and movement pretty decently. I'm at the point where I could probably …

---

## [Problem with contact form in AS2](https://forum.kirupa.com/t/problem-with-contact-form-in-as2/271916)

<div class="topic-metadata">

**Author:** [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 11:33am UTC](https://forum.kirupa.com/t/problem-with-contact-form-in-as2/271916 "2008-09-30T11:33:10Z")

</div>

Hi everyone, I have a contact form and i have a little problem when it comes to send a mail. I have the string message saying that the message has been sent but the receiver just get an empty message, empty email add…

---

## [Grrr epic RPG fail](https://forum.kirupa.com/t/grrr-epic-rpg-fail/271915)

<div class="topic-metadata">

**Author:** [@slayerX2](https://forum.kirupa.com/u/slayerX2)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 11:32am UTC](https://forum.kirupa.com/t/grrr-epic-rpg-fail/271915 "2008-09-30T11:32:27Z")

</div>

You want to know what the epic fail is? Equipping weapons, I've asked this question in the past but people always seem to say that its very easy and simple, but no ever EXPLAINS it, I truly need help with this, and it se…

---

## [Rss news feed - previous and next button](https://forum.kirupa.com/t/rss-news-feed-previous-and-next-button/271910)

<div class="topic-metadata">

**Author:** [@petermyrup](https://forum.kirupa.com/u/petermyrup)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 10:03am UTC](https://forum.kirupa.com/t/rss-news-feed-previous-and-next-button/271910 "2008-09-30T10:03:24Z")

</div>

Hi guys I want to build a flashbanner, which displays an rss news feed. I want the user to be able to click a "next" and "previous" button, in order to manually switch between the different headlines/stories in the rss…

---

## [LockPosition](https://forum.kirupa.com/t/lockposition/271908)

<div class="topic-metadata">

**Author:** [@ShiQi](https://forum.kirupa.com/u/ShiQi)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 9:52am UTC](https://forum.kirupa.com/t/lockposition/271908 "2008-09-30T09:52:48Z")

</div>

What is "lockPosition : Boolean \[default:false\]"? Can Someone show me an example as in how to do it in actionscript 2.0? Thank in advance =D I just want to lock an MOvieClip.

---

## [Preloader in CS3](https://forum.kirupa.com/t/preloader-in-cs3/271905)

<div class="topic-metadata">

**Author:** [@IanCremona](https://forum.kirupa.com/u/IanCremona)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 9:12am UTC](https://forum.kirupa.com/t/preloader-in-cs3/271905 "2008-09-30T09:12:32Z")

</div>

if (newSlides.currentLoadingImage\<1) { //loadingTxt.text = String("Loading "+(newSlides.currentLoadingImage+1)+" of "+Math.floor(event.bytesLoaded/1024)+ " kilobytes have loaded from "+Math.floor(event.bytesTotal…

---

## [Please help NOOB - AS3 Netstream Video Preloader](https://forum.kirupa.com/t/please-help-noob-as3-netstream-video-preloader/271904)

<div class="topic-metadata">

**Author:** [@nate073](https://forum.kirupa.com/u/nate073)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 8:21am UTC](https://forum.kirupa.com/t/please-help-noob-as3-netstream-video-preloader/271904 "2008-09-30T08:21:44Z")

</div>

Hello, I'm an AS3 nube. I bought a premade AS3 video player and a separate AS3 preloader from FlashDen...and I'm trying to figure out what the #?$^ I'm doing (lol). Just trying to use the preloader to do the preload fo…

---

## [Customizing a Simple Auto reply Email Problem](https://forum.kirupa.com/t/customizing-a-simple-auto-reply-email-problem/271903)

<div class="topic-metadata">

**Author:** [@sliilvia](https://forum.kirupa.com/u/sliilvia)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 8:10am UTC](https://forum.kirupa.com/t/customizing-a-simple-auto-reply-email-problem/271903 "2008-09-30T08:10:33Z")

</div>

Hi all, I am very new to Php and I have done some searching around and I cant find an answer to this. So I am hoping some kind person might be able to help me. I have managed to get my auto reply working, but I want to…

---

## [Vertical button positioning without x,y coordinates](https://forum.kirupa.com/t/vertical-button-positioning-without-x-y-coordinates/271902)

<div class="topic-metadata">

**Author:** [@iscarrr](https://forum.kirupa.com/u/iscarrr)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 8:00am UTC](https://forum.kirupa.com/t/vertical-button-positioning-without-x-y-coordinates/271902 "2008-09-30T08:00:36Z")

</div>

Hi guys, I'm trying to layout a navigation in flash that flows vertically down the page so basically something like Home About Contact etc. each button on a new line. Now at the moment im doing this by setting the …

---

## [Getting all combinations of an Array](https://forum.kirupa.com/t/getting-all-combinations-of-an-array/271900)

<div class="topic-metadata">

**Author:** [@AJV55](https://forum.kirupa.com/u/AJV55)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 6:45am UTC](https://forum.kirupa.com/t/getting-all-combinations-of-an-array/271900 "2008-09-30T06:45:45Z")

</div>

I have an array with 32 objects, each with attributes price and value. I need to get the best possible group of 8 objects - with the best combined values but the price under 50 million $. I guess the simplest approach…

---

## [Sound class - File headers, IOErrors, and 404s](https://forum.kirupa.com/t/sound-class-file-headers-ioerrors-and-404s/271899)

<div class="topic-metadata">

**Author:** [@horizens](https://forum.kirupa.com/u/horizens)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 6:19am UTC](https://forum.kirupa.com/t/sound-class-file-headers-ioerrors-and-404s/271899 "2008-09-30T06:19:48Z")

</div>

Hi, all I'm developing an mp3 player for a rather large music search engine. The files that are played are found on the web, so it's increasingly difficult to gracefully determine to the validity of them. This file f…

---

## [Assigning Listeners to Children](https://forum.kirupa.com/t/assigning-listeners-to-children/271896)

<div class="topic-metadata">

**Author:** [@Loki\_develop](https://forum.kirupa.com/u/Loki_develop)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 4:28am UTC](https://forum.kirupa.com/t/assigning-listeners-to-children/271896 "2008-09-30T04:28:44Z")

</div>

So far I have a set of functions that are doing exactly as told. But I need to modify the set to be able to work on the parent but the listeners need to be on a child movieclip with the name clickarea or something simila…

---

## [Publish Setting Profile dissapears](https://forum.kirupa.com/t/publish-setting-profile-dissapears/271894)

<div class="topic-metadata">

**Author:** [@CayoHueso](https://forum.kirupa.com/u/CayoHueso)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 3:48am UTC](https://forum.kirupa.com/t/publish-setting-profile-dissapears/271894 "2008-09-30T03:48:54Z")

</div>

Hi, Maybe I am doing something wrong: I open Publish Settings, create a new profile using the + button, and publish. When I try to use the same profile in another FLA file, the only profile that appears in the drop dow…

---

## [Urgent help please / drop down menu positioning](https://forum.kirupa.com/t/urgent-help-please-drop-down-menu-positioning/271891)

<div class="topic-metadata">

**Author:** [@deevius](https://forum.kirupa.com/u/deevius)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 2:41am UTC](https://forum.kirupa.com/t/urgent-help-please-drop-down-menu-positioning/271891 "2008-09-30T02:41:33Z")

</div>

Hi guys, can I please get some URGENT help Here is the page I am working on: www.thenutcompany.ie/index.html you'll notice the Products button has a small drop down menu when you mouseover, but for the life of me I…

---

## [Need help to continue onenterframe](https://forum.kirupa.com/t/need-help-to-continue-onenterframe/271887)

<div class="topic-metadata">

**Author:** [@nikel](https://forum.kirupa.com/u/nikel)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 2:19am UTC](https://forum.kirupa.com/t/need-help-to-continue-onenterframe/271887 "2008-09-30T02:19:30Z")

</div>

The following code breaks itself. How can I fix it? arrNumber = 0; this.holder\_mc.onEnterFrame = function() { \_root.holder\_mc\[edges\[\_root.arrNumber\]\].\_width = 44-\_root.holder\_mc.\_x; if (\_root.arrNumber \< \_root.edges…

---

## [How do I convert this String to a variable?](https://forum.kirupa.com/t/how-do-i-convert-this-string-to-a-variable/271886)

<div class="topic-metadata">

**Author:** [@nlyttle](https://forum.kirupa.com/u/nlyttle)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 2:18am UTC](https://forum.kirupa.com/t/how-do-i-convert-this-string-to-a-variable/271886 "2008-09-30T02:18:01Z")

</div>

First I'm defining the location of my external SWFs to be loaded like this: var sec1:String = "projects.swf"; var sec2:String = "news.swf"; and so on... then on my button functions I tried: var loadSection = \["se…

---

## [Link navigation? (Mind blank) easy answer](https://forum.kirupa.com/t/link-navigation-mind-blank-easy-answer/271884)

<div class="topic-metadata">

**Author:** [@Z11](https://forum.kirupa.com/u/Z11)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 1:09am UTC](https://forum.kirupa.com/t/link-navigation-mind-blank-easy-answer/271884 "2008-09-30T01:09:15Z")

</div>

So I apparantly have no recolection how to create a link... I want it so that when the code is run, a new window is open up in the browser, taking them to the URL... I know it's simple, I've done it before, but right n…

---

## [Trouble building an online application form](https://forum.kirupa.com/t/trouble-building-an-online-application-form/271881)

<div class="topic-metadata">

**Author:** [@unclejemima](https://forum.kirupa.com/u/unclejemima)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 12:42am UTC](https://forum.kirupa.com/t/trouble-building-an-online-application-form/271881 "2008-09-30T00:42:41Z")

</div>

As the title suggests, I am trying to build an online application form. My knowledge of PHP and Javascript is quite limited. Basically what I need is: 1) HTML fields laid out either on 3 pages or in DIVs that change in…

---

## [Why won't the background work?](https://forum.kirupa.com/t/why-wont-the-background-work/271875)

<div class="topic-metadata">

**Author:** [@DesignerMichael](https://forum.kirupa.com/u/DesignerMichael)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 10:15pm UTC](https://forum.kirupa.com/t/why-wont-the-background-work/271875 "2008-09-29T22:15:15Z")

</div>

Why can't I get the background to appear? style="float:left; margin-top:10px; width:370px; padding-bottom:5px; background:#EBF6C6 url('http://\*\*\*.2.\*\*\*.127/farm/images/giftsBottomBg.png') no-repeat fixed bottom cent…

---

## [\[CS3 AS2\] Clickable area of MC full size](https://forum.kirupa.com/t/cs3-as2-clickable-area-of-mc-full-size/271873)

<div class="topic-metadata">

**Author:** [@jason\_e\_mock](https://forum.kirupa.com/u/jason_e_mock)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:58pm UTC](https://forum.kirupa.com/t/cs3-as2-clickable-area-of-mc-full-size/271873 "2008-09-29T21:58:40Z")

</div>

I know this is basic, but I lack the terms to use to search for the solution. I can do some advanced stuff in Flash, but when it comes to basics like this, I'm at a loss. I'm trying to have two movieclips call the sam…

---

## [Determine direction of mouse movement](https://forum.kirupa.com/t/determine-direction-of-mouse-movement/271872)

<div class="topic-metadata">

**Author:** [@pyromunky](https://forum.kirupa.com/u/pyromunky)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:35pm UTC](https://forum.kirupa.com/t/determine-direction-of-mouse-movement/271872 "2008-09-29T21:35:00Z")

</div>

I have a clip of a small person 'flying', following the mouse coordinates. Its a 2d image facing a to one side. Can anyone suggest how I can determine when the mouse is moving right or left so that I can trigger the icon…

---

## [Need help with Tween class... can't tween alpha](https://forum.kirupa.com/t/need-help-with-tween-class-cant-tween-alpha/271868)

<div class="topic-metadata">

**Author:** [@creativeFuzion](https://forum.kirupa.com/u/creativeFuzion)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:13pm UTC](https://forum.kirupa.com/t/need-help-with-tween-class-cant-tween-alpha/271868 "2008-09-29T21:13:57Z")

</div>

var picStartAlpha1\_out:Number = pic1\_out.alpha; var picEndAlpha1\_out:Number = 0; var picAlphaDuration1\_out:Number = 700; var picTweenAlpha1\_out:Tween = new Tween (pic1\_out,"alpha",Regular.easeInOut,picStartAlpha1\_out,p…

---

## [Help! Components between Flex and Flash!? Uggghh](https://forum.kirupa.com/t/help-components-between-flex-and-flash-uggghh/271867)

<div class="topic-metadata">

**Author:** [@aurachron](https://forum.kirupa.com/u/aurachron)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:08pm UTC](https://forum.kirupa.com/t/help-components-between-flex-and-flash-uggghh/271867 "2008-09-29T21:08:33Z")

</div>

Hi All, I used to post on these forums when I last used flash (MX2004), and it seems that things have changed a bit in the world of flash. I'm very happy to discover that, mainly because I used to hate using MX2k4. N…

---

## [Cin and Cout's equivalent in Actionscript 3?](https://forum.kirupa.com/t/cin-and-couts-equivalent-in-actionscript-3/271865)

<div class="topic-metadata">

**Author:** [@KaizerKaizer](https://forum.kirupa.com/u/KaizerKaizer)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 8:39pm UTC](https://forum.kirupa.com/t/cin-and-couts-equivalent-in-actionscript-3/271865 "2008-09-29T20:39:06Z")

</div>

Hey, I've coded for some time in C++, but I can't find an easy and fast way in ActionScript 3.0 to type in from the keyboard. The output panel with the Trace(); command works great, but typing in? Any suggestions?

---

## [Problem with v-cam](https://forum.kirupa.com/t/problem-with-v-cam/271863)

<div class="topic-metadata">

**Author:** [@zlxq3000](https://forum.kirupa.com/u/zlxq3000)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 8:28pm UTC](https://forum.kirupa.com/t/problem-with-v-cam/271863 "2008-09-29T20:28:32Z")

</div>

I'm not 100% sure that this is where this goes, but I am using Flash CS3, so I might as well post it in here... I've got kind of a weird problem with the v-cam (the O'Reily one): I've got a movieclip inside of a moviec…

---

## [PLEASE HELP: unloading xml loaded swfs](https://forum.kirupa.com/t/please-help-unloading-xml-loaded-swfs/271861)

<div class="topic-metadata">

**Author:** [@janjan32](https://forum.kirupa.com/u/janjan32)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 8:09pm UTC](https://forum.kirupa.com/t/please-help-unloading-xml-loaded-swfs/271861 "2008-09-29T20:09:43Z")

</div>

Hi All, I have my files nearly complete, but can't seem to figure out how to unload the swfs in as3 once you click a button to load a new one. My file works great, with the exception of the videos playing over each oth…

---

## [BaseScrollPane, ScrollPane, contentPadding: what?](https://forum.kirupa.com/t/basescrollpane-scrollpane-contentpadding-what/271860)

<div class="topic-metadata">

**Author:** [@Stickeroo](https://forum.kirupa.com/u/Stickeroo)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 8:01pm UTC](https://forum.kirupa.com/t/basescrollpane-scrollpane-contentpadding-what/271860 "2008-09-29T20:01:21Z")

</div>

It's a simple question, really -- I think. I have a bunch of content that I want loaded into a ScrollPane. If I try offsetting the content by 16 pixels from the top left, then the ScrollPane instance crops the right/bott…

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

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