Home > Blog > AS3 Helper Class
Page 1 of 212>
 
AS3 Helper Class - RandomBoolean

AS3 Helper Class – RandomBoolean

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. RandomBoolean() 1 2 3 4 5 6 7 8 9 10 public class Helper { /** * Returns Boolean true or false, randomly. */ public static function RandomBoolean():Boolean { return Boolean(Math.floor(Math.random() * 2)); } } Usage 1 var coinTossIsHeads:Boolean = [...] Keep Reading

 
 
AS3 Helper Class - RadiansToDegrees and DegreesToRadians

AS3 Helper Class – RadiansToDegrees and DegreesToRadians

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. FindAngle() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public class Helper { /** * These companion methods will convert radians to degrees * and degrees to radians. */ public static function [...] Keep Reading

 
 
AS3 Helper Class - FindAngle

AS3 Helper Class – FindAngle

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. FindAngle() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public class Helper { /** * This method accepts two * Point objects and returns * the angle between them * in [...] Keep Reading

 
 
AS3 Helper Class - ShowDisplayList()

AS3 Helper Class – ShowDisplayList()

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. Wrap() 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   public class Helper { import flash.display.*; /** * This method accepts a * DisplayObjectContainer instance * and lists the children in its * [...] Keep Reading

 
 
AS3 Helper Class - Fence()

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

 
Page 1 of 212>