L PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
> Sent: Thursday, September 21, 2006 12:22 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Working on Flash 6 player but not on Flash
8
>
> > instead of random(x), you should use
> instead of random(x), you should use
> Math.floor(Math.random() * x).
Which makes me wonder why random() is deprecated. They really think
that Math.floor(Math.random() * x) is better than random()? Ridiculous!
The sign of a great API is its simplicity.
_
The earlier post (by Jake Prime) is probably the explanation. But also,
random() is deprecated; instead of random(x), you should use
Math.floor(Math.random() * x).
―
Mike Keesey
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Berkay Una
Hi Berkay
Have you set counter to a value before incrementing it? If you fail to
initialise a variable in F6, it will assume it is 0 and increment to
1. If you do this in F8 it treats it as undefined, and will stay
undefined no matter how many times you increment it.
Jake
On 21/09/06, Berkay Un
4 matches
Mail list logo