Setup plugin behind hotspots / always-active listener

  • Hi,

    i want to set up a plugin with custom listeners (mouse, keyboard) whitch should always be active.
    Problem is, that the hotspots are hiding behind my plugin and stop recieving mouse events, even with "capture" set to "false" (on the plugin of course).

    The plugin itself is full-sized (100% x 100%, transparent), so the mouse events can be called.
    Also the "zorder" attribute isn't working properly in this case.

    Any help, solution or workaround is highly appreciated.

  • this is the plugin (AS3) code
    "mc_overlay" is a full-screen movieclip

    and the XML

    any ideas?

  • I'm sorry, this doesn't work.
    Setting enabled="false" disables the plugin to receive mouse events.
    But the hotspots are working of course this way.

    I simply want to set my plugin behind the hotspots.

    Any other ideas?
    Thanks

    Einmal editiert, zuletzt von mayanic (20. August 2010 um 13:07)

  • Hi,

    the zorder works only within a layer,

    but you when are working from AS3 you could try to add your visible elements manually to the hotspot layer,
    e.g.

    Code
    var hotspotlayer:Sprite = krpano.get("hotspot.layer");
    hotspotlayer.addChildAt(0, your_as3_displayobject );

    best regards,
    Klaus

  • Code
    var hotspotlayer:Sprite = krpano.get("hotspot.layer");
    hotspotlayer.addChildAt(0, your_as3_displayobject );

    you sir, are a genius
    Although it works with:

    Code
    hotspotlayer.addChildAt(your_as3_displayobject, 0);


    The indexing should be second, the object first

    Thank you very much *g*

Jetzt mitmachen!

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