scusa non avevo capito bene
sposata in testa questa funzione
codice:carica=function(nome){ attachMovie(nome, "nome1" , 1) this["nome1"]._x = 280; this["nome1"]._y = 50; } n = 3; j = 0; for (i=1 ; i<=n*2 ; i++){ if(i%2 == 1) { j++ this["rb"+i].setLabel("Yes") this["rb"+i].setState(false) this["rb"+i].setGroupName("HIFI"+j) this["rb"+i].setData["risposta"+i] } else { this["rb"+i].setLabel("No") this["rb"+i].setState(false) this["rb"+i].setGroupName("HIFI"+j) this["rb"+i].setData["risposta"+i] } } Radio = new Object(); for (j=1 ; j <= n ; j++) { this["HIFI"+j].setLabelPlacement("Left") this["HIFI"+j].setEnabled(true) Radio.onChange = function(component){ carica(this["HIFI"+j].getValue()); this["HIFI"+j].setChangeHandler("onChange", Radio); } } globalStyleFormat.textFont = "std" globalStyleFormat.embedFonts = true globalStyleFormat.textSize = 8; globalStyleFormat.textBold = false globalStyleFormat.textItalic = false globalStyleFormat.textColor = 0x000000 globalStyleFormat.radioDot = 0xFF0000; globalStyleFormat.check = 0x003366; globalStyleFormat.applyChanges("textColor","textFont","embedFonts","textSize","textBold","textItalic","font","radioDot", "check");

Rispondi quotando