how to get current scroll position???

Publishing Print2Flash Documents embedding them in Flex applications
Post Reply
psunniaitec
Posts:15
Joined:Tue Jan 22, 2008 5:09 am
how to get current scroll position???

Post by psunniaitec » Thu Jan 31, 2008 6:51 am

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..

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

Re: how to get current scroll position???

Post by staff » Thu Jan 31, 2008 8:54 am

Try to change your function parameter type to Object:

Code: Select all

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

Post Reply