Event for AS3 ?

  • Hi,

    There is only 3 events triggered from krPano documented for plugin in AS3 :

    Code
    krpano_as3_interface.PLUGINEVENT_REGISTER
    krpano_as3_interface.PLUGINEVENT_RESIZE
    krpano_as3_interface.PLUGINEVENT_UPDATE

    Klaus, are there other events ?

    I'm looking for an event when a new pano (or new xml) is loaded, and an event when onloadcomplete is triggered.

  • that would be:

    Code
    krpano.set("events.onloadcomplete" , yourflashfunction);
    function yourflashfunction():void
    {
        trace("onloadcomplete triggered");
    }
    krpano.set("events.onxmlcomplete" , yourflashfunction2);
    function yourflashfunction2():void
    {
        trace("onxmlcomplete triggered");
    }
  • how would i go about calling a function after a 'lookto' is complete as opposed to the 'load' being complete.


    // start rotation
    startRotation();
    function startRotation():void
    {
    krpano.call("lookat(-145,0,80);"); // <-- would like to call a function after this happens
    }

Jetzt mitmachen!

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