You are not logged in.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Tuesday, February 21st 2012, 11:30pm

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

Monday, February 27th 2012, 4:26pm

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:

Source code

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


best regards,
Klaus

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

3

Thursday, March 1st 2012, 6:04pm

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

Thursday, March 1st 2012, 6:12pm

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

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

5

Thursday, March 1st 2012, 6:13pm

Thanks klaus,

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

Thanks again. *thumbsup*
Steph.
Steph

6

Thursday, March 1st 2012, 6:15pm

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

Similar threads