⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movie_clip.asc

📁 sswf-1.7.4-src.zip 源码
💻 ASC
字号:
/* movie_clip.asc -- written by Alexis WILKE for Made to Order Software, Ltd. (c) 2005-2006 *//*Copyright (c) 2005-2006 Made to Order Software, Ltd.Permission is hereby granted, free of charge, to anyperson obtaining a copy of this software andassociated documentation files (the "Software"), todeal in the Software without restriction, includingwithout limitation the rights to use, copy, modify,merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whomthe Software is furnished to do so, subject to thefollowing conditions:The above copyright notice and this permission noticeshall be included in all copies or substantialportions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OFANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOTLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NOEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.*/package Native{	class Point	{		var _x : Double;		var _y : Double;		var x : Double;		var y : Double;	}	class Rectangle	{		var xMin : Double;		var xMax : Double;		var yMin : Double;		var yMax : Double;	}	dynamic class MovieClip	{		function initClip(Void) : Void		{			// by default there is no initialization for sprites		}		intrinsic {			function attachAudio(microphone : Microphone) : Void;			function attachAudio(stream : NetStream) : Void;			function attachAudio(status : Boolean) : Void;			function attachMovie(source_name : String, new_name : String, depth : Integer, unchecked init_object : Object) : Void;			function createEmptyMovieClip(name : String, depth : Integer) : MovieClip;			function createTextField(name : String, depth : Integer, x : Double, y : Double, width : Double, height : Double) : Void;			function duplicateMovieClip(name : String, depth : Integer, unchecked init : Object) : MovieClip;			function getBounds(reference : MovieClip) : Rectangle;			function getBytesLoaded(Void) : Integer;			function getBytesTotal(Void) : Integer;			function getDepth(Void) : Integer;			function getInstanceAtDepth(depth : Integer) : MovieClip;			function getNextHighestDepth(Void) : Integer;			function getSWFVersion(Void) : Integer;			function getTextSnapshot(Void) : TextSnapshot;			function getURL(url : String, unchecked window : String, unchecked method : String) : Void;			function globalToLocal(point : Point) : Void;			function gotoAndPlay(frame : Integer) : Void;			function gotoAndPlay(label : String) : Void;			function gotoAndStop(frame : Integer) : Void;			function gotoAndStop(label : String) : Void;			function hitTest(x : Double, y : Double, shape : Boolean) : Void;			function hitTest(target : Object) : Void;			function loadMovie(url : String, unchecked method : String) : Void;			function loadVariables(url : String, unchecked method : String) : Void;			function localToGlobal(point : Point) : Void;			function nextFrame(Void) : Void;			function play(Void) : Void;			function prevFrame(Void) : Void;			function removeMovieClip(Void) : Void;			function setMask(clipping_movie : MovieClip) : Void;			function startDrag(lock : Boolean, left : Double, top : Double, right : Double, bottom : Double) : Void;			function stop(Void) : Void;			function stopDrag(Void) : Void;			function swapDepths(depth : Integer) : Void;			function swapDepths(name : String) : Void;			function unloadMovie(Void) : Void;			function beginFill(rgb : Integer, alpha : Integer) : Void;			function beginGradientFill(fill_type : String, colors : Array, alphas : Array, ratios : Array, matrix : Matrix) : Void;			function clear(Void) : Void;			function curveTo(ctrl_x : Double, ctrl_y : Double, x : Double, y : Double) : Void;			function endFill(Void) : Void;			function lineStyle(thickness : Integer, rgb : Integer, alpha : Integer) : Void;			function lineTo(x : Double, y : Double) : Void;			function moveTo(x : Double, y : Double) : Void;			// this is a global property			function get _soundbuftime(Void) : Integer;			function set _soundbuftime(seconds : Integer) : Void;			var onData : function(Void) : Void;			var onDragOut : function(Void) : Void;			var onDragOver : function(Void) : Void;			var onEnterFrame : function(Void) : Void;			var onKeyDown : function(Void) : Void;			var onKeyUp : function(Void) : Void;			var onKillFocus : function(new_focus : Object) : Void;			var onLoad : function(Void) : Void;			var onMouseDown : function(Void) : Void;			var onMouseMove : function(Void) : Void;			var onMouseUp : function(Void) : Void;			var onPress : function(Void) : Void;			var onRelease : function(Void) : Void;			var onReleaseOutside : function(Void) : Void;			var onRollOut : function(Void) : Void;			var onRollOver : function(Void) : Void;			var onSetFocus : function(old_focus : Object) : Void;			var onUnload : function(Void) : Void;			const var _currentframe : Integer;			const var _framesloaded : Integer;			const var _droptarget : String;			const var _target : String;			const var _totalframes : Integer;			const var _url : String;			var hitArea : MovieClip;			var _lockroot : Boolean;			var trackAsMenu : Boolean;			var menu : ContextMenu;			var _name : String;			var _parent : MovieClip;			var tabChildren : Boolean;			var tabEnabled : Boolean;			var tabIndex : Integer;			var _visible : Boolean;			var enabled : Boolean;			var focusEnabled : Boolean;			var _focusrect : Boolean;			var useHandCursor : Boolean;			var _quality : String;			var _alpha : Integer;				// 0 to 100			var _rotation : Double;				// -179 to +180			var _width : Double;			var _height : Double;			var _x : Double;			var _y : Double;			var _xscale : Double;			var _yscale : Double;			const var _xmouse : Double;			const var _ymouse : Double;		}	}	intrinsic {		// global functions		enum mouse_event		{			press,			release,			releaseOutside,			rollOut,			rollOver,			dragOut,			keyPress		}		enum movie_event		{			load,			unload,			enterFrame,			mouseMove,			mouseDown,			mouseUp,			keyDown,			keyUp,			data		}		function duplicateMovieClip(target : String, new_name : String, depth : Integer) : Void;		function getProperty(sprite : Object, property : Object) : Object;		function gotoAndPlay(unchecked scene : String, frame : Object) : Void;		function gotoAndStop(unchecked scene : String, frame : Object) : Void;		function loadMovie(url : String, target : Object, unchecked method : String) : Void;		function loadMovieNum(url : String, level : Integer, unchecked method : String) : Void;		function loadVariables(url : String, target : Object, unchecked method : String) : Void;		function loadVariablesNum(url : String, level : Integer, unchecked method : String) : Void;		function nextFrame(Void) : Void;		function nextScene(Void) : Void;		function on(event : mouse_event, ...) : Void;		function onClipEvent(event : movie_event) : Void;		function onUpdate(Void) : Void;		function play(Void) : Void;		function prevFrame(Void) : Void;		function prevScene(Void) : Void;		function print(target : Object, bounds : String) : Void;		function printAsBitmap(target : Object, bounds : String) : Void;		function printAsBitmapNum(level : Integer, bounds : String) : Void;		function printNum(level : Integer, bounds : String) : Void;		function removeMovieClip(target : String) : Void;		function setProperty(target : Object, property : Object, expression : Object) : Void;		/*		function setProperty(target : MovieClip, property : Object, expression : Object) : Void		{			target[property] = expression;		}		*/		function startDrag(target : Object, lock : Boolean = true) : Void;		function startDrag(target : Object, lock : Boolean, left : Double, top : Double, right : Double, bottom : Double) : Void;		function stop(Void) : Void;		function stopAllSounds(Void) : Void;		function stopDrag(Void) : Void;		function targetpath(target : MovieClip) : String;		function unloadMovie(target : MovieClip) : Void;		function unloadMovie(target : String) : Void;		function unloadMovieNum(level : Integer) : Void;		function updateAfterEvent(Void) : Void;		var _level0  : Object;		var _level1  : Object;		var _level2  : Object;		var _level3  : Object;		var _level4  : Object;		var _level5  : Object;		var _level6  : Object;		var _level7  : Object;		var _level8  : Object;		var _level9  : Object;		var _level10 : Object;		var _focusrect : Boolean;		var _root : MovieClip;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -