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 wro

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 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 :

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Fri, May 22, 2009 at 12:28 AM, Karl DeSaulniers 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; otherwise there woul

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
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 wrote: > On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers > wrote: >>

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Thu, May 21, 2009 at 11:44 PM, Karl DeSaulniers 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, it fades out for 1

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 operand

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 wrote: > On Thu, May 21, 2009 at 10:43 PM, Karl DeSaulniers

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Mark Winterhalder
On Thu, May 21, 2009 at 10:43 PM, Karl DeSaulniers 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 adjust the alpha.

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 wrote: Hi, I *think* this does what you're trying to do, which would be to fade the alpha of an

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, becau

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Glen Pike
Flash Coders List Subject: [Flashcoders] Operator Help!! EEEk.. anyone!!! What am I doing wrong?? This is AS2. var sunrise:Array = new Array("6", "7", "8", "9", "10", "11", "12", "13", "14", "15",

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Karl DeSaulniers
...@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.. anyone!!! What am I doing wrong?? This is AS2. var sunrise:Array = new Array("6", &q

Re: [Flashcoders] Operator Help!!

2009-05-21 Thread Glen Pike
nal 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.. anyone!!! What am I doing wrong?? This is AS2. var sunrise:A

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

[Flashcoders] Operator Help!!

2009-05-20 Thread Karl DeSaulniers
EEEk.. anyone!!! What am I doing wrong?? This is AS2. var sunrise:Array = new Array("6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17"); var sunset:Array = new Array("18", "19", "20", "21", "22", "23", "0", "1", "2", "3", "4", "5"); var time:Date = new Date(); var hour:Numb