RE: [Flashcoders] gradient fills based on temperature maps

2005-11-04 Thread Steve Rankin
Take a look at this.

http://motiondraw.com/md/as_samples/t/gradientTween/gradientTweenEditor.html

I hope this helps
-Steve


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Rønning
Sent: Friday, November 04, 2005 3:46 AM
To: Flashcoders mailing list
Subject: [Flashcoders] gradient fills based on temperature maps

I'm building a temperature grid in a 2d array, where i'd like to build 
some kind of smooth gradient based on the entire map.

For instance this map can start red in the top left, fade to a cool blue 
near the center, then flare into red again off to the right, while 
everything else becomes a green tinted blue.

As is i could use the drawing api to draw colored blocks to give the 
impression of such a map, but ideally i'd be able to smooth out the 
values with gradients, because the map is really quite low res.

Anyone got any ideas for this?

- Andreas
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Steve Rankin
Not sure, but it's in the new ActionScript 2.0 Language Reference for Flash
Player 8.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Beynart
Sent: Sunday, October 30, 2005 2:59 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] setInterval() and the trouble

Why is something so useful undocumented? I have to bend over backwards
to create single-fire timers.
Thanks for the post. 


-Original Message-
Its undocumented, but it works in a fire once kind of situation  like
javascript:

foo = setTimeout( func, ms)
clearTimeout(foo)

but only if you need to stop the interval. Otherwise, just fire it and
forget it.

e.d.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders