RE: [Flashcoders] Operator Help!!

2009-05-21 Thread Paul Steven
Your code works fine for me this end. Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: 21 May 2009 06:15 To: Flash Coders List Subject: [Flashcoders] Operator Help!! EEEk..

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Glen Pike
The code does not show any errors, but you are trying to index an array of strings using a string - the indexes of the arrays sunrise and sunset will still be numbers so sunrise[hours] and sunset[hours] may not work if hours is a string... I did this with a sunrise and sunset number before:

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
Really!? Hmm thats weird. I wonder why its throwing an error on my end. I take it you pub with AS2? or did you pub with AS3 as the script lang? Karl On May 21, 2009, at 4:26 AM, Paul Steven wrote: Your code works fine for me this end. Paul -Original Message- From:

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Glen Pike
Hi, I pasted into a Flash file (AS2) and checked the syntax - did not publish as I don't have the MovieClips, etc.. Glen Karl DeSaulniers wrote: Really!? Hmm thats weird. I wonder why its throwing an error on my end. I take it you pub with AS2? or did you pub with AS3 as the script

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Hi, I *think* this does what you're trying to do, which would be to fade the alpha of an image in and out again over 24h. I don't have AS2 so I can't test, but when you do, you can set minutesPerDay to however long you may wish to sit there and watch the magic happen. If it happens, that is,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
Thanks Mark. That is an interesting approach. Pardon me for asking, but what part in your code initiates the sunset part? Karl Sent from losPhone On May 21, 2009, at 3:34 PM, Mark Winterhalder mar...@gmail.com wrote: Hi, I *think* this does what you're trying to do, which would be to

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Thu, May 21, 2009 at 10:43 PM, Karl DeSaulniers k...@designdrumm.com wrote: Thanks Mark. That is an interesting approach. Pardon me for asking, but what part in your code initiates the sunset part? Nothing really, if you mean how the change is triggered. But whenever the code runs, it will

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Hmm... maybe I misunderstood what you were trying to do. Do you want to have a continuous sunrise and -set over 24h, or do you want to have a sudden sunset or -rise twice a day? Mark On Thu, May 21, 2009 at 10:57 PM, Mark Winterhalder mar...@gmail.com wrote: On Thu, May 21, 2009 at 10:43 PM,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
Oh no, I am just wanting to check what time of day it is and have my background fade from dark to light accordingly. The code you supplied, I think will do that, just haven't got off work yet to try out. :) I am more so wanting to know why, if my code is correct, why its throwing this

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers k...@designdrumm.com wrote: Oh no, I am just wanting to check what time of day it is and have my background fade from dark to light accordingly. The code you supplied, I think will do that, just haven't got off work yet to try out. :) Well,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
Oh, I forgot to remove the onEnterFrame when it's no longer needed. Please add this line to the end of the function: if( progress = 1 ) delete this.onEnterFrame; Mark On Fri, May 22, 2009 at 12:18 AM, Mark Winterhalder mar...@gmail.com wrote: On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
I will try that and let you know. One question, sort of off-sub, but in regards to what you just wrote. When you delete something does this remove it completely? or would it be available if that frame was played again? Karl Thanks for taking the time.. really appreciate it. On May 21, 2009,

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Fri, May 22, 2009 at 12:28 AM, Karl DeSaulniers k...@designdrumm.com wrote: I will try that and let you know. I just found another bug. :/ This line: var progress : Number = framesElapsed / fadeDuration; should really be like this: var progress : Number = framesElapsed++ / fadeDuration;

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
:) On May 21, 2009, at 5:38 PM, Mark Winterhalder wrote: On Fri, May 22, 2009 at 12:28 AM, Karl DeSaulniers k...@designdrumm.com wrote: I will try that and let you know. I just found another bug. :/ This line: var progress : Number = framesElapsed / fadeDuration; should really be like

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
Well, I do plan on people spending quite a while on my site, and so, if someone came around sunset and stayed for say an hour or two, (if Im lucky :P) they would see the change happen? or am I asking for a bogdown-nightmare-to-happen ? Karl On May 21, 2009, at 5:38 PM, Mark Winterhalder