Stick element to bottom-right corner (AS3 - Adobe AIR)?
Posted
by Martti Laine
on Stack Overflow
See other posts from Stack Overflow
or by Martti Laine
Published on 2010-04-12T16:42:26Z
Indexed on
2010/04/12
16:53 UTC
Read the original article
Hit count: 405
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
© Stack Overflow or respective owner