summaryrefslogtreecommitdiff
path: root/bPod/com/graphics/BuckyGradientBox.as
diff options
context:
space:
mode:
Diffstat (limited to 'bPod/com/graphics/BuckyGradientBox.as')
-rw-r--r--bPod/com/graphics/BuckyGradientBox.as43
1 files changed, 43 insertions, 0 deletions
diff --git a/bPod/com/graphics/BuckyGradientBox.as b/bPod/com/graphics/BuckyGradientBox.as
new file mode 100644
index 0000000..ffae2de
--- /dev/null
+++ b/bPod/com/graphics/BuckyGradientBox.as
@@ -0,0 +1,43 @@
+//
+// Gradient Box!!!!!!!
+//
+// Created by Brian Ortiz on 2007-09-08.
+// Copyright (c) 2007 BONER FACTORY LTD. All rights reserved.
+//
+
+import flash.geom.Matrix;
+
+class com.graphics.BuckyGradientBox extends MovieClip
+ {
+ private var _bar:MovieClip;
+ private var matrix:Matrix;
+ private var lineWidth:Number = 2;
+
+ public function BuckyGradientBox()
+ {
+ }
+
+ public function initColors(inColorOne:Number, inColorTwo:Number, inColorThree:Number, inW:Number, inH:Number)
+ {
+
+ if (inColorOne == undefined)
+ inColorOne = 0xFFFFFF;
+ if (inColorTwo == undefined)
+ inColorTwo = 0xDDDDDD;
+ if (inColorThree == undefined)
+ inColorThree = 0x000000;
+
+ matrix = new Matrix();
+ matrix.createGradientBox(inW, inH, 0, 0, 0);
+
+ beginGradientFill("radial", [inColorOne, inColorTwo], [100, 100], [0, 0xFF], matrix);
+ lineStyle(lineWidth, inColorThree, 100, true, "none", "none", "miter", 1);
+
+ moveTo(0, 0);
+ lineTo(inW, 0);
+ lineTo(inW, inH);
+ lineTo(0, inH);
+ lineTo(0, 0);
+ endFill();
+ }
+ }; \ No newline at end of file