package myproject{
import jp.progression.casts.CastButton;
import jp.progression.scenes.SceneId;
import caurina.transitions.Equations;
import jp.nium.graphics.Square;
import jp.progression.commands.*;
import fl.transitions.easing.Elastic;
public class MySceneButton extends CastButton {
public function MySceneButton() {
// ヒットエリアとなる四角形を描画する
graphics.beginFill( 0xFF0000 );
graphics.drawRect( 100, 0, 100, 30 );
graphics.endFill();
// クリックした際の移動先シーンを設定する
sceneId = new SceneId( "/index/myscene" );
}
protected override function _onCastMouseOver():void {
this.addCommand(
new DoTweener( this, {
alpha :0.2,
time :0.8,
transition :"linear"
})
);
}
protected override function _onCastMouseOut():void {
this.addCommand(
new DoTweener( this, {
alpha :1,
time :0.8,
transition :"linear"
})
);
}
}
}
最終更新:2008年04月15日 02:13