Timeline question on how I can change the time in a loop for

In the following code segment:
for(index in [0..3]) Timeline
{
    keyFrames:
    [
        KeyFrame
        {
            time: 0s
            values: cars[index].translateX => 0
        }
        KeyFrame
        {
            time: 15s
            values: cars[index].translateX => 800 tween Interpolator.LINEAR
        }
    ]
}.play();
How can I make the time to be 15 + 2 * index seconds, for example, instead of 15 s always?

Any input would be greatly appreciated!
Thanks in advance!

I imagine something like (not tested)

var duration: Duration;
var tmp = bind index on replace {
   duration = Duration.valueOf((15 + 2 * index)* 1000);
}
:
:
KeyFrame
{
   time: bind duration
   values: cars[index].translateX => 800 tween Interpolator.LINEAR
}

To get help sooner, after a NBS.

Note that I'm not JavaFX and the suggestion is the API reading.

DB

Edit you get coffee and complete your registrations pending. Answering questions on a forum should be identified as such, for those who come across them in a search.

Published by: Darryl Burke

Published by: Darryl Burke - added the necessary: between the lifetime and the

Tags: Oracle

Similar Questions

Maybe you are looking for

  • MacBook charger problem

    I have a macbook Pro retina, mid-2012, which has developed a charging problem. The load is around 14% and menu of the top indicates that the load. However, light 2 MagSafe is completely turned off, and when he drops by 14%, is not increase either. I

  • This memory will work in my A31?

    PNY 1024Mo PC2700 DDR 333 MHz SODIMM Memory http://www.TigerDirect.ca/applications/SearchTools/item-details.asp?EdpNo=1527023&CATID=4151

  • Show hidden files and folders option does not

    I'm trying to access a hidden folder, C:\programdata\... I can't see it in Explorer. When I go into control panel > folder options > discovers... the option box to display hidden files and folders is already selected. I tried to change this option to

  • Investigation on the configured gmail account

    Hi I am not able to sync my gmail account in my samsung Omnia Wonder GT-I8350 model (OS version: 7.10.8862.144, Software Windows - Phone 7.8). I already reset my phone 5 times but still it is not sync and show the message "download messages. This cou

  • First (2015.3) any audio of mp4 files.

    G' day companions,.I'm in a pickle, after the upgrade, first is more import my mp4 files audio... It's a little annoying to extract audio on another software that importers (audio only) in first. Anyone know what is happening?I thank or many.