L'esempio e' in fondo lla pagina:
http://flash-mx.html.it/guide/view_l...guida=9&id=206
Io vorrei realizzare la stessa cosa ma la selezione deve avvenire non al click del mouse ma al passaggio sopra il nome.
Devo usare un'altro componente diverso da ListBox ?
Ho ricevuto questa risposta criptica, me la spiegate ?
Yes. Find the FSelectableItem in your library:
Flash UI Components > Core Assets - Developer Only > FUIComponent Class Tree > FUI Component SubClasses > FSelectableList
In the init() function, place the code for your handlers:
this.onRollOver = function() {
trace(this._parent._parent.labels[this.itemNum]);
};
this.onRollOut = function() {};
This function will obviously apply to all items, so you'll have to have to use the itemNum variable to create different actions (if needed).
For a double click, find the setSize method in the same symbol and change the highlight_mc.onPress (around line 65) to be:
this.highlight_mc.onPress = function()
{
if (this.controller.enable && (getTimer() - this.firstClick < 1000)) {
this.controller.controller.clickHandler(this.contr oller.itemNum);
}
this.firstClick = getTimer();
}

Rispondi quotando