Sbagli nel fatto che, mentre giustamente attendi l'onLoad per riempire i campi di testo, non fai la stessa cosa per modificare il rettangolo:
codice:var datiasp:LoadVars = new LoadVars(); datiasp.onLoad = function() { altezza.text = _root.cornice.finex = Number(this.altezza); larghezza.text = _root.cornice.finey = Number(this.larghezza); posizionex.text = _root.cornice.finexs = Number(this.posizionex); posizioney.text = _root.cornice.fineys = Number(this.posizioney); rotazione.text = this.rotazione; }; datiasp.load("nave.txt");

Rispondi quotando