call a function after 'lookto'?

  • how would i go about calling a custom actionscript function after a 'lookto' is complete?


    krpano.call("lookat(-145,0,80);"); // <-- would like to call a function after this happens


    thanks!

    Say "Hi!" on twitter

    Einmal editiert, zuletzt von mds (9. Juli 2009 um 07:26)

  • well i tried to write in my action after the 'lookto' action but i think since it was a custom function (to show the instructions) that it reads the function at the very beginning as opposed to waiting it's turn like the kr functions.

    i thought there would be an easy solution like this:

    Code
    krpano.call(lookto, 150,0,15, onComplete:myfunction(););

    but i couldn't get it to work.

    instead i used the tweener class like this:

    that makes it wait 6 seconds before fading in and then fires instructionsInti(); to begin the animation.

Jetzt mitmachen!

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