Topic: First image not pre-loading when firstImageIndex is invoked
I have a simpleviewer pro 2.0.1 gallery embedded into a .php page. I just modified the code of my .php page so that I can use firstImageIndex to link directly to images in the gallery. I am using php to GET a query string variable called "id" which I am passing to flashvar.firstImageIndex like this:
<?php //set $id 's value to whatever is contained on the url. $id = $_GET['id']; ?> flashvars.firstImageIndex = <?echo("$id")?>;
For example, if I add ?id=4 onto my url, the gallery starts at image index 4. This part works perfectly.
There is one big hitch though: whenever I load the page using any index other than 0, the very first image and thumbnail in the gallery do not preload. In this case, you can only view this image by going to the second image in the gallery and clicking the "previous image" button.
If I use ?id=0, the first image loads just fine. If I use ?id=anything else, the first image/thumbnail simply does not show up! Anyone know what could be causing my bug?
Here are direct links to my pages. The first shows what how the image shows up when ?id=0. The second shows how the image does not appear when ?id is not 0.
And my full simpleviewer head:
Any help on this would be greatly appreciated. Thanks all!