Previous | Next | (P-PDF) Developers
Topic: Help with PDF based Animation?
Conf: (P-PDF) Developers, Msg: 32476
From: Jub
Date: 1/10/2002 01:23 AM
I haven't played around with icons much,
but by the look of this, it should be a
doc level function, called from your button.
I may be wrong, but it looks like you should be able to go to the first/last icon using the same principles in this function.
i.e...
this.getField('Image').buttonSetIcon(0);
//for the first icon
var LastIcon = this.icons.length-1;
this.getField('Image').buttonSetIcon(LastIcon);
//for the last icon
Jub
>function goForward() {
>
>if (typeof global.iconNo == 'undefined')
> global.iconNo = 0;
> // define a counter
>
> global.iconNo = ++global.iconNo % this.icons.length;
> //increment counter
>
> var icon =this.getIcon(this.getNthIconName(global.iconNo));
> this.getField('Image').buttonSetIcon(icon);
> }
>