Hi Alexander,

You can create a video symbol in the library by using the library's menu. As for depth, have you tried putting the video in a movie clip and swapping the depths of that movie clip? That should work.

By the way, ElectroServer 4 supports video as well (to add that to your list). http://www.electro-server.com

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
----- Original Message ----- From: "Alexander Farber" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Tuesday, September 11, 2007 10:20 AM
Subject: [Flashcoders] Attaching webcam video dynamically and on top


Dear flash coders,

I have a MovieClip+class called User
which represents a player (one of 3)
in my small multi-player card game:

http://preferans.de/images/pics/Pref-Aug-07-2.jpg

It works well and usually displays
a player avatar (an image, that
I load by a MovieClipLoader).

If a player has a webcam connected
I'd like to overlay his avatar image
however by the webcam video.

I know that I have to use Red5 or FMS etc...
but currently I'm struggling with the basic
problem, that I don't know how to attach
a Video object dynamically to the stage.

After searching I even suspect, that this
is not possible at all and I can only do
it in the authoring environment (sans AS).

But even if I do it in authoring environment
(and pass its name as a string to my
user.attachWebcam() method), I still have
the problem, that the video is underneath
the avatar. I've tried:

  _root.my_video.swapDepths(5000);

but this doesn't work. Any ideas please?

Here is a test case movie representing my
problem: http://preferans.de/flash/User.swf

Regards
Alex
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to