View Full Version : Can you make an app snap to the side of the screen?
10-23-2008, 08:52 PM
Is this possible? If you're dragging the application towards the side of the screen, can you make it snap to the side if its within a certain range, say 20px?
10-23-2008, 09:14 PM
Let me ask you a question...
Can you get the width and height of the monitor and the x and y coordinate of your app from the AIR application??? If you do, it is a simple matter of math where it basically says that if ((x + width - 20) > stageWidth) then programmatically stop the dragging...
10-24-2008, 08:19 PM
Very possible, very possible indeed. :)
I just wanted to first check to see if there was any built in method or property.
10-24-2008, 08:38 PM
Love to know what you learn more... ;)
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.