You could try giving something like this a whirl...
var currentLink:String = "";
function onSlideShowData(event:SSPDataEvent) {
currentLink = event.link;
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);
function onSlideShowClick(event:SSPImageEvent) {
if (event.type == "imageClick") {
// Alter the image link
currentLink = currentLink + "?someparam=somevalue";
// Send the user to the altered url.
flash.net.navigateToURL(currentLink);
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_CLICK, onSlideShowClick);
It basically stores the current link
(assuming you defined one in the xml) to a variable whenever the image changes. Then when you click an image it just uses the standard navigateToUrl()
method.
Now, I have some doubts that this will work because you aren't able to cancel the SSPImageEvent
from within the handler function, and therefore I think that SSP will just fire the navigateToURL()
function on whatever was defined in the xml immediately after your handler executes. But give it a try.