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 11:07 AM 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 11, 2007 at 11:09 PM 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 05:47 AM 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 12: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 01: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 08:53 AM 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 06:32 AM 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 06:32 AM PDT #

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

Posted by evden eve nakliyat on September 11, 2008 at 08:02 PM 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 04:31 PM PDT #

http://www.smsmatbaa.com

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

Simple and Nice example !

Posted by شات on December 15, 2010 at 03:39 AM PST #

Thank you so much. I think this information is going to give my business a major boost.

Posted by Quran Teaching on January 16, 2011 at 08:16 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12610627

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today