addplugin error in as3 with 1.0.8.14

  • Hi,

    I've a little problem with a plugin I've done in as3.

    Since the version 1.0.8.14 from the 01 09 2011, my plugin stop working but worked with the 1.0.8.14 rc3.

    It seems to block here :

    Code
    krpano.call( "addplugin(transition_video);" );
    	
    	var transition_video:Object = krpano.get("plugin[transition_video]");
    		
    	krpano.trace(0,transition_video);

    in the rc3 version, the trace gives me : "DEBUG: [object krpano_plugin]" but since the version 1.0.8.14 01 09 2011 it only gives me "DEBUG : " and I can't add properties to my transition_video (I think, the addplugin don't create it but I don't know why)

    It doesn"t work either with the last version 1.0.8.14 from 23 09 2011.

    Someone has an idea why ?

    Thanks

    Yannick

  • Hi,

    okay, that's a bit difficult...

    the problem could be that the internal action queue is busy when you were calling the addplugin action (the older version 1.0.8.12 had a bug here - here that call could have worked, but therefore the following actions were working wrong)... I'm not sure yet if that can be fixed automatically...

    but here a 'hack' that could fix that problem:

    instead of:

    Code
    krpano.call( "addplugin(transition_video);" );

    use this code:

    Code
    var krpano_addplugin:Function = krpano.get("addplugin");
    krpano_addplugin("transition_video");

    this code gets and calls the addplugin() function directly without krpano action queue,

    best regards,
    Klaus

Participate now!

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