Ciao a tutti!
Ho creato 2 classi, uno per il pulsante un altro per il testo.
Il mio problema sorge quando voglio settare il testo, arriva solo fino al set del pulsante.
e sulla timeline viene visualizzato:codice:// codice per il testo dynamic class MioTesto extends MovieClip { private var _testo:String = ''; function MioTesto() { trace('MioTesto Loaded'); } function set testo(t:String):Void { trace('MioTesto testo :'+t); this.campo_txt.htmlText = _testo=t; } function get testo():String { return _testo; } } // codice per il pulsante dynamic class MioPulsante extends MovieClip { private var _testo:String = ''; function MioPulsante() { trace('MioPulsante Loaded'); } function set testo(t:String):Void { trace('MioPulsante testo :'+t); this.testo_mc.testo = _testo=t; } function get testo():String { return _testo; } }
MioPulsante Loaded
MioTesto Loaded
MioPulsante testo :ciao
posizionando il pulsante sullo stage, che contiene il testo, non mi modifica il testo di campo_txt.Qualcuno sa dirmi come posso risolvere?
Grazie in anticipo

Rispondi quotando