~ubuntu-branches/ubuntu/oneiric/haxe/oneiric

« back to all changes in this revision

Viewing changes to haxe/std/flash/MovieClip.hx

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2008-06-15 11:04:09 UTC
  • mfrom: (2.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080615110409-7pyykgwmk5v0cues
Tags: 1:1.19-3
* Remove bashism in script.
  (Closes: #484390)
* Upgrade to Policy 3.8.0 by including a README.source explaining how to
  use dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package flash;
2
2
 
 
3
private extern class MCBounds {
 
4
        var xMin : Float;
 
5
        var xMax : Float;
 
6
        var yMin : Float;
 
7
        var yMax : Float;
 
8
}
 
9
 
3
10
extern class MovieClip
4
11
#if flash_strict
5
12
#else true
9
16
        var useHandCursor : Bool;
10
17
        var enabled : Bool;
11
18
        var focusEnabled : Bool;
 
19
        //var menu : ContextMenu; rare, and we don't want to add __init__ for ContextMenu all the time
12
20
        var tabChildren : Bool;
13
21
        var tabEnabled : Bool;
14
22
        var tabIndex : Int;
62
70
 
63
71
        // function hitTest( x : Float, y : Float, shape : Bool ) : Bool;
64
72
        // function hitTest( mc : MovieClip ) : Bool;
65
 
        function getBounds(bounds  :  MovieClip) : { xMin : Float, xMax : Float, yMin : Float, yMax : Float };
 
73
        function getBounds(bounds  :  MovieClip) : MCBounds;
66
74
        // don't allow function getBounds( bounds : String )
67
75
        function getBytesLoaded() : Int;
68
76
        function getBytesTotal() : Int;
69
77
        function attachAudio(id : Dynamic) : Void;
70
78
        function attachVideo(id : Dynamic) : Void;
71
79
        function getDepth() : Int;
72
 
        function getInstanceAtDepth(depth : Int) : MovieClip;
73
 
        function getNextHighestDepth() : Int;
 
80
 
74
81
        function setMask(mc : MovieClip) : Void;
75
82
        // don't allow setMask( mc : String ) : Void
76
83
        function play() : Void;
88
95
        function createEmptyMovieClip(name : String, depth : Int) : MovieClip;
89
96
        function beginFill(rgb : Int, ?alpha : Float) : Void;
90
97
 
 
98
#if !flash6
 
99
        function getInstanceAtDepth(depth : Int) : MovieClip;
 
100
        function getNextHighestDepth() : Int;
 
101
#end
 
102
 
91
103
#if flash8
92
 
        function beginGradientFill(fillType : String, colors : Array<Int>, alphas : Array<+Float>, ratios : Array<+Float>, matrix : Dynamic, ?spreadMethod : String, ?interpolationMethod : String, ?focalPointRatio : Float ) : Void;
 
104
        function beginGradientFill(fillType : String, colors : Array<Int>, alphas : Array<Dynamic>, ratios : Array<Dynamic>, matrix : Dynamic, ?spreadMethod : String, ?interpolationMethod : String, ?focalPointRatio : Float ) : Void;
93
105
#else true
94
 
        function beginGradientFill(fillType : String, colors : Array<Int>, alphas : Array<+Float>, ratios : Array<+Float>, matrix : Dynamic) : Void;
 
106
        function beginGradientFill(fillType : String, colors : Array<Int>, alphas : Array<Dynamic>, ratios : Array<Dynamic>, matrix : Dynamic) : Void;
95
107
#end
96
108
        // matrix : flash.geom.Matrix | Anonymous object a...i | Anonymous object (matrixType x,y,w,h,r)
97
109
 
99
111
        function lineTo(x : Float, y : Float) : Void;
100
112
        function curveTo(controlX : Float, controlY : Float, anchorX : Float, anchorY : Float) : Void;
101
113
#if flash8
102
 
        function lineStyle(thickness : Float, rgb : Int, ?alpha : Float, ?pixelHinting : Bool, ?noScale : String, ?capsStyle : String, ?jointStyle : String, ?miterLimit : Float) : Void;
 
114
        function lineStyle( ?thickness : Float, ?rgb : Int, ?alpha : Float, ?pixelHinting : Bool, ?noScale : String, ?capsStyle : String, ?jointStyle : String, ?miterLimit : Float) : Void;
103
115
#else true
104
 
        function lineStyle(thickness : Float, rgb : Int, ?alpha : Float) : Void;
 
116
        function lineStyle( ?thickness : Float, ?rgb : Int, ?alpha : Float) : Void;
105
117
#end
106
118
        function endFill() : Void;
107
119
        function clear() : Void;
142
154
        var transform : flash.geom.Transform;
143
155
        var scale9Grid : flash.geom.Rectangle<Float>;
144
156
 
145
 
        function getRect( bounds : MovieClip ) : { xMin : Float, yMin : Float, xMax : Float, yMax : Float };
 
157
        function getRect( bounds : MovieClip ) : MCBounds;
146
158
        // don't allow bounds : String
147
159
 
148
160
 
149
161
        function attachBitmap( bmp : flash.display.BitmapData, depth : Int, ?pixelSnapping : String, ?smoothing : Bool ) : Void;
150
162
        function beginBitmapFill( bmp : flash.display.BitmapData , ?matrix:flash.geom.Matrix, ?repeat:Bool, ?smoothing:Bool ) : Void;
151
 
        function lineGradientStyle( fillType:String, colors:Array<Int>, alphas:Array<+Float>, ratios:Array<+Float>, matrix:Dynamic, ?spreadMethod : String, ?interpolationMethod:String, ?focalPointRatio:Float ) : Void;
152
 
        
 
163
        function lineGradientStyle( fillType:String, colors:Array<Int>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, matrix:Dynamic, ?spreadMethod : String, ?interpolationMethod:String, ?focalPointRatio:Float ) : Void;
 
164
 
 
165
#end
 
166
 
 
167
#if flash_v9
 
168
        var forceSmoothing : Bool;
153
169
#end
154
170
 
155
171
// MT extension