what are you trying to do?

Why not instead of stage.addEventListener(Event.ENTER_FRAME, use
stage.addEventListener(MouseEvent.MOUSE_MOVE ?

hover() is updating the camera, not checking for something...



On Aug 9, 2:22 pm, metSyS <[email protected]> wrote:
> I can't understand? when the hover() returns false? I need something
> like this:
>
> private function onEnterFrame(e:Event):void
> {
> camPan=-((mouseX-(stage.stageWidth/2))*0.07)+1;
> camTitl=-((mouseY-(stage.stageHeight/2))*0.01);
>
> if (cam.hover()==true)
> {
>         cam.panAngle=camPan;
>         cam.tiltAngle=camTitl;
>         cam.hover()
>
>         view.render();
>
> }
> }
>
> but cam.hover() is always return true? event when the mouse doesn't
> move.

Reply via email to