Bonjour,
j'essaie désespérément de créer ma première class
voici son code :
dans mon flash j'ai donc un clip avec un nom d'occurence "player_mc" dans lequel j'ai mon clip video nommé "video_mc" mais rien ne s'affiche
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 class PlayerFLV { private var nc:NetConnection; private var ns:NetStream; public var player_mc:MovieClip; public function PlayerFLV() { this.initVideo(); } private function initVideo():Void { this.nc = new NetConnection(); this.nc.connect(null); this.ns = new NetStream(nc); this.ns.setBufferTime(5); this.player_mc.video_mc.attachVideo(this.ns); this.player_mc.video_mc.smoothing = true; this.player_mc.video_mc.deblocking = 5; this.ns.play("Activia15secondi.flv"); trace("video"); } }
Merci pour votre aide
Partager