[Papervision3D] ISM event bubbling hack
John Grden
neoriley at gmail.com
Thu May 8 18:55:33 PDT 2008
this is cool, Jesse - I would be concerned about CPU hit though since that's
recursive essentially. Maybe it'd be nice to have it as an option to turn
on in ISM though
thoughts?
On Thu, May 8, 2008 at 6:15 PM, Jesse Ringrose <
jesse.ringrose at blastradius.com> wrote:
> So I was fiddling with some PV3D today and I noticed that there's no
> support for bubbling ISM events up a scene, so I made a little hack to the
> dispatchObjectEvent method in InteractiveSceneManager.
>
>
>
> I changed DO3D.dispatchEvent( new InteractiveScene3DEvent( … ) ) to:
>
>
>
> do {
>
> DO3D.dispatchEvent(new InteractiveScene3DEvent( … ));
>
> DO3D = DO3D.parent as DisplayObject3D;
>
> } while(DO3D != null);
>
>
>
> And it seemed to do the trick. I was nesting some objects inside an empty
> container DO3D, and being able to listen to events at a higher level (other
> than the ISM directly) seems pretty handy for a lot of situations, so
> hopefully someone else finds this useful, too.
>
>
>
> Cheers,
>
> J
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080508/359fec1b/attachment.html
More information about the Papervision3D
mailing list