Sie sind nicht angemeldet.

1

Mittwoch, 23. März 2011, 09:04

XML file size

Hi,
is there a limitation for XML file size? I want to use single file to set whole tour, now with 30% options done it is about 100kB, but it can be a lot bigger ;)

Are there any issues with big files?
Myksa.

2

Mittwoch, 23. März 2011, 09:11

Hi,

no, there is no (basic) limitations,

about filesize - maybe try if you can to use the <style> and <action> elements to reduce the filesize,
with the <style> element you can collect the attributes that are the same for all plugin and hotspots elements,
and with <action> you can try to collect code that will be used several times,

e.g.

Quellcode

1
2
3
4
5
<style name="buttonstyle" url="button.png" alpha="0.5" onover="tween(alpha,1);" onout="tween(alpha,0.5);" />
<plugin name="button1" style="buttonstyle" crop="..." onclick="..." />
<plugin name="button2" style="buttonstyle" crop="..." onclick="..." />
<plugin name="button3" style="buttonstyle" crop="..." onclick="..." />
<plugin name="button4" style="buttonstyle" crop="..." onclick="..." />


Are there any issues with big files?
yes, the loading takes longer of course

best regards,
Klaus

3

Mittwoch, 23. März 2011, 09:23

Thanks for a fast answer Klaus!
Yes, I'm using action and style items, but mostly filesize increases because of many descriptions and many panoramas.
If only disadvantage is longer loading time, i'm not affraid ;)
Myksa.

Ähnliche Themen