La variabile la puoi usare "solo" dopo l'evento onLoad:
codice:dati = new LoadVars(); dati.path = this; dati.onLoad = function(success) { _root.nome = this.nome_filmato; _root.durata = this.durata_filmato; var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); my_video.attachVideo(stream_ns); stream_ns.play("video.flv"); trace(_root.nome); }; dati.load("specifiche_filmato.txt");

Rispondi quotando