Page 1 of 1
Disable scrolling
Posted: Thu Jul 25, 2013 10:51 am
by marcrock
Please, the use of the function enableScrolling(enable) is not clear for me. Could you place a simple example, please? I'm trying it inside flash but am getting errors...
Code: Select all
function onPageLoaded(e:Event):void {
P2FDoc.enableScrolling();
}
How to use that "enable" argument?
Thanks!
Re: Disable scrolling
Posted: Thu Jul 25, 2013 11:32 am
by staff
You should pass a Boolean parameter to the enableScrolling function call:
- false - if you want to disable scrolling;
- true - if you want to enable scrolling.
So to disable scrolling you need to make the following call:
Re: Disable scrolling
Posted: Thu Jul 25, 2013 1:00 pm
by marcrock
Thanks by your reply. In reality this was the first thing I did but occurred a problem just after I did that: the swf loaded document seems to appear with some percentage of transparency, dimmed. The code I have used and that really stopped the scrollbar was:
Code: Select all
function OnLoaded(e:Event) {
P2FDoc = P2FDocLoader.getDoc();
P2FDoc.enableScrolling(false);
}
It worked indeed, but the loaded swf files became dimmed.
Would be a way to call the scrollpane component inside the swf file so I can change its properties?
Thank you very much in advance!
Re: Disable scrolling
Posted: Thu Jul 25, 2013 2:02 pm
by staff
To get access to the ScrollPane inside the document, use the following reference:
Here P2FDoc is a reference to the document returned from the getDoc call.
Re: Disable scrolling
Posted: Thu Jul 25, 2013 3:49 pm
by marcrock
Cool. No scrollbars and no dragging anymore. Just one more question: do you know how can I change the hand cursor when the user mouse over it?
Regards.