flash - Air stagewebview scroll manipulation -


i need desktop adobe air app scroll both vertically , horizontally stagewebview (in order center content) after load completed, hide scroll vars of stagewebview , prevent scroll after initial repositioning without affecting interaction inside external document (internal scroll bars in div). right i've been able of load external url searched rest without luck. or advice and/or documentation? thank in advance guys , have nice week.

the following code center scroll , hide scroll bars:

                var scrollbarwidth:int = 15;                 var maxhscroll:int = html.htmlloader.contentwidth-html.width+scrollbarwidth;                 var maxvscroll:int = html.htmlloader.contentheight-html.height+scrollbarwidth;                  html.horizontalscrollposition = (maxhscroll /2);                 html.verticalscrollposition = ( maxvscroll /2);                  html.verticalscrollpolicy = "off";                 html.horizontalscrollpolicy = "off"; 

see this link more info on how handle html dom events in air.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -