[Papervision3D] FLV inside InteractiveMovieAssetMaterial

John Grden neoriley at gmail.com
Tue Aug 21 07:05:17 PDT 2007


DisplayObject3D has a property called material, which is the material
assigned to it.

material has a property called "movie", which is the movie used for the
material

So, you could access it this way:

var myMaterial:InteractiveMovieAssetMaterial = myDO3D.material as
InteractiveMovieAssetMaterial;

// cast as movieclip OR whatever class you used with your movieclip
var myMovie:MovieClip = material.movie as MovieClip;

if(myMovie)
{
    // at this point, you're at the movieclip level and can do what you
want.
    myMovie.gotoAndPlay(2);
}

hth,

John

On 8/21/07, elkraneo <elkraneo at gmail.com> wrote:
>
>
> i made a plane with an assigned library asset who contains an stopped flv,
> how can i target to the flv inside the material to make it play ?
>
> thx in advance
> --
> View this message in context:
> http://www.nabble.com/FLV-inside-InteractiveMovieAssetMaterial-tf4304999.html#a12254081
> 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
>



-- 
[  JPG  ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070821/b53f3c37/attachment.html 


More information about the Papervision3D mailing list