Stick element to bottom-right corner (AS3 - Adobe AIR)?
- by Martti Laine
Hello
I'm creating a simple AIR app with resize-functionality. Of course i need to position a resize-arrow to the bottom-right corner. Here's my code:
stage.addEventListener(Event.RESIZE, handleResize);
function handleResize(e:Event):void{
resize_btn.y = stage.stageHeight-resize_btn.height;
}
This doesn't work, my button gets out of the window very quickly. How could I make this work?
Martti Laine