Sie sind nicht angemeldet.

1

Freitag, 29. Mai 2015, 21:17

possible bug with stoptween

Quellcode

1
2
3
set(hotspot[get(rwv_new_infospot_name)].onloaded,tween(hotspot[get(name)].ry,36000000,400000,linear));
set(hotspot[get(rwv_new_infospot_name)].onover,stoptween(hotspot[get(name)].ry));
set(hotspot[get(rwv_new_infospot_name)].onout,tween(hotspot[get(name)].ry,36000000,400000,linear));


Dear Klaus,

the above code should start the rotation of the particular hotspot when it's loaded, stop the rotation when the user puts the mouse over it, and re-start it when the user moves the cursor away, right?

But the middle line doesn't seem to be working. If I substitute the get(name) call with the exact name of the hotspot, it works like it should, but not like this. The first and the third lines work just fine even like this though. Is this a bug, or something deliberate?

2

Dienstag, 2. Juni 2015, 11:24

Hi,

thanks! right, this is a bug - the get() will be not resolved inside the stoptween() - this will be fixed in the next release.

Best regards,
Klaus

3

Dienstag, 2. Juni 2015, 15:35

Cheers!