IL PROBLEMA E' CHE NON RIESCO A CREARE l' EMPTYMC-riemp !!!
Ecco il nuovo codicillo:
#include "drawRect.as"//-->genera movieclip con angoli arrotondati
//
MovieClip.prototype.setTooltip = function(theText, timer, text_color, bg_color, border_color, larg_tip) {
if (timer == undefined) {
// tempo di apparizione TIP
timer = 100;
}
var addMsg = function (theMsg, col, bg_color, border_color, level) {
var x = _root._xmouse+5;
var y = _root._ymouse+20;
var f = new TextFormat();
f.font = "verdana";
f.size = 9;
f.color = col != undefined ? col : 0x000000;
f.blockIndent = 5;
larg_tip = larg_tip != undefined ? larg_tip : 105;
_level0.createTextField('tooltip', 123456, x, y, larg_tip, 0);
with (_level0.tooltip) {
setNewTextFormat(f);
text = theMsg;
selectable = false;
autoSize = true;
wordWrap = true;
multiline = true;
border = true;
// border = false;
borderColor = border_color != undefined ? border_color : 0x000000;
// background = true;
background = false;
backgroundColor = bg_color != undefined ? bg_color : 0xFFFFEE;
_y -= 0;
// _height;
}
_level0.onMouseMove = function() {
// setta la posizione del tip in movimento
this.tooltip._x = x;
this.tooltip._y = y;
this.riemp._x = x;
this.riemp._y = y;
updateAfterEvent();
};
// ------------------------------------------------------------------------da qui non va
// crea la mc riempimento del campo di testo con angoli arrotondati
_level0.createEmptyMovieClip('riemp', 123450, x, y, larg_tip, 0);
this.riemp._x = this.tooltip._x;
this.riemp._y = this.tooltip._y;
this.riemp.clear();
this.riemp.lineStyle(1, 0xE7E7E7);
this.riemp.beginFill(0xFFFFCC, 100);
// Il valore 5 setta il raggio !!!
this.riemp.drawRect(0, 0, larg_tip, this.tooltip._height, 5);
this.riemp.endFill();
// ------------------------------------------------------------------------fine non va
clearInterval(level.q_t);
};
this.q_t = setInterval(addMsg, timer, theText, text_color, bg_color, border_color, larg_tip, this);
};
-----------------------eof
![]()
![]()
![]()
Dove Sbaglio ???

Rispondi quotando
