[Papervision3D] buttonMode (making the cursor turn into the hand thingy)

John Grden neoriley at gmail.com
Wed Nov 14 05:35:35 PST 2007


buttonMode = true;

that's all you need.

If you're creating movieclips in the Flash IDE, just simply add it to frame
one in your actionscript layer and it'll work

if you're doing it from pure code (AS3), then just get a reference to the
movieclip/sprite from your material and set buttonMode=true;

IE:
// sprites have buttonMode, MovieClip extends Sprite, so change the object
type as you need to
var mc:MovieClip;
var mat:MovieMaterial = DO3D.material as MovieMaterial;
if( mat ) mc = mat.movie as MovieClip;
if( mc ) mc.buttonMode = true;

that should help you avoid any null RTE's and you should see a hand cursor
when you roll over the material (hopefully) :)

-- 
[  JPG  ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071114/6e30221b/attachment.html 


More information about the Papervision3D mailing list