Nitz
Nitz

Reputation: 1726

How to get the current page no. in flex paper?

there is no tags on flex paper.
so make tag on flex paper.

Now the question..
How do i get the page number in flex paper.
I want to add some events when page is changed.
And i also want some events on particular some pages. so i need that current page number which is viewing by the user in flex paper.

Upvotes: 1

Views: 961

Answers (2)

Justin Geeslin
Justin Geeslin

Reputation: 3411

alert('Current page:' + getDocViewer().getCurrPage())

That should get you want you need. getDocViewer() get the instance of FlexPaper in the page.

getCurrPage is one of it's methods.

See example page here : http://flexpaper.googlecode.com/svn/trunk/Example/flash/debug/FlexPaperViewer.html

Be sure your page and Flash object have loaded completely before you call this method.

Upvotes: 0

darpified
darpified

Reputation: 126

From API page: at http://code.google.com/p/flexpaper/wiki/API

... getCurrPage (no args.) : get the currently viewed page ...

Upvotes: 3

Related Questions