[Papervision3D] Simple Button hand mode

Patrick Matte | BLITZ PMatte at blitzagency.com
Fri Dec 21 19:43:09 PST 2007


I don't think you necessarily have to extend UIComponent  for something to work with VirtualMouse. VirtualMouse dispatches MouseEvents to any interactive object. So you can create your own custom buttons.

I've tried using VirtualMouse with flash simple button symbols before and it didn't work, I thought maybe it was because they were inheriting from flash 8 legacy and are not listening to MouseEvents to change their skin.


BLITZ | Patrick Matte 310-551-0200 x214
From: papervision3d-bounces at osflash.org [mailto:papervision3d-bounces at osflash.org] On Behalf Of Vincent Maitray
Sent: Wednesday, December 12, 2007 9:48 AM
To: papervision3d at osflash.org
Subject: Re: [Papervision3D] Simple Button hand mode

Hi Thomas,

Thanks for your answer...
Your code solved one thing : I see the hand cursor on my plane now... but it shows on the whole plane, and not only over the button...
This is strange...

For the button states, I am have been testing different flavours of code... with no success for now.
Keep trying...

Vincent


Le 12 déc. 07 à 18:32, Thomas Saunders a écrit :


Hi Vincent,

Try this to fix the hand cursor.

viewport.containerSprite.buttonMode = true;

As for your button states-I'm not sure.  I'd try creating your own button out of a couple of sprites and event listeners

Let me know if this helps-

Thomas

http://modern-carpentry.com/talk



Message: 4
Date: Wed, 12 Dec 2007 18:09:46 +0100
From: Vincent Maitray <vincent at electrofrog.com<mailto:vincent at electrofrog.com>>
Subject: [Papervision3D] PV3D 2.0 - using a SimpleButton created in
       Flash   IDE : no states, no hand cursor
To: papervision3d at osflash.org<mailto:papervision3d at osflash.org>
Message-ID: < 315D338F-15A8-4F3F-A306-F36DD5CCE454 at electrofrog.com<mailto:315D338F-15A8-4F3F-A306-F36DD5CCE454 at electrofrog.com>>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi,

I have been using PV3D Great White for a few days, and I'd like to use
a SimpleButton created in Flash IDE.
This button is inside a MovieClip being used as MovieAssetMaterial
applied on a Plane... The problem is that I can't see the states of
the button nor I can see the hand cursor...
I tried to do the same with a MovieClip created by code and used as a
SimpleButton and it worked ( but the useHandCursor property doesn't
seems to work either ).

Is there a way to do this ?
Thanks for your help.

btw : this my first post here so many thaks to the developpers for
PV3D... ^_^

Here is my code :if it helps :

Vincent Maitray


_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org<mailto:Papervision3D at osflash.org>
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

[cid:image001.gif at 01C84409.B6DB7810]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071221/5c21e5fa/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2623 bytes
Desc: image001.gif
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071221/5c21e5fa/attachment.gif 


More information about the Papervision3D mailing list