you have lockX and lockW properties, see them as a sort of embed size for your 
material
plus you have a cliprect, in case your want to show/update only a part of that 
material

Fabrice

On Feb 3, 2010, at 2:17 AM, Sebas wrote:

> Hello Away3d community!
> In my project I have a simple primitive shape, for example a
> triangular prism which I built as a cylinder with 3 sides (or to be
> exact using 3 for the segmentsW value).
> My goal is to be able to apply a movieclip I have in my FLA library as
> a texture to the different sides of the prism. To do this, I create my
> MovieMaterial with my sprite, get the faces of the object, iterate
> through the faces to pick the ones I am interested in, and apply the
> MovieMaterial to all of them. So, lets say I wanted to change the
> material of the top of my triangular prism: I get the corresponding
> faces and apply the MovieMaterial to them. The problem Im having,
> however, is that Im unsure of the dimensions and position the
> movieclip in my library needs to be so that its an exact fit,
> especially when the area I want to apply the texture to is a triangle
> (in the case of the top of my triangular prism). I've had better luck
> with rectangular areas, but Ive only gotten them to work by trial and
> error.
> Im getting stretched movieclips and certain parts of the movieclip
> that dont show. If I try to build the movieclip as a triangle, I get
> whitespace as part of the texture which messes things up. Its worth to
> note that the movieclips that Im using as textures are basically a
> colored background with an animated label in the middle of it. So the
> idea would be to have the animated label in the middle of the top of
> the triangular prism that says for example "Top".
> 
> So, how do I build my movieclip so that it fits the shape well? I want
> my animated text label to not be stretched or shrunk and for it to
> appear in the middle. Any help would be greatly appreciated.

Reply via email to