Progress for loading plugins

  • Hi,

    Is it possible to view the progress when loading/adding plugins?
    I have a plugin that is over 2MB and it would be nice to see some response when creating it.

    This is an example:

    krpano.call("addplugin(myplugin)");
    var plugin:Object = krpano.get("plugin[myplugin]");
    plugin.keep = true;
    plugin.url = "%SWFPATH%/plugins/myplugin.swf";
    plugin.handcursor = false;
    plugin.align = "lefttop";
    plugin.x = plugin.y = 0;
    plugin.visible = true;

    Would it be possible to use a Loader for this instead so that I could check the progress or is it possible to view the progress in some other way?

    /Zarillo

  • Yes, but my goal was to display some loadingbar or text describing how many percentage that has been loaded.

    I came to think of one solution for this after I published my question...

    If I would to create a plugin that loads an external swf file. Then I could use a ProgressEvent on the Loader.

    Like this:
    krpano.call("addplugin(myplugin)");
    var plugin:Object = krpano.get("plugin[myplugin]");
    plugin.keep = true;
    plugin.url = "%SWFPATH%/plugins/emptyplugin.swf";
    plugin.externalurl = "%SWFPATH%/plugins/myplugin.swf";
    plugin.handcursor = false;
    plugin.align = "lefttop";
    plugin.x = plugin.y = 0;
    plugin.visible = true;

    and then add a Loader in the registerplugin event that loads the external swf-file.

    I think that could work...


    Or are there any other solutions?


    /Zarillo

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!