Calling an xml using an external swf plugin

  • Hi all

    I have had success creating AS3 hotspots from a swf plugin (like a floorplan for example) using the code below

    My question is: Although it works in the main timeline - putting the Button into a movie clip doesnt work

    Ive tried root. and parent. before the krpano.call but no success

    I`m sure its easy?? anyone... Klaus *wink*

    cheers

    John

    Zitat

    "function room1_clicked(mouseevent:MouseEvent):void
    {

    // load pano1.jpg - note: KEEP PLUGIN!
    krpano.call("loadpano(1.jpg_cube.xml,null,MERGE,BLEND(1));");
    }
    "

  • Hi,

    you need to be sure that the "krpano" variable is accessible,
    e.g. when the "krpano" variable was defined in the main plugin movieclip/sprite,
    it can't be accessed automatically by a other movieclip/sprite,

    to make it easier - just a get new local plugin interface instance before:

    e.g.

    Code
    var krpano:krpano_as3_interface = krpano_as3_interface.getInstance();
    krpano.call(...);

    best regards,
    Klaus

Jetzt mitmachen!

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