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.

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

1

Dienstag, 21. Februar 2012, 23:30

How to control and delay a plugin loading ?

Hi,

I've a slideshow create with "slideshow box2" based on flash component which read a xml for the source of the images.This .swf is set and export with flash cs. Loaded in the pano through a plugin or hotspot. This should be called and start when clicking on a hotspot. Thing is the start is automatic and has to be, so if the plugin (or hotspot) is loaded with the pano, the slideshow will start even if it's visible false.
Is it possible to master the loading of a plugin and then it will start at the right time ?

Thanks everybody. *smile*
Steph.
Steph

2

Montag, 27. Februar 2012, 16:26

Hi,

to delay the loading of a plugin, add it or set the url dynamically,
e.g. call this code when you want your plugin to load:

Quellcode

1
2
addplugin(yourplugin);
set(plugin[yourplugin].url, ...);


best regards,
Klaus

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

3

Donnerstag, 1. März 2012, 18:04

Hi Klaus,

Thank you. So i could set all plugin's attributes here after addplugin(myplugin); ? Why did you say "add it" or "set it" . I need to do both no?

Thanks for your time.
Steph.
Steph

4

Donnerstag, 1. März 2012, 18:12

Hi,

e.g. you could define the whole plugin xml and just let the "url" attribute empty - and then later just set the url,
or alternatively don't define anything in the xml add the plugin by calling addplugin(...) and set all plugin attributes dynamically (or mix both methods)

best regards,
Klaus

esys

Fortgeschrittener

  • »esys« ist der Autor dieses Themas

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

5

Donnerstag, 1. März 2012, 18:13

Thanks klaus,

I guess no error message in the log if url attribute is empty.

Thanks again. *thumbsup*
Steph.
Steph

6

Donnerstag, 1. März 2012, 18:15

I guess no error message in the log if url attribute is empty.
right, no error.