actionscript 3 - position a child window -
i need positioning child window created using
var win:mywindow = new mywindow();
where mywindow.mxml
contains <s:window.......
the child window open desired. place @ specific (x,y) position reference windowsapplication
.
i have tried
var parentwindowhandle:* = nativeapllcaition.nativeapplication.openedwindows[0]; win.x = parentwindowhandle.x + 200;
however, not work. content of mywindow gets shifted 200. (mywindow.mxml contains label. label shifts 200 right. not wanted).
the parentwindowhandle
correct. have checked using alert.show(parentwindowhandle.title)
displayed correctly.
i pretty new adobe air.
edit: tried win.x=200 suggested. content seems moving not window.
for moving window :
win.nativewindow.x = 200;
Comments
Post a Comment