Well,
That’s what I first
tried and got the same error.
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner
Sent: quinta-feira, 12 de Janeiro
de 2006 15:25
To: [email protected]
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 [email protected], 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]
>
>
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
|
- RE: [flexcoders] Re: AS3 & Camera Class João Fernandes
-