Hotspot Transparency

  • Hi all,

    I've just started to play around with hotspots and I have a question.

    If I use an swf for a hotspot is it possible that the transparent areas of the swf do not trigger the mouseover of the hotspot?

    Please see the example here.

    You will see that I have made a very simple square with a transparent centre. When you move the mouse over the hotspot the transparent area in the middle is also triggering the mouseover event. Is it possible to make it so that just the opaque areas of the swf trigger the hotspot?

    Thanks.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

  • Hi Job,

    That makes sense. I used the square as an example though, if I had more elaborate designs, unusual shapes, I presume that I would not be able to make the transparent areas non clickable?

    Another example would be the new flyout hotspot, if I constructed the square as you have suggested I wouldn't be able to animate the falyout as a single object I presume?

    You english is fine by the way.

    Thanks.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

  • perhaps a plugin of a picture of some sort with alpha set to 0 and zorder at least one higher than your plugin that you want clicked.

    Center this plugin in the middle of your clickable plugin. And set the middle plugin to do nothing.


    Just ideas, not backed up with any code.

    Jarredja

  • I think the "mask" functionality in beta 7 will do what you want. http://www.krpano.com/forum/wbb/inde…ad&threadID=514

    Quote

    plugin/hotspot "mask"

    • use a other plugin/hotspot to mask out an current plugin/hotspot
    • if the mask contains an alpha channel it will be used for masking otherwise only the rectangle shape of it
    • usage:
    • mask="pluginname" or mask="plugin[pluginname]" or mask="hotspot[hotspotname]"
    • MASK EXAMPLE

    ---

    re-reading your post... don't know about this working with swf hotspots... especially if you have intricate design and it moves / spirals or something.

  • Hi guys, thanks for all your replies,

    I'll have a go at the masking this evening Graydon, if it does work with an swf then it may be OK as I am not looking to do anything too intricate but it would be nice if I could.

    Klaus, thanks for looking into this for me. For what it is worth, I tried loading an swf into a basic Flash movie. If I placed a button with transparent areas into the swf that I was loading in, it worked. To clarify, I have blank movie1, then I load in the swf of movie2, movie 2 contains a button with a big hole in it. When I view movie1 the button still has its transparency.

    I know things are probably different here but that is what I'd ideally like to have. That way I can make very detailed hotspots without having to worry too much about the rectangle of their swf, I feel it would open many creative possibilities.

    Click here to see movie1 from my above example, the blue square is movie2 loaded in, but the blue square was already a button.

    Thanks. *thumbsup*

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

  • Hi,

    the problem with transparency is when using a distorted hotspot the swf is drawn to a internal bitmap and then all informations about the shape are lost, otherwise distorting would not be possible,

    but I will try to find a way to make it possible

    best regards,
    Klaus

  • Thanks Klaus, I can understand the problem, I think.

    If a hotspot is distorted the actual transpaernt part is changing shape too. Sounds complex, but if anyone can do it..... you the man!

    Would it be possible to use a mask colour?

    Thanks.

    T12

    Liverpool based panoramic photography, virtual tour and
    web media organisation specialising in high quality web experiences.

Participate now!

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