AS3 Helper Class - Fence()
We are building an AS3 Helper class to speed up development on Actionscript 3 projects. Feel free to use these methods in your own Helper class, or to share your own methods that you find useful.
Fence()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
public class Helper
{
import flash.geom.Point;
import flash.geom.Rectangle;
/**
* This method confines a Point
* within a Rectangle. Useful for
* games [...] Keep Reading
