MovieClip

Objet graphique de base des animations Flash (cf document Adobe de la classe MovieClip)

type
MovieClip = external class property _alpha: Number; property blendMode: string; property cacheAsBitmap: Boolean; property _currentframe: Number readonly; property _droptarget: string readonly; property enabled: Boolean; property filters: TArray writeonly; property focusEnabled: Boolean; property _focusrect: Boolean; property forceSmoothing: Boolean; property _framesloaded: Number readonly; property _height: Number; property _highquality: Number deprecated; property hitArea: TObject; property _lockroot: Boolean; property menu: ContextMenu; property _name: string; property opaqueBackground: Number; property _parent: MovieClip; property _quality: string; property _rotation: Number; property scale9Grid: Rectangle; property scrollRect: TObject; property _soundbuftime: Number; property tabChildren: Boolean; property tabEnabled: Boolean; property tabIndex: Number; property _target: string readonly; property _totalframes: Number readonly; property trackAsMenu: Boolean; property transform: Transform; property _url: string readonly; property useHandCursor: Boolean; property _visible: Boolean; property _width: Number; property _x: Number; property _xmouse: Number readonly; property _xscale: Number; property _y: Number; property _ymouse: Number readonly; property _yscale: Number; constructor Create(Parent: MovieClip; Name: string; Depth: Number) as Parent.createEmptyMovieClip; property onData: procedure of object; property onDragOut: procedure of object; property onDragOver: procedure of object; property onEnterFrame: procedure of object; property onKeyDown: procedure of object; property onKeyUp: procedure of object; property onKillFocus: procedure(newFocus: TObject) of object; property onLoad: procedure of object; property onMouseDown: procedure of object; property onMouseMove: procedure of object; property onMouseUp: procedure of object; property onPress: procedure of object; property onRelease: procedure of object; property onReleaseOutside: procedure of object; property onRollOut: procedure of object; property onRollOver: procedure of object; property onSetFocus: procedure(oldFocus: TObject) of object; property onUnload: procedure of object; procedure attachAudio(id: TObject); procedure attachBitmap(bmp: BitmapData; depth: Number; pixelSnapping: string = ''; smoothing: Boolean = False); function attachMovie(id, name: string; depth: Number; initObject: TObject = nil): MovieClip; procedure beginBitmapFill(bmp: BitmapData; AMatrix: Matrix = nil; repeat, smoothing : Boolean = False); procedure beginFill(rgb: Number; alpha: Number = 100); procedure beginGradientFill(fillType: string; colors, alphas, ratios: array of integer; matrix: TObject; spreadMethod, interpolationMethod: string = ''; focalPointRatio: Number = 0); procedure clear; function createEmptyMovieClip(name: string; depth: Number): MovieClip; function createTextField(instanceName: string; depth: Number; x, y, width, height: Number): TextField; procedure curveTo(controlX, controlY, anchorX, anchorY: Number); function duplicateMovieClip(name: string; depth: Number; initObject : TObject = nil): MovieClip; procedure endFill(); function getBounds(bounds: TObject): TObject; function getBytesLoaded: Number; function getBytesTotal: Number; function getDepth: Number; function getInstanceAtDepth(depth: Number): MovieClip; function getNextHighestDepth() : Number; function getRect(bounds: TObject): TObject; function getSWFVersion: Number; function getTextSnapshot: TextSnapshot; procedure getURL(url: string; window, method: string = ''); procedure globalToLocal(pt: TObject); procedure gotoAndPlay(frame: TObject); procedure gotoAndStop(frame: TObject); function hitTest(x, y: Number; shapeFlag: Boolean = False): Boolean; { overload function hitTest(target: TObject); Boolean; overload } procedure lineGradientStyle(fillType: string; colors, alphas, ratios: array of Number; matrix: TObject; spreadMethod, interpolationMethod: string = ''; focalPointRatio: Number = 0); procedure lineStyle(thickness, rgb : Number = 0; alpha: Number = 100; pixelHingint : Boolean = False; noScale : string = 'normal'; capsStyle: string = 'round'; jointStyle : string = 'round'; miterLimit: Number = 3); procedure lineTo(x, y: Number); procedure loadMovie(url: string; Method: string = ''); procedure localToGlobal(pt: TObject); procedure moveTo(x, y: Number); procedure nextFrame; procedure play; procedure prevFrame; procedure removeMovieClip(); procedure setMask(mc: MovieClip); procedure startDrag(lockCenter: Boolean = False; left, top, right, bottom: Number = 0); procedure stop; procedure stopDrag; procedure swapDepths(target: Number); {overload; procedure swapDepths(target: TObject); overload; } procedure unloadMovie(); function toString: string; end;
propriétéstypedescription
_alphaNumberfacteur de transparence du clip. 0 = totalement transparent, 100 = complètement opaque.
blendMode string mode de fondu de ce clip.
normal, layer, multiply, screen, lighten, darken, difference, add, subtract, invert, alpha, erase, overlay, hardlight
cacheAsBitmap Boolean Si défini sur true, Flash Player place en mémoire cache une version bitmap interne du clip. Cette propriété peut permettre d'améliorer les performances des clips incluant un contenu vectoriel complexe.