« Create a News Ticker with JavaFX 1.2 RssTask/AtomTask | Main | Asynchronicity in JavaFX 1.2 »

June 22, 2009

Comments

Jim Weaver

"I noticed that after I moved the slider fort and back, which changed the value of durMs, the action block was not executed regularly as expected."

Vichet,

I filed a related issue in JIRA (see RT-5002) previously, and have just now added the info that you supplied to it.

Thanks!
Jim Weaver

Vichet Pornsinsiriruk

I found a strange behavior of the the Action block of the Keyframe. My experiment was putting an Action block in one of the Keyframe, for example:

KeyFrame {
time: 0ms
values: [
xVal => 100,
yVal => 50
]
action: function() {
count = count + 1;
}
},


I noticed that after I moved the slider fort and back, which changed the value of durMs, the action block was not executed regulary as expected.

I use Netbean 6.5.1 and JavaFX 1.2.

So may someone who has more experience with JavaFX help to proof whether this is really a bug to be reported.

Thanks,
Vichet

Eric M. Smith

I think this finally explains why I couldn't get my animations working properly under 1.0. Thanks.

Also, I truly appreciate your not putting the JWS link in your post. It's not until we actually do something with the code (instead of just running it) that we learn to do things in the language. Like adding a third KeyFrame (below) so the metronome bounces back and forth like a real metronome instead of starting back at (x,y) => (100,50) each time.

KeyFrame {
time: bind (2000ms - (durMs * 1ms))*2
values: [
xVal => 100,
yVal => 50
]
}

Great Job and Thank you.

The comments to this entry are closed.

Categories