
Код:
function pass() {
pass = _root.client_all.attachMovie("password", "pass", _root.client_all.getNextHighestDepth());
pass._x = 30;
pass._y = 460;
pass._alpha = 0;
pass.onEnterFrame = function() {
trace(1);
if (this._alpha<100) {
this._alpha = this._alpha+10;
} else {
delete pass.onEnterFrame;
}
};
Selection.setFocus(pass.pole);
pass.cursor.onEnterFrame = function() {
if (pass.password.length>0) {
this._alpha = 0;
} else {
this._alpha = 100;
}
if (pass.password.length == 8) {
pass.enter.gotoAndStop(2);
pass.enter.onPress = function() {
if (pass.password == "immamura") {
pass.onEnterFrame = function() {
trace(2);
if (this._alpha>0) {
this._alpha = this._alpha-10;
} else {
client_pod_menu();
delete pass.onEnterFrame;
removeMovieClip(pass);
}
};
}
};
} else {
pass.enter.gotoAndStop(1);
delete pass.enter.onPress;
}
};
}