[Papervision3D] possible to add onEnterFrame-Listener to a Papervision3D Sphere?
Paul Tondeur
paul at paultondeur.nl
Thu May 21 08:10:34 PDT 2009
overriding onRenderTick is the way to go when extending from
BasicView (which I advice to do by the way).
On May 21, 2009, at 4:59 PM, David Hovey wrote:
> im sure someone more qualified will be able to answer as well, but
> heres my 2 cents:
>
> instead of using an onEnterFrame i would override the onRenderTick
>
> protected override function onRenderTick(event:Event = null):void
> {
> kugel.rotationY++;
>
> super.onRenderTick(event);
> }
> dai
> www.14lox.com
>
> On Thu, May 21, 2009 at 3:25 PM, flashback1 <famhalb at gmx.de> wrote:
>
> Hello,
>
> I am new to Papervision3D and have a question: is it possible to add
> an
> onEnterFrame-Listener to a Sphere? I tried to do this and I didn´t
> get any
> error message, but when I ran my application, the action that I
> wrote in my
> onEnterFrame-Handler did not happen at all. When tested with
> debugger I saw
> that the onEnterFrame-Handler that I add to the Sphere didn´t be
> called. Can
> you help me?
>
> I wanted to write an apllication that shows a rotating sphere, but
> when I
> run my application the sphere is there but it is not rotating at
> all. Do
> someone of you have an idea why?
>
> I would thank you for any advise!
>
> regards,
> Miriam
>
> Here is the sourcecode:
>
> private var kugel:Sphere;
>
> kugel = new Sphere(composit);
> kugel.addEventListener(Event.ENTER_FRAME,onEnterFr ame);
>
> private function onEnterFrame(e:Event):void{
> kugel.rotationY++;
> }
> scene.addChild(kugel);
> --
> View this message in context: http://www.nabble.com/possible-to-add-onEnterFrame-Listener-to-a-Papervision3D-Sphere--tp23654047p23654047.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090521/9e59e418/attachment.html>
More information about the Papervision3D
mailing list