Did you rename your file to not be named Camera.mxml as I recommended?

-rg 

> -----Original Message-----
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes
> Sent: Thursday, January 12, 2006 7:31 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: AS3 & Camera Class
> 
> Well,
> 
>  
> 
> That's what I first tried and got the same error.
> 
>  
> 
>  
> 
> João Fernandes
> 
> Secção de Desenvolvimento
> 
> Departamento de Informática
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
> Sent: quinta-feira, 12 de Janeiro de 2006 15:25
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: AS3 & Camera Class
> 
>  
> 
> João,
> 
> "getCamera" is a static method on the Camera class...
> 
> Try this: var mycam:Camera = Camera.getCamera();
> 
> 
> Brendan
> 
> --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi there,
> > 
> >  
> > 
> > Finally starting with Flex 2. I was trying out some stuff with the
> camera Class but I get this error:
> > 
> >  
> > 
> > ReferenceError: Error #1069: Property getCamera not found on class
> Camera and there is no default value
> > 
> >             at Camera/initApli()[C:\Documents and Settings\bogos\My
> Documents\Flex\Camera\Camera.mxml:12]
> > 
> >             at
> Camera/___Application0_creationComplete()[C:\Documents and 
> Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3]
> > 
> >             at flash.events::EventDispatcher/dispatchEvent()
> > 
> >             at
> mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCr
eationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core> \UIComponent.as:5860]
> > 
> >             at
> mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/i
nternal::dispatchCreationCompleteEvents()[C:\dev\max\sdk> 
\frameworks\mx\core\UIComponent.as:1085] 
> <http://www.macromedia.com/2005/flex/mx/internal::dispatchCrea
> tionCompleteEvents()%5bC:/dev/max/sdk/frameworks/mx/core/UICom
ponent.as:1085%5d> 
> > 
> >             at
> mx.managers::LayoutManager/LayoutManager$1689$private::doPhase
dInstantiation()[C:\dev\max\sdk\frameworks\mx\managers> \LayoutManager.as:556]
> > 
> >             at
> mx.core::UIComponent/UIComponent$480$private::callLaterDispatc
her2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168]
> > 
> >             at
> mx.core::UIComponent/UIComponent$480$private::callLaterDispatc
her()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107]
> > 
> >  
> > 
> >  
> > 
> > But the AS3 Reference Doc here
> (http://livedocs.macromedia.com/labs/1/flex/langref/flash/medi
> a/Camera.html)
> says that I have a getCamera method.
> > 
> >  
> > 
> > Sample :
> > 
> >  
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > 
> > <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";
> xmlns="*" creationComplete="initApli()">
> > 
> > <mx:Script >
> > 
> >             <![CDATA[
> > 
> >                         import flash.media.Camera;
> > 
> >                         import flash.media.Video;
> > 
> >                         public var video:Video;
> > 
> >  
> > 
> >                         public function initApli():Void{
> > 
> >                         
> > 
> >                         var mycam:Camera = getCamera();
> > 
> >                         video = new Video();
> > 
> >                         video.attachCamera(mycam);
> > 
> >                         }
> > 
> >  
> > 
> >             ]]>
> > 
> > </mx:Script>
> > 
> > </mx:Application>
> > 
> >  
> > 
> > Any idea?
> > 
> >  
> > 
> > Thanks,
> > 
> >  
> > 
> > João Fernandes
> > 
> > Secção de Desenvolvimento
> > 
> > Departamento de Informática
> >
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders 
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! 
> Terms of Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to