Yeap,

 

The first try was the one you proposed then I tried the one I posted. The error is exactly the same.

 

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:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AS3 & Camera Class

 

So you're still getting the same error?



--- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]>
wrote:
>
> 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::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860]
> >
> >             at
>
mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085]
<http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()%5bC:/dev/max/sdk/frameworks/mx/core/UIComponent.as:1085%5d>

> >
> >             at
>
mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556]
> >
> >             at
>
mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168]
> >
> >             at
>
mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[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/media/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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to