Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Tangent12

Schüler

  • »Tangent12« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Liverpool, UK

Beruf: Application Developer

  • Nachricht senden

1

Dienstag, 7. Juli 2009, 20:49

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.

2

Dienstag, 7. Juli 2009, 21:00

For that you have to make a square with 4 side (4 hotspot differents) so the center of the square is not triggering mouseover event

sorry for by bad english *cry*

Tangent12

Schüler

  • »Tangent12« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Liverpool, UK

Beruf: Application Developer

  • Nachricht senden

3

Dienstag, 7. Juli 2009, 21:05

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.

4

Dienstag, 7. Juli 2009, 22:20

Thanks for my english

Impossible to make the transparent aeras non clickable, because there are some pictures ;-)

5

Mittwoch, 8. Juli 2009, 00:00

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

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

6

Mittwoch, 8. Juli 2009, 04:10

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

Zitat

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.

7

Mittwoch, 8. Juli 2009, 15:53

Hi,

I will try to find a way to check for transparency areas, but I'm not sure yet if that is possible in flash...

best regards,
Klaus

8

Mittwoch, 8. Juli 2009, 16:35

Hi, Klaus

it will be great if you can do that *thumbsup*

Tangent12

Schüler

  • »Tangent12« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Liverpool, UK

Beruf: Application Developer

  • Nachricht senden

9

Mittwoch, 8. Juli 2009, 20:11

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.

10

Montag, 13. Juli 2009, 09:54

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

Tangent12

Schüler

  • »Tangent12« ist der Autor dieses Themas

Beiträge: 89

Wohnort: Liverpool, UK

Beruf: Application Developer

  • Nachricht senden

12

Montag, 13. Juli 2009, 22:33

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.

Ähnliche Themen