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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -