• no

    in the xml there are statically defined actions as
    <action name="someaction">
    some code to execute
    </action>

    my question is if can be created such actions at run-time for ex. if is possible from a plugin to create a new action that wasn't originally in the xml and that action to execute code that is known only at run-time? I add hotspots to the pano at run-time and I want to have actions for showing and hiding them, and the number of the hotspots and their names is known only at run-time.

    fakusz

  • Hi,

    yes, that's possible,
    just a simple set is necessary for that,

    e.g. in the xml:

    Code
    set(action[test].content, trace('hello from the test action');trace(abc); );

    or in as3:

    Code
    krpano.set("action[test].content", "trace('hello from the test action');trace(abc);");

    best regards,
    Klaus

Participate now!

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