Page 2 of a PDF
J. Landman Gay
jacque at hyperactivesw.com
Fri Apr 5 17:48:00 EDT 2013
On 4/5/13 8:33 AM, dfepstein at comcast.net wrote:
>
>
> I think this will work on a Mac:
>
>
>
> on pdfToPage n -- show page n of the pdf in player 1
> put round(n) into n -- n as passed by scrollBarDrag doesn't seem to
> -- always be an integer
> put (n-1)*75 into t
> set the playSelection of player 1 to true
> set the startTime of player 1 to t
> set the endTime of player 1 to t+1
> play step player 1
> end pdfToPage
That's pretty good, it works great. Where'd you get the "75" from?
Based on your calculation, this one-liner also works:
on goPage n
set the currenttime of player 1 to (n-1)*75
end goPage
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list