MovieMaterial Click Event

2 views
Skip to first unread message

herkulano

unread,
Mar 11, 2008, 7:34:08 AM3/11/08
to away3d.dev
hi,

i have a plane where i have put a MovieMaterial and made it
interactive:

var material1:MovieMaterial = new MovieMaterial(mcTeste1);
material1.interactive = true;

plane1 = new
Plane({material:material1,width:mcTeste1.width,height:mcTeste1.height,segmentsW:
1,segmentsH:1});
plane1.bothsides = true;
plane1.useHandCursor = true;

and inside the mcTeste1 i have a movieclip with a CLICK event, the
MOUSE_OVER event works well but the CLICK event does not work.

public function mcTeste()
{
bt1.addEventListener(MouseEvent.CLICK, bt1Click);
bt1.addEventListener(MouseEvent.MOUSE_OVER, btOver);
bt1.addEventListener(MouseEvent.MOUSE_OUT, btOut);
}

what do i need to do to make the MovieMaterial send the clicks to the
mcTeste1?

regards,
herculano campos
www.herkulano.com

herkulano

unread,
Mar 12, 2008, 8:57:18 AM3/12/08
to away3d.dev
is this possible in away3d?

i am trying to do a previous experiment i had fully runing in
papervision in away3d but i am stuck at this interaction with my
MovieClip.

regards,
herculano campos

Rob Bateman

unread,
Mar 12, 2008, 9:25:37 PM3/12/08
to away3...@googlegroups.com
Not sure what's causing this Herculano - i think a little more info is required.

Is is possible to send over a working (or in this case, non-working) example?

also, have you tried leaving out the useHandCursor = true; line?

what you have written should work, so unless there is something up with your code eleswhere, it is an engine problem

cheers

Rob
--
Rob Bateman
Flash Development & Consultancy

rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com
Reply all
Reply to author
Forward
Message has been deleted
0 new messages