Hello, I am trying to show your mouse over the image popup when I right hand to the mouse on the last images I'm going out popup screens here TalentInfoPopUp is ** TitleWindow
this is my sample code
private static var staticWindow are: TalentInfoPopUp = null; Private static var visible: Genius = InfoPopUp = null; Public static function show (T: Object, parent: Displeobjekt, x: Number, y: Number): void {if (staticWindow null ==) as {visibleWindow = staticWindow = PopUpManager.createPopUp (parents, TalentInfoPopUp, false) TalentInfoPopUp In; } And if (visible == empty) {visibleWindow = staticWindow; PopUpManager.addPopUp (static window, parent, wrong); } PopUpManager.centerPopUp (staticWindow); Stable window.TLent = t; Static Window.x = x; StaticWindow.y = y; PopUpManager.bringToFront (staticWindow); Stable window.TLent = t; StaticWindow.move (X, Y); StaticWindow.callLater (staticWindow.setPosition, [X, Y]); //staticWindow.setPosition(x,y); } Private function setPosition (nx: int, ny: int): void {var maxWidth: int = stage.width; Var maxHeight: int = stage.height; If (nx> maxvide-width) {nx = nx-width; } If (ny> maxHyight-height) {ny = ny-height; } This.move (nx, ny);
systemManager.screen.width and systemManager. screen.height instead of stage.width and stage.height ; localToGlobal and globalToLocal methods and how to use them.
Comments
Post a Comment