开发者

AIR: NativeWindow startMove only vertical?

is it possible to use the startMove Method in AS3 and limit the movement only 开发者_开发问答to the y-axis? I want my window only to be dragable vertically.

Thank you for your tips.


I don't think that is possible, given that the actual movement of the window is done by the operating system alone (and I can't think of any application right now that restricts such a movement).

But maybe you can emulate such behaviour by encapsulating your actual application into a different window. You could then change the actual application size to the full screen and make it transparent and use startDrag to emulate the dragging of the inner window. Because with that function you can specify boundaries in which the movement is allowed.
I don't know if that will work as you would like it to, however.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜