August 10, 2005
[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
Posted by Cesar Tardaguila Date: August 10, 2005 08:47 PM | TrackBackThis is a cool example of new Flash8 features, but the earth goes around the sun.
Posted by: Kristin en: August 10, 2005 09:02 PMxddddd
That's right!, but I hope the Inquisition doesn't hear us...
Posted by: Cesar Tardaguila en: August 10, 2005 09:12 PMSorry, but this could have been easily accomplished using flash 4...
Posted by: Eyal en: August 10, 2005 09:18 PMNo need to apologize, Eyal.
Posted by: Tom en: August 10, 2005 11:05 PMcan you post the source please?
Posted by: alex en: September 18, 2005 01:47 PMSure, alex, I'm packing the source code of the three examples, and I plan to post it tomorrow
Posted by: Cesar Tardaguila en: September 18, 2005 11:32 PMFlash is somehwat overused and overrated. this could easily be accomplished with javascript and css.
see -> http://www.ncf.ca/~bh447/pngdemo/
Posted by: fearphage en: October 20, 2005 09:00 PMSure, 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...
Posted by: Cesar Tardaguila en: October 20, 2005 09:04 PMlink to a more compatible demo:
http://www.mozilla.org/start/1.0/demos/eagle-sun.html
Posted by: fearphage en: October 20, 2005 09:14 PMsame thing accomplished with css and javascript: (more compatible demo)
http://www.mozilla.org/start/1.0/demos/eagle-sun.html
Posted by: fearphage en: October 20, 2005 09:15 PM