Mine
public text v1 · immutable#
function lightOn() {
#
this.onEnterFrame = function() {
#
this.bg4b_mc._alpha += 20;
#
if(this.bg4b_mc._alpha >= 100){
#
this.bg4b_mc._alpha = 100;
delete this.onEnterFrame;
#
}
#
}
#
#
function lightOff() {
#
this.onEnterFrame = function() {
this.bg4b_mc._alpha -= 10;
if(this.bg4b_mc._alpha <=0){
#
// this.bg4b_mc._alpha = 0;
#
//this.bg4b_mc._visible = false;
#
delete this.onEnterFrame;
#
}
#
}
#
}