You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tangent12

Trainee

  • "Tangent12" started this thread

Posts: 89

Location: Liverpool, UK

Occupation: Application Developer

  • Send private message

1

Tuesday, July 7th 2009, 8:49pm

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

Tuesday, July 7th 2009, 9:00pm

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

Trainee

  • "Tangent12" started this thread

Posts: 89

Location: Liverpool, UK

Occupation: Application Developer

  • Send private message

3

Tuesday, July 7th 2009, 9:05pm

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

Tuesday, July 7th 2009, 10:20pm

Thanks for my english

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

5

Wednesday, July 8th 2009, 12:00am

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

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

6

Wednesday, July 8th 2009, 4:10am

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

Quoted

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

Wednesday, July 8th 2009, 3:53pm

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

Wednesday, July 8th 2009, 4:35pm

Hi, Klaus

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

Tangent12

Trainee

  • "Tangent12" started this thread

Posts: 89

Location: Liverpool, UK

Occupation: Application Developer

  • Send private message

9

Wednesday, July 8th 2009, 8:11pm

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

Monday, July 13th 2009, 9:54am

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

11

Monday, July 13th 2009, 10:45am

Great Klaus, thanks a lot *thumbup*

Tangent12

Trainee

  • "Tangent12" started this thread

Posts: 89

Location: Liverpool, UK

Occupation: Application Developer

  • Send private message

12

Monday, July 13th 2009, 10:33pm

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.

Similar threads