Sie sind nicht angemeldet.

1

Dienstag, 31. Dezember 2013, 04:16

Draw button in java script plugin

Hi,
I'm developing plugin using java script in krpano. I read document to develop it but I can't do it.
Now I want to draw a button and display it in vtour and add function to the button.
Thanks for helps *smile*

2

Donnerstag, 2. Januar 2014, 03:08

Who can help me???? *sad*

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Donnerstag, 2. Januar 2014, 03:35

Easier to just make it in html wmode: transparent with a krpano.call

If you've already made it in flash actionscript its should be very similar. Where are you going wrong?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Donnerstag, 2. Januar 2014, 04:16

I have plugin.js file and I want add button to it.
I read document at here but I don't know how to create button

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

5

Donnerstag, 2. Januar 2014, 05:35

Is there a reason you don't want to do it in krpano? It's a lot easier and mostly the same. Just a bit more javascripty. It is faster though if you need to make a couple thousand buttons at once.

Try reading the basic krpano documentation first.
a normal krpano button would be
<layer name="button" url="button.png" enabled="true" keep="true" visible="true" onclick="myfunction();" />

in the javascript plugin you're doing the same thing but on a lower level one attribute at a time.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

6

Donnerstag, 2. Januar 2014, 07:48

Sorry about my english...
I want to add button from plugin not direct by code in tour.xml *g*
I want when I call plugin from website, plugin will be load with vtour with button. If without plugin, no button is display.

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

7

Donnerstag, 2. Januar 2014, 17:14

Then just use javascript. Forget about a plugin as that doesn't make sense in your situation.

Look here.
http://krpano.com/docu/js/#top
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen