Scroll down through the document pages automatically

Using Print2Flash Document API
Post Reply
marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Scroll down through the document pages automatically

Post by marcrock » Tue Jul 23, 2013 1:19 pm

Is there a way as soon as the flash document appears it starts to scroll down to the following pages automatically with no need to click on the next page button? I was taking a look at the ScrollPane properties and there is one called verticalScrollPosition... would have some way to increase its value using a timer so we can go automatically to the next page before clicking on the next page button?

Thanks in advance.

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

Re: Scroll down through the document pages automatically

Post by staff » Tue Jul 23, 2013 3:05 pm

You may use NextPage Document API function to switch between pages. You may call this function using a timer.

marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Re: Scroll down through the document pages automatically

Post by marcrock » Wed Jul 24, 2013 6:55 am

Nice to know. I just have seen the documents and read all the information about. But the standard template works fine for me, I only would like to use it but adding the function you mentioned, NextPage(); but I didn't see this option nowhere. How can I do that? Use the standard template but adding that function inside its code... I can develop a totally custom viewer after but for now I only would like a quick thing for this client as they're in a hurry. Is there a simple way to do that?

Thank you very much in advance!

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

Re: Scroll down through the document pages automatically

Post by staff » Wed Jul 24, 2013 7:30 am

To implement this approach you may use the standard template. You may load your documents in an HTML page or your own Flash or Flex movie and then invoke NextPage Document API function from there. To learn how to load Print2Flash documents in this way, please see these help topics: Print2Flash SDK contains samples of using of Print2Flash Document API (the samples are located in the DocumentAPI folder of SDK archive).

marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Re: Scroll down through the document pages automatically

Post by marcrock » Wed Jul 24, 2013 8:45 am

That's perfect! This was exactly what I wanted! :-)
Great! Very cool assistance you gave me. Worked at the first attempt and this was what my client needed for now. I'm going to analyze the code for making custom external viewers but this solution you provided me works perfectly for what we're in need now.
Thank you very much!!

marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Disable printing but the user can still print the document

Post by marcrock » Thu Jul 25, 2013 10:09 pm

I have chosen the "Using Print2Flash Document API for ActionScript3 documents from Flash" for making my first work using your software. Everything goes fine now but only one thing is not working properly: I have disabled the capability of user to print when converted my client's document but when I place it online everyone still can print it. As the document is being accessed by a parent flash movie I created maybe I have to add some function on the parent movie also, is that right? Please, let me know what I still have to do so no user can print my client's document.

Regards.

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

Re: Scroll down through the document pages automatically

Post by staff » Fri Jul 26, 2013 1:38 am

Please see this topic for information on this issue: viewtopic.php?f=21&t=8&p=8

marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Re: Scroll down through the document pages automatically

Post by marcrock » Fri Jul 26, 2013 7:00 am

I just have read everything, understood and have passed the information to my client. Thanks a lot by your cool attention and I'll be indicating your system for all my friends that need something related to what your product does, OK?

Best regards.

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

Re: Scroll down through the document pages automatically

Post by staff » Fri Jul 26, 2013 9:44 am

Thank you for your kind words!

Post Reply