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..
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:
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:
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
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,
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
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
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,
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
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,
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
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,
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;
:)
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
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
15 matches
Mail list logo