Chris Oliver's Weblog

Thursday Jan 11, 2007

Heroes

My wife thought this flash application was cool, so I spent the afternoon trying to recreate it in F3.

The F3 version isn't complete and differs in some details but seems like a reasonable approximation.

This example is typical of many Flash programs where the hard work is done by the graphic artists and the progammer's job is relatively easy: in this case I just laid out the images, implemented the animations based on location, rotation, scale, and opacity, and handled the mouse events.

Here's a link to a copy of the source code.

Comments:

My favorite new show of 2006! Love it!

Posted by Chris Melissinos on January 11, 2007 at 07:07 PM PST #

The really neat thing about Chris's Java port is that it's actually smoother than the original flash!

Posted by Percy M. Wegmann on January 12, 2007 at 07:09 AM PST #

Did you notice you can active the TV through the pop-ups like the photograph on the wall? :-)

Posted by Quintesse on January 12, 2007 at 01:47 PM PST #

Hi Chris: Can you tell me what these line means: for (unitinterval r in dur 500 fps 100) { //bookX = (r * 140) bookY = 420 + (r * -200); bookOpacity = r; bookScale = (0.8 * r); bookRotation = -10 + (10 * r); } specially "unitinterval r in dur 500 fps 100" thanks

Posted by Rene Davila on January 16, 2007 at 08:47 AM PST #

Rene Davila: That is experimental syntax (we can discuss it in detail once F3 is open- source). The documented syntax of the dur operator derives the frame rate from the length of the array / the duration. The unitinterval operator allows you to define the frame rate explicitly. The current syntax is provisional and is there just to explore the problem. unitinterval is a keyword which returns the elapsed time as a fraction between 0 and 1. fps is also a keyword and stands for "frames per second".

Posted by Chris Oliver on January 16, 2007 at 09:22 AM PST #

Chris, just wondering if you grew up in Ladner... ? if you get a second, drop me a line with a yea or a nay. Cheers kalen harris

Posted by kalen harris on March 15, 2007 at 03:53 PM PDT #

The really neat thing about Chris's Java port is that it's actually smoother than the original flash!

Posted by key ödemeleri on September 01, 2008 at 01:32 PM PDT #

Chris, just wondering if you grew up in Ladner... ? if you get a second, drop me a line with a yea or a nay. Cheers kalen harris

Posted by chat on September 01, 2008 at 01:32 PM PDT #

Thank you very much for this useful article. I like it.

Posted by evden eve nakliyat on September 12, 2008 at 03:02 AM PDT #

The really neat thing about Chris's Java port is that it's actually smoother than the original flash!

Posted by Warhammer Online Power Leveling on March 11, 2009 at 11:31 PM PDT #

http://www.smsmatbaa.com

Posted by matbaa on June 22, 2009 at 10:11 AM PDT #

http://www.dilekofset.com

thanx

Posted by matbaa on November 14, 2009 at 05:04 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referers