Topic: api onclick event
Hello,
is it possible to add onClick event for thumb in API?
right now default events are:
1. click on thumb
2. default automatic responce to it - image change
3. firing up svImageChange() event
is it possible to split default automatic behavior in these steps:
1. click on thumb
2. firing up "svThumbClick" event, or some other suitable name, which will return clicked thumb(image) ID
3. default automatic responce - image change. BUT with possibility to stop it with some param.automaticImageChange=false (which will be "true" by default)
4. firing up svImageChange() event
what I'm trying to implement is SWFAddress using javascript, without need to edit .fla sources.
whole process might look like:
1. thumb click fires up svThumbClick() and gets clicked thumb's ID (let's call it thumbID)
1a. param.automaticImageChange=false, so automatic image change does not take place
2. SWFAddress.setValue('/pics/'+thumbID+'/')
3. SWFAddress.onChange() {
- parsing url #/pics/picID/
- svAPI.showImage(picID);
- some other code perhaps
}
Feels good to have more freedom over possible actions )