« JavaFX with Passion! Puzzler #2: Animation | Main | ReportMill Hacks JavaFX Puzzler - Wins Free Pro JavaFX Book Anyway :-) »

April 01, 2009

Comments

Jim Weaver

acw1668,

I used the bind because the instance of the Ellipse doesn't yet exist at the time that the PathTransition is created. If I'd have created the Ellipse instance prior to creating the PathTransition instance (as I suspect you did), then the bind wouldn't have been necessary. It is a good practice to avoid unnecessary binds, so I prefer your approach.

Thanks,
Jim Weaver

acw1668

Congratulations to the winners.

Jim, would you mind explaining why it is necessary to bind the ellipse in PathTransition? As I find that the results look like the same with and without the binding.

The comments to this entry are closed.

Categories