« [Flash 8] Glow filter | Inicio | [J2ME] 3D programming tutorial about light »

[Flash 8] The sun and its shadow

Drag the sun around the earth, and see how the shadow of the earth changes. Of course, you will need the flash player 8 public beta




For this example, I've used the following new features: movieclip filters ( glow, dropshadow and bevel ) that I change dinamically when the position of the sun changes. To calculate distances and angles, I have also used some of the new classes developed for geometrical calculations.

UPDATE 20/9/05: download the source code

Comentarios

This is a cool example of new Flash8 features, but the earth goes around the sun.

xddddd

That's right!, but I hope the Inquisition doesn't hear us...

Sorry, but this could have been easily accomplished using flash 4...

No need to apologize, Eyal.

can you post the source please?

Sure, alex, I'm packing the source code of the three examples, and I plan to post it tomorrow

Flash is somehwat overused and overrated. this could easily be accomplished with javascript and css.

see -> http://www.ncf.ca/~bh447/pngdemo/

Sure, and It could be also achieved with a Java applet, and with an OCX control, and....

But that's not the point. And this is not a discussion about if flash is better or worse that any other technology. And by the way, the example above doesn't work well in Safari...

same thing accomplished with css and javascript: (more compatible demo)

http://www.mozilla.org/start/1.0/demos/eagle-sun.html