Page 1 of 1

"onPageChnaged" event not being fired.

Posted: Wed Mar 12, 2014 1:10 am
by ahsan
Hi,
"onPageChnaged" event not being fired. I convert the document with "document setting" of "single file with ActionScript3".

Code: Select all

function onPageChanged(sender, page) {
//this will remove last page visit on first document load
if ((pagecount == 1) && page != 1) {
pagecount++;
return;
} 

Re: "onPageChnaged" event not being fired.

Posted: Wed Mar 12, 2014 1:59 am
by staff
Please check if Document API is enabled: the Disable Print2Flash Document API Support option in the Protection Tab of Document Options window should not be set.
To get a sample on how onPageChanged event should be hooked on in HTML pages, check an SDK HTML sample demonstrating this (the SDK can be downloaded from our download page at http://print2flash.com/download.php ; the sample is located in the DocumentAPI\HTML folder of SDK archive).
If this does not help, could you send a sample document and HTML page to our support e-mail so that we could check it?