netstream play avec un STRING
Bonjours.
Je ne comprend pourquoi on ne peut définir l'objet dans la fonction play avec une variable de type String.
Code:
1 2 3 4 5 6 7 8 9
| var netConn:NetConnection = new NetConnection();
this.netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
this.VideoSym1.attachVideo(netStream);
this.netStream.setBufferTime(5);
var my_str:String = new String("video1.flv");
this.netStream.play( my_str);
//this.netStream.play("video1.flv"); |
Dans cet exemple aucune vidéo ne s'affiche. Par contre si je fais : "this.netStream.play("video1.flv");" là tout ce passe bien.