トップへ戻るニュースフォーラムFLASH-ML 過去ログBak@Flaダウンロードよくある質問と答
ログイン
ユーザ名:

パスワード:


パスワード紛失

新規登録
メインメニュー
メイン
   コーダーズルーム【スクリプト系】
     releaseされたら、消去したい
投稿するにはまず登録を

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
naanbk
Åê¹ÆNo.2372
投稿日時: 2003-12-22 14:01
新米
居住地:
投稿: 2
使用環境:
Re: releaseされたら、消去したい
youichさん、ありがとうございます。
SubmenubtnClassのreleaseFuncはちゃんと呼ばれるみたい
と、言って頂き、少し元気になりました



サブメニューがreleaseされたら消去したいので
CategoryBtnClassはいじらなくていいのかな??
と思っていたんですけど、大変恐縮ですが
CategoryBtnClassもみてもらっていいですか??

CategoryBtnClass = function(){}
CategoryBtnClass.prototype = new ButtonClass();
CategoryBtnClass.prototype.onEnterFrame = function(){
this.changeHeight();
}
CategoryBtnClass.prototype.init = function(){
super.init();
this.id = "categorybtn";
this.num = this._name.substr(1,2)*1;
this.openheight = 300;
this.closeheight = 30;
this.endheight = this.closeheight;
}
CategoryBtnClass.prototype.changeHeight = function(){
var h = this.endheight - this._height;
if ( Math.abs(h)>0.2 ){
this._height += h / 5;
}
else if ( this._height != this.endheight ){
this._height = this.endheight;
this.addSubmenu();
}
this._y = this._parent["b"+(this.num-1)]._y + this._parent["b"+(this.num-1)]._height;
this._parent["c"+this.num].changePosition( this._y );
}
CategoryBtnClass.prototype.pressFunc = function(){
this._parent.submenu_mc.removeMovieClip();
for ( var pName in this._parent ){
if ( this != this._parent[pName] && this._parent[pName].id == this.id ){
this._parent[pName].endheight = this.closeheight;
if ( this._parent[pName].behave == "press" ){
this._parent[pName].setFunc( true );
this._parent[pName].onRelease();
}
}
}
this.setFunc( false );
this.endheight = this.openheight;
}

CategoryBtnClass.prototype.addSubmenu = function(){
if ( this.behave == "press" ){
this._parent.attachMovie("submenu_mc" , "submenu_mc" , 0 , { _y:this._y , num:this.num });
}
}

初心者のくせにレベルが高い挑戦のようで
質問事項もうまく伝えることができないのですけど、
ぜひとも、完成させたいのでお願いします。
フラット表示 前のトピック | 次のトピック

題名 投稿者 日時
   releaseされたら、消去したい naanbk 2003-12-19 14:26
     Re: releaseされたら、消去したい youich 2003-12-19 17:33
     » Re: releaseされたら、消去したい naanbk 2003-12-22 14:01
         Re: releaseされたら、消去したい youich 2003-12-22 21:04

投稿するにはまず登録を
 
Copyright (C) 2003 FLASH-japan. All rights reserved.
Powered by Xoops