Hi there,
I'm trying to publish my camera to Flash Media Server 4 and on screen.
I tryd the followed code:
2 cam = Camera.getCamera();
3 vid = new Video(320, 240);
4 vid.x = 10;
5 vid.y = 10;
6 vid.attachCamera(cam);
7 addChild(vid);
8
9 ns = new NetStream(nc);
10 ns.attachCamera(cam);
11 ns.publish("test", "live");
and before all functions begin:
1
2 private var nc:NetConnection;
3 private var ns:NetStream;
4
5 private var cam:Camera;
6 private var vid:Video;
But i get the following error:
"Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one."
Is it possible to get an tutorial like you did before only then in AS3 with Flex (FlashBuilder)?
Thanks in advanced,
Alexw