Oppure fai così:
codice:
// ****************************************
_root.valori = "0|0|0|0|1|0|0|1|0|0|1|0|0|0|0|0|0|0|1|0";
_root.a_valori = _root.valori.split("|");
function scrividomande()
{
ipsilon = 236;
count = 1;
for (i = 1; i < 6; i++) {
_root.attachMovie("FRadioButtonSymbol", "dom" + count, i);
nomedom = eval("dom" + count);
with (nomedom) {
setGroupName("d");
_y = ipsilon;
_x = 150;
setData(_root.a_valori[i - 1]);
setLabel(count);
}
ipsilon = ipsilon + 41;
count++;
}
_root.d.setChangeHandler("ho_risposto");
}
function ho_risposto(gruppo, rb)
{
trace("VALORE: " + gruppo.getValue());
trace("RADIO: " + rb.getLabel());
}
stop();
scrividomande();
// ****************************************
Poi apri la libreria, ed editi il movieclip "RadioButton". Vai alla riga 351, e cambi:
codice:
FRadioButtonClass.prototype.executeCallBack = function()
{
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
}
in
codice:
FRadioButtonClass.prototype.executeCallBack = function()
{
this.handlerObj[this.changeHandler](this._parent[this.groupName], this);
}