in my application i tried to set the scrollposition of one document with respect to another document like:
public function check():void{
doc1.getScrollPosition(curpos);
}
public function curpos(pos:Object):void{
trace(pos);
doc2.setScrollPosition(pos);
}
but its not working !!!
is any change required. please help.
How to set scroll position???
Re: How to set scroll position???
The line setting scroll position should look like this:
There is a type incompatibility between Object and Print2Flash.Point types. Perhaps, we need to modify Print2Flash component in the future to return Print2Flash.Point type in getScrollPosition method return value handler.
Code: Select all
doc2.setScrollPosition(new Print2Flash.Point(pos.x,pos.y))