1 | DEF Action1 Script { |
2 | eventIn SFTime clicked |
3 | eventOut SFTime start |
4 | url "vrmlscript: // Note: Cosmo Player 2.0 still wants to see vrmlscript |
5 | function clicked(time) |
6 | { start = time; } " |
7 | } |
8 | |
9 | ROUTE GO.touchTime TO Action1.clicked |
10 | ROUTE Action1.start TO TIME1.startTime |
11 | ROUTE TIME1.fraction_changed TO INTERP1.set_fraction |
12 | ROUTE INTERP1.value_changed TO T1.set_translation |
13 | Even though its JavaScript |