Page 1 of 1

how to get current scroll position???

Posted: Thu Jan 31, 2008 6:51 am
by psunniaitec
how can i collect the current scroll position??

i tried just like doing in the case of getting currentpage.

like:

public function scrollpos():void{
doc.getScrollPosition(curpos);
}
public function curpos(pos:Point):void{
trace(pos);
}

but is not working.

please help me by giving an example code..

Re: how to get current scroll position???

Posted: Thu Jan 31, 2008 8:54 am
by staff
Try to change your function parameter type to Object:

Code: Select all

public function curpos(pos:Object):void{
trace(pos);
}