You can add Mouse listeners :O)

On May 27, 8:50 pm, vedran <[email protected]> wrote:
> Hi!
> So I cant add eventListeners to objects, thats what I wanted to know.
> Already did it the other way.
>
> Thanks!
> Vedran
>
> - - - - - - - - - - - - - - - - - - - - - - - - -
> vedran kolac
> - - - - - - - - - - - - - - - - - - - - - - - - -
> gTalk - [email protected]
> - - - - - - - - - - - - - - - - - - - - - - - - -
> skype - vedrankolac
> - - - - - - - - - - - - - - - - - - - - - - - - -
> +385 (0) 91 567 07 17
> - - - - - - - - - - - - - - - - - - - - - - - - 
> -http://www.onoxo.nethttp://www.projectmoe.net
> - - - - - - - - - - - - - - - - - - - - - - - - -
>
> On Fri, May 27, 2011 at 8:21 PM, themightyatom <[email protected]>wrote:
>
>
>
>
>
>
>
> > A cube is not a MovieClip, not sure it throws an ENTER_FRAME Event.
> > Try just running your loop in "main"
>
> > _cube = new Cube(material);
> > _view.scene.addChild(_cube);
> > this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
>
> > private function onEnterFrame(e:Event):void {
>
> > _cube.rotationY += 1;
> > }
>
> > other than that, you've called you function updateObject, and ur
> > calling onEnterFrame
>
> > Cheers,
>
> > Pete
>
> > On May 27, 8:04 pm, vedran <[email protected]> wrote:
> > > Hi all!
> > > How can i add event listener to a Object3D instance, for example i want
> > to
> > > do this:
>
> > > _cube = new Cube(material);
> > > _view.scene.addChild(_cube);
> > > _cube.addEventListener(Event.ENTER_FRAME, onEnterFrame);
>
> > > private function updateObject(e:Event):void {
> > > trace("Main::updateObject()", e.target);
> > > e.target.rotationY += 1;
>
> > > }
>
> > > Thanks!
> > > Vedran
>
> > > - - - - - - - - - - - - - - - - - - - - - - - - -
> > > vedran kolac
> > > - - - - - - - - - - - - - - - - - - - - - - - - -
> > > gTalk - [email protected]
> > > - - - - - - - - - - - - - - - - - - - - - - - - -
> > > skype - vedrankolac
> > > - - - - - - - - - - - - - - - - - - - - - - - - -
> > > +385 (0) 91 567 07 17
> > > - - - - - - - - - - - - - - - - - - - - - - - - -http:/
> > /www.onoxo.nethttp://www.projectmoe.net
> > > - - - - - - - - - - - - - - - - - - - - - - - - -

Reply via email to