ムービークリップが表示/削除されたときに処理を実行するには
		
			サンプル1
			//ムービークリップ内のフレームアクション(※AS1でのクラス定義:リンケージ設定で[ActionScriptに書き出し]にチェックを入れておきます)
			#initclip
			function LoadTest(){
			}
			LoadTest.prototype = new MovieClip();
			LoadTest.prototype.onLoad = function(){
			 this._x = Math.floor(Math.random() * Stage.width);
			 this._y = Math.floor(Math.random() * Stage.height);
			};
			Object.registerClass("mcStar",LoadTest);
			#endinitclip
			--------
			サンプル2:
			//ムービークリップアクション
			onClipEvent (load) {
			 this._x = Stage.width / 2;
			 this._y = Stage.height / 2;
			}
			--------
			サンプル3:
			//メインタイムラインのフレームアクション
			this._interval = setInterval(this, "xMoveCar",75);
			this.onUnload = function(){
			 clearInterval(this._interval);
			};
			function xMoveCar(){
			 if (this.car_mc._x < 350){
			  this.car_mc._x += 5;
			 }else{
			  this.car_mc._x = -30;
			 }
			}
		
		
		
			
 説明などは本書を参考にしてください。