page click event

Using Print2Flash Document API
Post Reply
necrite
Posts:1
Joined:Thu Mar 06, 2008 5:29 am
page click event

Post by necrite » Tue Mar 11, 2008 9:31 am

Hi,

Is there a way to be notified when the user click on a certain page (Event PageClick = xx).

I'd like to make a button to toggle the view between 100% (normal) and 10% (thumbnails).
In thumbnails view, when a page is clicked this should switch to the normal view and display the clicked page.
I don't know how to do this (how to know wich page was clicked).

It's seems that P2F doesn't have a normal behaviour : I'm in 10% zoom, I scroll down the document until the end (currentPage = 294) but when I switch to zoom 100% the currentPage change back to 1. Is it normal ?

Thanks.

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: page click event

Post by staff » Fri Mar 14, 2008 7:29 pm

You may get a reference to the page movie using getPage Document API function and then attach an event handler to it to track mouse clicks.

See also a sample attached to this thread: http://print2flash.com/forum/viewtopic. ... &t=23&p=80 This sample demonstrates how you can handle clicks on pages (though it does not use getPage function)

Post Reply