Topic: firstImageIndex: which exact syntax?

Hi group,

the variable firstImageIndex is obviously working in Felix's example, but seems to refuse to work in mine.

I would like to use that variable with a preceding random generator, to start the gallery with a random picture.

just to debug, I tried to modify the coding as follows:

<script type="text/javascript">
var fo = new SWFObject("ext/viewer.swf", "viewer", "700", "700", "7", "#F1F2F3");
               fo.addVariable("firstImageIndex", "2");
                fo.addVariable("preloaderColor", "0xffffff");
                fo.addVariable("xmlDataPath", "gallery.xml");
                fo.addVariable("fontColor", "0x919191");
                fo.addVariable("footer", "");
                fo.write("flashcontent");
             </script><script type="text/javascript" language="javascript">

            function show_album()
...

...and I expected to get the album starting at the 3rd picture.
But it obstinately refused to work, and started from the first picture.

Where is my mistake?

I want to replace "2" later with a random generated variable, but I think, I must first get it working with a fixed value and I am currently stuck here!

Thank you in advance
rin67630

Re: firstImageIndex: which exact syntax?

did you clear your cache?

Felix Turner
SimpleViewer Support Team.

Re: firstImageIndex: which exact syntax?

did you clear your cache?

Yes, I did.
You may have a look at
http://www.schirmer-mosel.de/homed1/index.htm

This html includes the non-functioning instruction
fo.addVariable("firstImageIndex", "2");

The english version at
http://www.schirmer-mosel.de/homee1/index.htm
is without the instruction.

Both behave the same way and start with the first image.

Thanks a lot for your help


RIN67630

Re: firstImageIndex: which exact syntax?

You are using SimpleViewer v1.8. 'firstImageIndex' was added in v1.8.5.

Felix Turner
SimpleViewer Support Team.

Re: firstImageIndex: which exact syntax?

You are using SimpleViewer v1.8. 'firstImageIndex' was added in v1.8.5.

Thank you Felix, you solved my problem: i had updated the viewer.swf in the root, but the HTML code loaded ext/viewer.swf!

Now I updated it at the right place (ext/viewer.swf), it is all right now!...

Thanks a lot!

RIN67630