" id="437"> 437 p.y = Math.max(0, Math.min(maxPos.y, p.y)); 438 return p; 439 } 440 441 private function getViewMaxPos():Point{ 442 var showSize:Dimension = getExtentSize(); 443 var viewSize:Dimension = getViewSize(); 444 var p:Point = new Point(viewSize.width-showSize.width, viewSize.height-showSize.height); 445 if(p.x < 0) p.x = 0; 446 if(p.y < 0) p.y = 0; 447 return p; 448 } 449 450 /** 451 * Return the component of the viewportable's pane which would added to displayed on the stage. 452 * @return the component of the viewportable pane. 453 */ 454 public function getViewportPane():Component{ 455 return this; 456 } 457 } 458