Away 3.6 MovieMaterial local to global

26 views
Skip to first unread message

sofke

unread,
Nov 3, 2011, 10:41:31 PM11/3/11
to Away3D.dev
I have a plane with a MovieMaterial - MovieClip that contains a video.
I want to overlay that video with 2D Sprite. Is there a way to get the
video (part of a MovieMaterial) screen coordinates and size?

Roger Crist

unread,
Nov 4, 2011, 1:40:50 PM11/4/11
to away3...@googlegroups.com
Maybe I'm misunderstanding . . . you have a movieclip.  You can test its .width and .height.  You can name elements present inside the movieclip.  You can get their .width and .height like this:

myMovieClip.myVidElement.width
myMovieClip.myVidElement.height

I hope that helps.

-roger
--
Roger Crist
Interactive Media Developer
r...@rogercrist.com
415.933.7643
Reply all
Reply to author
Forward
0 new messages