stop action from a tween when change the pano

  • Hi maybe somebody had already this problem


    i have tween of view in a pano, if the tween is not finished he continue on the next pano, even after some other tween.

    i dont want to use the "wait" argument because i would like to preserve all the fonctionality exept of course the direction of tween during it.


    Thank you of your answer. *whistling*

  • Thankyou very much

    unfortunetly i tested it and it dont works

    i dont see what the error is.


    this my code

    thank you

    Einmal editiert, zuletzt von JPC (27. August 2010 um 14:16)

  • Hi,

    it would stop the tween itself but not the delayedcall,
    maybe this is the problem?

    a delayedcall itself can't be stopped,
    but you could set a kind of variable that tells the delayedcall when happen
    that it has been stopped,

    e.g. do:

    Code
    set(stopdelayedcall,true);
    stoptween(view.fov);


    ... and ...

    Code
    delayedcall( if(stopdelayedcall!=true, tween(view.fov, ...) ) );

    best regards,
    Klaus

  • Thank you,


    in fact i ever tested without the delayedcall, bur it doesn't work, so i keep this code for when i'll resolve this second problem, i will do a serial of test more simple and
    complex the code progressively to determinate the problem, and ll tell you the result.

    For the moment i will test a scenario with an some action this weekend, because i need a solution for my project.


    Thank you again.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!