- apri la libria, e premi il pulsante con il simbolo + in basso a sinistra
- inserisci "clip" nel campo "Name", seleziona il radioButton "Movie Clip" nella sezione Behaviours, seleziona la casella "Export for ActionScript", quindi premi ok
- dentro il movieclip, scrivi:
codice:
#initclip 2
FSelectableItemClass.prototype.setSize = function(width, height)
{
var LOWEST_DEPTH = -16384; // A constant (!) for the lowest authortime depth
this.width = width;
this.layoutContent(width); // EXTEND this for alternate content.
this.attachMovie("FHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x=0.5;
this.highlight_mc._width = width-0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function()
{
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
}
this.highlight_mc.onDragOver = function()
{
if (this.controller.controller.focused) {
this.onPress();
}
}
this.highlight_mc.useHandCursor = true;
this.highlight_mc.trackAsMenu = true;
}
#endinitclip