petrochenko1981
15.03.2006, 14:15
В уменя есть мувик, в котором лежат ещё несколько мувиков. При наведении на которые должа появляться подсказка. Дело в том, что всё это маскируется. Причем без маски все работает и подсказки отобржаются. С маской же ничего кроме руки при наведении не видно. Вот скрипт который создает подсказку:
MovieClip.prototype.addHint = function(text:String) {
this.onRollOver = function() {
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var label:TextField = this.container.createTextField("label", 1, -35, 20, 50, 100);
updateAfterEvent();
}
system.useCodepage = false;
this.onMouseMove = function() {
this.container._x = this._xmouse;
this.container._y = this._ymouse;
this.container.label.text = text;
this.container.label.border = true;
this.container.label.autoSize = true;
this.container.label.background = 0xFF0000;
this.container.label.embedFonts = true;
updateAfterEvent();
}
this.onRollOut = function() {
Mouse.show();
this.container.removeMovieClip();
updateAfterEvent();
}
}
MovieClip.prototype.addHint = function(text:String) {
this.onRollOver = function() {
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var label:TextField = this.container.createTextField("label", 1, -35, 20, 50, 100);
updateAfterEvent();
}
system.useCodepage = false;
this.onMouseMove = function() {
this.container._x = this._xmouse;
this.container._y = this._ymouse;
this.container.label.text = text;
this.container.label.border = true;
this.container.label.autoSize = true;
this.container.label.background = 0xFF0000;
this.container.label.embedFonts = true;
updateAfterEvent();
}
this.onRollOut = function() {
Mouse.show();
this.container.removeMovieClip();
updateAfterEvent();
}
}