[Papervision3D] Accessing the movie frames in InteractiveMovieAssetMaterial?
Noah Aronsson-Brown
noah at rdai.com
Thu Sep 6 12:20:28 PDT 2007
I want to tell a movieclip that i'm using as a material to gotoAndStop on a
different frame during a for loop, so i'm using the same system as the
InteractiveFLVMovieMaterial example.
here is the for loop:
for(i = 0; i < num; i++ )
{
item = new Plane( material, 100, 100 );
item.name = 'side'+i;
scene.addChild( item );
getMovie().gotoAndStop(i+1); //this is what is giving me trouble
trace(getMovie());
item.x = boxXNums[i];
item.y = boxYNums[i];
item.z = boxZNums[i];
//item.lookAt(camera);
}
and here is the getMovie() function:
function getMovie():MovieClip
{
return InteractiveMovieAssetMaterial(item.material).movie as MovieClip;
}
I've been pulling my hair out trying to get it to work but I can't do it.
Can anyone smarter than I please give me a clue?
Thanks,
.noah
--
View this message in context: http://www.nabble.com/Accessing-the-movie-frames-in-InteractiveMovieAssetMaterial--tf4394173.html#a12529583
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list