A bit more info - you need an instance of the intrinsic Flash "Video" class but the only way to get a working instance is to drag it onto the stage in the Flash IDE. You can use it in Flex according to Dirk:
From: Dirk Eismann [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 12:09 AM To: [email protected] Subject: RE: [flexcoders] Using the Video class in Flex Hi Hans, � you have two possibilities: either you take the MediaDisplay component that ship with Flex or you go inside the Flash IDE and create a new component for Flex (no need to use the Loader component). Actually, that's the way I did it and it worked fine for my needs. All you have to do is to create a new MovieClip symbol in Flash, add the needed functionality to it and export it as a SWC file. Then you add this�SWC file to your Flex user_classes directory and use the component as any other (MXML) component. � Basically, in Flash I�placed a new video symbol on the stage and assigned it an instance name of "vid". Then I wrote an ActionScript class that acts as a wrapper around the video symbol (e.g. attaching�a Camera object or a NetStream object to the video). These methods�and properties are called from the MXML files finally. � Dirk. --Apple-Mail-210-677480455 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 A bit more info - you need an instance of the intrinsic Flash "Video" class but the only way to get a working instance is to drag it onto the stage in the Flash IDE. You can use it in Flex according to Dirk: <bold><fontfamily><param>Tahoma</param><smaller>From:</smaller></fontfamily></bold><fontfamily><param>Tahoma</param><smaller> Dirk Eismann [mailto:[EMAIL PROTECTED] <bold>Sent:</bold> Tuesday, October 05, 2004 12:09 AM <bold>To:</bold> [email protected] <bold>Subject:</bold> RE: [flexcoders] Using the Video class in Flex </smaller></fontfamily><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><smaller>Hi Hans,</smaller></color><smaller> </smaller></fontfamily>� <fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><smaller>you have two possibilities: either you take the MediaDisplay component that ship with Flex or you go inside the Flash IDE and create a new component for Flex (no need to use the Loader component). Actually, that's the way I did it and it worked fine for my needs. All you have to do is to create a new MovieClip symbol in Flash, add the needed functionality to it and export it as a SWC file. Then you add this�SWC file to your Flex user_classes directory and use the component as any other (MXML) component.</smaller></color><smaller> </smaller></fontfamily>� <fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><smaller>Basically, in Flash I�placed a new video symbol on the stage and assigned it an instance name of "vid". Then I wrote an ActionScript class that acts as a wrapper around the video symbol (e.g. attaching�a Camera object or a NetStream object to the video). These methods�and properties are called from the MXML files finally.</smaller></color><smaller> </smaller></fontfamily>� <fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><smaller>Dirk.</smaller></color></fontfamily> --Apple-Mail-210-677480455--
<<inline: image/gif>>
On 08/02/2005, at 1:52 PM, Robin Hilliard wrote: > Dave, > > According to the Flex docs there is no attachVideo method on > mx.controls.MediaDisplay - in fact it doesn't look like it's supposed > to work with a FCS stream, only flvs or mp3s on the server using > progressive playback. > > Robin > <robinFooter.gif> > On 08/02/2005, at 1:08 PM, dave buhler wrote: > >> I've built a FlashCom piece that: >> >> 1) works as a swf in HTML when built in Flash. The MovieClip shows >> the >> video stream from my camera >> 2) doesn't work in Flex. The MovieClip does not show the video stream >> from my camera. Nor do I get a message from the player asking for me >> to accept/decline sharing my camera. >> >> The difference: >> >> 1) In Flash, I have an instance name on my MovieClip. >> 2) In Flex, I have an ID name on my MediaDisplay. >> --Apple-Mail-211-677480456 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII On 08/02/2005, at 1:52 PM, Robin Hilliard wrote: <excerpt>Dave, According to the Flex docs there is no attachVideo method on mx.controls.MediaDisplay - in fact it doesn't look like it's supposed to work with a FCS stream, only flvs or mp3s on the server using progressive playback. Robin <<robinFooter.gif> On 08/02/2005, at 1:08 PM, dave buhler wrote: <excerpt><fixed>I've built a FlashCom piece that:</fixed> <fixed> 1) works as a swf in HTML when built in Flash. The MovieClip shows the</fixed> <fixed> video stream from my camera</fixed> <fixed> 2) doesn't work in Flex. The MovieClip does not show the video stream</fixed> <fixed> from my camera. Nor do I get a message from the player asking for me</fixed> <fixed> to accept/decline sharing my camera.</fixed> <fixed> The difference:</fixed> <fixed> 1) In Flash, I have an instance name on my MovieClip.</fixed> <fixed> 2) In Flex, I have an ID name on my MediaDisplay.</fixed> </excerpt></excerpt> --Apple-Mail-211-677480456--

