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!
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!
anybody????
i figured out a work around using tweener and a delay of six seconds. that was roughly the amount of time it took for the 'lookto' to stop anyways.
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:
but i couldn't get it to work.
instead i used the tweener class like this:
function startInstructions():void
{
Tweener.addTween(instructions, {alpha:1, delay:6, time:.25, transition:"easeOutExpo", onComplete:function(){ instructionsInit(); } });
}
function instructionsInit()
{
instructions.gotoAndPlay(2);
instructions.mouse.gotoAndPlay(2);
}
Alles anzeigen
that makes it wait 6 seconds before fading in and then fires instructionsInti(); to begin the animation.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!