Sie sind nicht angemeldet.

1

Donnerstag, 26. November 2009, 13:03

distorted hotspot

hello,
I was create the plugin which contains several of action buttons (created in Flash via as3 interface)...
when I include the plugin to krpano - it works fine..

but.. ( always is but! ) ;-)
when I trying to use this buttons as distorted hotspot... all included functions miss out.
(distorted="false" - works fine)

any idea?
*smile* Have a good day!

2

Donnerstag, 26. November 2009, 17:44

Hi,

I was going to ask the same question.

I have a swf with several MouseEvent listeners.

Everything is fine when the hotspot.distorted = false, but when setting to distorted to true, no handler is working anymore.


Is there a workaround ?

Thanks !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

3

Freitag, 27. November 2009, 11:56

I've found a workaround : targetting the parent.parent DisplayObjectContainer

Quellcode

1
parent.parent.addEventListener( MouseEvent.MOUSE_DOWN, onDown);


this is working, except (there is always an exception ! :-) ) for the

parent.parent.addEventListener( MouseEvent.DOUBLE_CLICK, onDoubleClick );

even with the doubleClickEnabled set to true ...

Hope this help, ans still looking for a better solution !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

4

Mittwoch, 2. Dezember 2009, 17:36

my code:

Quellcode

1
2
this.name1.addEventListener(MouseEvent.CLICK, action1);
this.name2.addEventListener(MouseEvent.CLICK, action2);


I don't know how to use the parent.parent.
Can you help me please?
*smile* Have a good day!

5

Mittwoch, 16. Dezember 2009, 15:49

Hi,

You can try this :

Quellcode

1
2
parent.parent.addEventListener(MouseEvent.CLICK, action1);
parent.parent.addEventListener(MouseEvent.CLICK, action2);
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

6

Donnerstag, 17. Dezember 2009, 11:37

I tried this, but nothing.. *cry*

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//import krpano interface
import ...

name1.parent.parent.addEventListener(MouseEvent.CLICK, action1);
name2.parent.parent.addEventListener(MouseEvent.CLICK, action2);

function action1(mouseevent:MouseEvent):void
{
krpano.call('call1');
}
function action2(mouseevent:MouseEvent):void
{
krpano.call('call2');
}
*smile* Have a good day!

7

Donnerstag, 17. Dezember 2009, 15:10

Hi,

do you want to click single elements in your distorted plugin/hotspot?

that's not possible yet, because to be able to draw the plugin distorted,
it will be rendered into a bitmap, and this bitmap is used for rendering/displaying,
and there is no connecting between the rendered bitmap and the original
plugin,

to make is even possible, it is necessary to catch all the mouse events
over the distorted bitmap, remap the mouse coordinates from 3d space
back to the 2d plugin space and send the modified events to the plugin,

not so easy but doable of course
but I hope I can provide this functionality in one of the future releases,

best regards,
Klaus

8

Montag, 16. August 2010, 16:40

hi,

is already some progress on this issue?

9

Mittwoch, 18. August 2010, 11:56

Hi,

no, sorry, this functionality is still not ready,
(just as note - this is a very complex and advanced thing and I can't say it will be ready),

best regards,
Klaus

10

Freitag, 5. Juni 2015, 10:55

swf file created by flash as3 distored in the krpano

Maybe out of date, html5 more popular. Is html5 can substitute adobe flash? it can get the mouse click event but as3 can not yet? I see the demos, little of them use flash, but I have much "NEXT" bottons for users. Sorry for ask this before try the 1.8.

Ähnliche Themen