[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.
Publicado por: Kristin | August 10, 2005 09:02 PM
xddddd
That's right!, but I hope the Inquisition doesn't hear us...
Publicado por: Cesar Tardaguila | August 10, 2005 09:12 PM
Sorry, but this could have been easily accomplished using flash 4...
Publicado por: Eyal | August 10, 2005 09:18 PM
No need to apologize, Eyal.
Publicado por: Tom | August 10, 2005 11:05 PM
can you post the source please?
Publicado por: alex | September 18, 2005 01:47 PM
Sure, alex, I'm packing the source code of the three examples, and I plan to post it tomorrow
Publicado por: Cesar Tardaguila | September 18, 2005 11:32 PM
Flash is somehwat overused and overrated. this could easily be accomplished with javascript and css.
see -> http://www.ncf.ca/~bh447/pngdemo/
Publicado por: fearphage | October 20, 2005 09:00 PM
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...
Publicado por: Cesar Tardaguila | October 20, 2005 09:04 PM
link to a more compatible demo:
http://www.mozilla.org/start/1.0/demos/eagle-sun.html
Publicado por: fearphage | October 20, 2005 09:14 PM
same thing accomplished with css and javascript: (more compatible demo)
http://www.mozilla.org/start/1.0/demos/eagle-sun.html
Publicado por: fearphage | October 20, 2005 09:15 PM