[Papervision3D] Help me please ..i 've been struggling with it too much

andrewfeed feedmeglass at hotmail.it
Thu Nov 15 05:03:49 PST 2007


Hello everyone i have some thing to ask about interactivity ..
I'm trying to control the clip used as the material of a plane
i have a btn inside the main clip used as material  ..it works but of course
since i'm using the same material for every plane the clip material stops at
frame 4 for every plane ....by the way why i cant do that: 
item_movie.gotoAndStop(num); dosent work? should i create different
materials for every plane? how?  i tried with var  material[num] but it
dosent work :( 

for (var num:Number=0; num < maxAlbums; num++) {
			
	var material:InteractiveMovieAssetMaterial = new
InteractiveMovieAssetMaterial( "Album" );


				var item_movie:MovieClip=MovieClip(material.movie);
                                item_movie.gotoAndStop(num);
				var item_btn:DisplayObject=item_movie.getChildByName("btn");
				item_btn.addEventListener(MouseEvent.CLICK, handleMainClick);

               			material.doubleSided = true;
				material.animated=true;
		
				var plane :Plane = new Plane( material, paperSize, 0, 2, 2 );


and then :
private function handleMainClick(e:MouseEvent):void {
			e.currentTarget.parent.gotoAndStop(4);
			//var word:Sprite = e.currentTarget.parent;
                       // word.y=200;
			trace("click");
		}




another thing : if i add a listener to a plane.container how can i control
the movie used as the material from inside the event?   can i do it? i
desparetly need to know :)

thank u :)
-- 
View this message in context: http://www.nabble.com/Help-me-please-..i-%27ve-been-struggling-with-it-too-much-tf4811726.html#a13767146
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list