Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/07/2010, 14:41
matias_23
 
Fecha de Ingreso: diciembre-2009
Mensajes: 12
Antigüedad: 14 años, 4 meses
Puntos: 0
Exclamación cubo 3d problema

Hola nose como explicarlo al problema asique les muestro lo que hice
en primer instancia cree un cuadrado y lo hice una clase
Código ActionScript:
Ver original
  1. import flash.display.Shape;
  2. import flash.events.Event;
  3. var cubo3D:Sprite = new Sprite  ;
  4. cubo3D.x = stage.stageWidth / 2;
  5. cubo3D.y = stage.stageHeight / 2;
  6. var CSup:mcCara = new mcCara  ;
  7. var CInf:mcCara = new mcCara  ;
  8. var CDer:mcCara = new mcCara  ;
  9. var CIzq:mcCara = new mcCara  ;
  10. var CFre:mcCara = new mcCara  ;
  11. var CAtr:mcCara = new mcCara  ;
  12. cubo3D.addChild(CSup);
  13. cubo3D.addChild(CInf);
  14. cubo3D.addChild(CDer);
  15. cubo3D.addChild(CIzq);
  16. cubo3D.addChild(CFre);
  17. cubo3D.addChild(CAtr);
  18. addChild(cubo3D);
  19. CSup.rotationX = 90;
  20. CInf.rotationX = 90;
  21. CDer.rotationY = 90;
  22. CIzq.rotationY = 90;
  23. CSup.y = -100;
  24. CInf.y = 100;
  25. CDer.x = 100;
  26. CIzq.x = -100;
  27. CAtr.z = -100;
  28. CFre.z = 100;
  29. cubo3D.addEventListener(Event.ENTER_FRAME,fRotarY);
  30. function fRotarY(Evt:Event):void
  31. {
  32.     cubo3D.rotationY += ((stage.mouseX-(stage.stageWidth/2))/(stage.stageWidth/2)*4);
  33.     cubo3D.rotationX += ((stage.mouseY-(stage.stageHeight/2))/(stage.stageHeight/2)*4);
  34. }
aca esta el swf
[URL="http://img1.xooimage.com/views/8/8/4/cubo3d-1df32a6.swf/"]http://img1.xooimage.com/views/8/8/4/cubo3d-1df32a6.swf/[/URL]
anda , pero el problema es que no se como hacer para que no me aparezca en algunas partes como si faltase una cara