-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMovieClip.as
executable file
·137 lines (130 loc) · 4.89 KB
/
MovieClip.as
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
//****************************************************************************
// ActionScript Standard Library
// Movie Clip object
//****************************************************************************
import flash.display.BitmapData;
import flash.geom.Matrix;
import flash.geom.Rectangle;
import flash.geom.Transform;
dynamic intrinsic class MovieClip
{
var _alpha:Number;
var _currentframe:Number;
var _droptarget:String;
var _focusrect:Boolean;
var _framesloaded:Number;
var _height:Number;
var _highquality:Number;
var _lockroot:Boolean;
var _name:String;
var _parent:MovieClip;
var _quality:String;
var _rotation:Number;
var _soundbuftime:Number;
var _target:String;
var _totalframes:Number;
var _url:String;
var _visible:Boolean;
var _width:Number;
var _x:Number;
var _xmouse:Number;
var _xscale:Number;
var _y:Number;
var _ymouse:Number;
var _yscale:Number;
var scale9Grid:Rectangle;
var enabled:Boolean;
var focusEnabled:Boolean;
var hitArea:Object;
var menu:ContextMenu;
var tabChildren:Boolean;
var tabEnabled:Boolean;
var tabIndex:Number;
var tooltipText:String; // Central API
var trackAsMenu:Boolean;
var useHandCursor:Boolean;
var cacheAsBitmap:Boolean;
var filters:Array;
var opaqueBackground:Number;
var scrollRect:Object;
var transform:Transform;
var blendMode:Object;
function attachAudio(id:Object):Void;
function attachBitmap(bmp:BitmapData, depth:Number, pixelSnapping:String, smoothing:Boolean):Void;
function attachMovie(id:String,name:String,depth:Number,initObject:Object):MovieClip;
function clear():Void;
function createEmptyMovieClip(name:String,depth:Number):MovieClip;
function beginBitmapFill(bmp:BitmapData, matrix:Matrix, repeat:Boolean, smoothing:Boolean):Void;
function beginFill(rgb:Number,alpha:Number):Void;
function beginGradientFill(fillType:String,colors:Array,alphas:Array,ratios:Array,matrix:Object,spreadMethod:String,interpolationMethod:String,focalPointRatio:Number):Void;
function lineGradientStyle(fillType:String,colors:Array,alphas:Array,ratios:Array,matrix:Object,spreadMethod:String,interpolationMethod:String,focalPointRatio:Number):Void;
function createTextField(instanceName:String,depth:Number,x:Number,y:Number,width:Number,height:Number):TextField;
function curveTo(controlX:Number,controlY:Number,anchorX:Number,anchorY:Number):Void;
function duplicateMovieClip(name:String,depth:Number,initObject:Object):MovieClip;
function endFill():Void;
function getBounds(bounds:Object):Object;
function getRect(bounds:Object):Object;
function getBytesLoaded():Number;
function getBytesTotal():Number;
function getDepth():Number;
function getInstanceAtDepth(depth:Number):MovieClip;
function getNextHighestDepth():Number;
function getSWFVersion():Number;
function getTextSnapshot():TextSnapshot;
function getURL(url:String,window:String,method:String):Void;
function globalToLocal(pt:Object):Void;
function gotoAndPlay(frame:Object):Void; // frame can be String or Number
function gotoAndStop(frame:Object):Void; // frame can be String or Number
function hitTest():Boolean; // arguments can be either target or x/y/shapeFlag
function lineStyle(thickness:Number,rgb:Number,alpha:Number,pixelHinting:Boolean,noScale:String,capsStyle:String,jointStyle:String,miterLimit:Number):Void;
function lineTo(x:Number,y:Number):Void;
function loadMovie(url:String,method:String):Void;
function loadVariables(url:String,method:String):Void;
function localToGlobal(pt:Object):Void;
function moveTo(x:Number,y:Number):Void;
function nextFrame():Void;
function play():Void;
function prevFrame():Void;
function removeMovieClip():Void;
function setMask(mc:Object):Void;
function startDrag(lockCenter:Boolean,left:Number,top:Number,right:Number,bottom:Number):Void;
function stop():Void;
function stopDrag():Void;
function swapDepths(target:Object):Void;
function unloadMovie():Void;
function valueOf():MovieClip;
function onData():Void;
function onDragOut():Void;
function onDragOver():Void;
function onEnterFrame():Void;
function onKeyDown():Void;
function onKeyUp():Void;
function onKillFocus(newFocus:Object):Void;
function onLoad():Void;
function onMouseDown():Void;
function onMouseMove():Void;
function onMouseUp():Void;
function onPress():Void;
function onRelease():Void;
function onReleaseOutside():Void;
function onRollOut():Void;
function onRollOver():Void;
function onSetFocus(oldFocus:Object):Void;
function onUnload():Void;
//-------------------------------------------------------------------
// MovieClipPrototype
//-------------------------------------------------------------------
var isMouseOver:Boolean
var trueWidth:Number
var trueHeight:Number
var centerX:Number
var centerY:Number
function drawRectangle()
function buttonFix()
function proportionalResize()
function fadeUp( speed:Number )
function fadeDown( speed:Number )
function onFadeUpComplete()
function onFadeDownComplete()
function eachChild()
}