Hotspot Plugin for KRPANO 1.0.8 beta8 does not receive mouse events.

  • Hello all,

    I got a little bit stuck in developing a plugin for hotspots as the plugin does not receive mouse events.

    Here is my source code


    I already tried to register the mouse event handler for the plugin object and for the mlabel object (my plugin sprite). Also tried with other mouse event types like MOUSE_DOWN. No success.

    Can anybody help me?
    Thanks in advance.

    Thomas

  • Hi,

    Code
    this_arrow = new Shape();

    a Shape object doesn't support mouse (click) events,

    see here:
    http://help.adobe.com/en_US/AS3LCR/F…l#methodSummary

    a quote from there:

    Quote

    the Sprite class also includes a graphicsproperty, and it includes other features not available to the Shape class. For example, a Sprite object is a display object container, whereas a Shape object is not (and cannot contain child display objects). For this reason, Shape objects consume less memory than Sprite objects that contain the same graphics. However, a Sprite object supports mouse click events, while a Shape object does not.


    so try using a Sprite instead

    best regards,
    Klaus

Participate now!

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