|
-
Positioning two external AIR windows ..... ongoing thread ....
Hi there again,
After working everything out with the creation of these two windows and again mentioning that their work perfectly yet I did get hung up on a small other matter with them of positioning them !
So I did research and tried what I could, but (X & Y) must have been the useful once yet did not work at all neither within the actual windows nothing seem to work ??? So here the code again for good measure and the Link to the original thread !
http://board.flashkit.com/board/show...e-Windows-....
Maybe somebody would like again to share there knowledge and which would be greatly appreciated !
regards aktell
Code:
<mx:Script>
<![CDATA[
import mx.core.Window;
import mx.events.FlexEvent;
private var ma:MyWinOne;
private var myTimerOne:Timer;
private var countOne:int=0;
protected function app_creationCompleteHandlerOne(event:FlexEvent):vo id {
ma = new MyWinOne();
ma.open();
myTimerOne=new Timer(1000, 6);
myTimerOne.start();
myTimerOne.addEventListener(TimerEvent.TIMER, popupHandlerOne);
}
private function popupHandlerOne(event:TimerEvent):void {
if (countOne == 5) {
ma.close();
myTimerOne.removeEventListener(TimerEvent.TIMER, popupHandlerOne);
}
countOne++;
}
]]>
</mx:Script>
-
Senior Member
I strongly recommend you to use the spark component window, but you seem to have an old flex version. Since it is a component you can use move(x,y):
ma = new MyWinOne();
ma.open();
ma.move(600,600);
You need to set x and y values higher than normal, since the move(0,0) position is outside of the stage.
- The right of the People to create Flash movies shall not be infringed. -
-
Hi there again,
Thanks for the reply! but which ever way I use it in my Application again NO show - (ma.move(1000,1000); OR even ma.move(10000,10000) - it is all the same NO response at all.
BUT, again if I run it with the last code you send me it works perfectly well as it should do !!!
regards aktell
-
Hi, Well, I take everything back from my last mail as I was at fault mistaking on module and one component for another! So it is working now perfectly! Thanks a lot again most appreciated !!! regards aktell
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|