Secondo voi c'è un motivo per cui questa cosa non funziona
e questa cosa sìcodice:var path = "http://www.enricolai.com/video/paguri.flv" function lanciaVideo(){ var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); myvideo.attachVideo(stream_ns); stream_ns.play(path); } lanciaVideo()
myvideo è una istanza video messa sullo stage (dalla libreria fare new Video)codice:var path = "http://www.enricolai.com/video/paguri.flv" var connection_nc:NetConnection = new NetConnection(); function lanciaVideo(){ connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); myvideo.attachVideo(stream_ns); stream_ns.play(path); } lanciaVideo()

Rispondi quotando