|
|||||||||||||||||||||||||||||
|
|
I'm came up with this when creating an application where "sticky notes" were to be attached to locations within PDFs. In order to track locations where the users placed notes on a document I needed to know where the visible rect of the PDF document sits within the sprite when the scrollH = 0 and scrollV = 0 (view of pdf document is smaller than the sprite). Currently there is no property that exposes this information, so I wrote this behaviour. Use: (Impressario sprite).getRectOfView() returns a rect of the boundary of the current view of the document contained within the sprite, even if it's smaller than the sprite. Rect is relative to the stage (or activeWindow).
|
|
|