Browse Source

fixed "type"

Nicolas Cannasse 17 years ago
parent
commit
230bc2151a

+ 2 - 2
std/flash9/filters/BevelFilter.hx

@@ -12,6 +12,6 @@ extern class BevelFilter extends BitmapFilter {
 	var shadowAlpha : Float;
 	var shadowColor : UInt;
 	var strength : Float;
-	var type : String;
-	function new(?distance : Float, ?angle : Float, ?highlightColor : UInt, ?highlightAlpha : Float, ?shadowColor : UInt, ?shadowAlpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
+	var type : BitmapFilterType;
+	function new(?distance : Float, ?angle : Float, ?highlightColor : UInt, ?highlightAlpha : Float, ?shadowColor : UInt, ?shadowAlpha : Float, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : BitmapFilterType, ?knockout : Bool) : Void;
 }

+ 4 - 4
std/flash9/filters/BitmapFilterQuality.hx

@@ -1,7 +1,7 @@
 package flash.filters;
 
-extern enum BitmapFilterQuality {
-	HIGH;
-	LOW;
-	MEDIUM;
+extern class BitmapFilterQuality {
+	static var HIGH : Int;
+	static var LOW : Int;
+	static var MEDIUM : Int;
 }

+ 2 - 2
std/flash9/filters/GradientGlowFilter.hx

@@ -11,6 +11,6 @@ extern class GradientGlowFilter extends BitmapFilter {
 	var quality : Int;
 	var ratios : Array<Dynamic>;
 	var strength : Float;
-	var type : String;
-	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : String, ?knockout : Bool) : Void;
+	var type : BitmapFilterType;
+	function new(?distance : Float, ?angle : Float, ?colors : Array<Dynamic>, ?alphas : Array<Dynamic>, ?ratios : Array<Dynamic>, ?blurX : Float, ?blurY : Float, ?strength : Float, ?quality : Int, ?type : BitmapFilterType, ?knockout : Bool) : Void;
 }