[Papervision3D] BasicView: InteractiveScene3DEvent.OBJECT_CLICK
Javier España | javierespana.com
info at javierespana.com
Thu Jul 30 10:10:47 PDT 2009
One thing you can try is giving the Plane a MovieAssetMaterial, and add the
listener to that insted of the object itself... It works better according to
my tests...
Here's and example:
myMaterial = new MovieAssetMaterial("my_movieclip", true);
myMaterial.movie.addEventListener(MouseEvent.CLICK, myMaterial_Click);
private function myMaterial_Click(e:MouseEvent):void{
///
trace("CLICK!");
}
Javier
On Thu, Jul 30, 2009 at 1:23 PM, Strange Loop Studios <
info at strangeloopstudios.com> wrote:
> Viewport has got to be interactive too :)
>
> -----Original Message-----
> From: papervision3d-bounces at osflash.org
> [mailto:papervision3d-bounces at osflash.org] On Behalf Of
> nospam at therossman.org
> Sent: 30 July 2009 16:52
> To: papervision3d at osflash.org
> Subject: Re: [Papervision3D] BasicView:
> InteractiveScene3DEvent.OBJECT_CLICK
>
>
> Do you have your viewport set to interactive?
>
>
> > Hello,
> > i have this code:
> >
> > var plane:Plane = new Plane(immagine, 150, 150);
> > plane.material.interactive = true;
> > plane.useOwnContainer = true;
> > plane.filters = [new BlurFilter(3, 3)];
> > plane.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK,
> > onClickHandler);
> >
> > plane.addEventListener don't work.
> > I click on plane but don't work.
> > Any suggestion?
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090730/64fa8c59/attachment.html>
More information about the Papervision3D
mailing list