A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Papervision3D

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    63

    Papervision3D

    Hi guys. I need some urgent help. I am creating 18 planes with movieClip material, addChild to Displayobject3D and assigning them addEventListener(InteractiveScene3DEvent.OBJECT_PR ESS, function). After this event i want to remove to all the events given to all the planes in DisplayObject3D and add new event listener to the one that is clicked to close it. here is my script.

    PHP Code:
    for(var i:uint=0i<numberOfVerticesi++)
                {
                    var 
    material:MovieMaterial = new MovieMaterial(btnsArray[i], truetrue);
                    
    material.doubleSided true;
                    
    material.smooth true;
                    
    material.precise true;
                    
    material.interactive true;
                    
    btnsArray[i].buttonMode true;
                    
    btnsArray[i].addEventListener(MouseEvent.MOUSE_OVERover);
                    
    btnsArray[i].addEventListener(MouseEvent.MOUSE_OUTout);                
                    
                    
    plane = new Plane(material600600);
                    
    plane.id i;                
                    
    plane.sphere1.geometry.vertices[i].x;
                    
    plane.sphere1.geometry.vertices[i].y;
                    
    plane.sphere1.geometry.vertices[i].z;
                    
    plane.scaleX plane.scaleY 0.08;        
                    
    plane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESSopenServicefalse0true);
                    
                    
    pivotDO3D.addChild(plane);
                    
    addEventListener(Event.ENTER_FRAMEloopServices);
                } 
    How can i Remove events to disable all planes. activate only one to return it back and reactivate all the planes.

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    63
    Nevermind fellows i solved it. thanks anyway. If someone wants to know how you can ask me. Later

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center