Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/06/2011, 17:44
Avatar de jatg
jatg
 
Fecha de Ingreso: abril-2011
Ubicación: caracas
Mensajes: 152
Antigüedad: 13 años, 1 mes
Puntos: 15
Respuesta: Menu en movimiento ¿Como detenerlo con un evento de Mouse?

hola como estas porque no pruebas con algo asi
Código PHP:
Ver original
  1. onClipEvent(load)
  2. {
  3.     radio = 70;
  4.     posX = 300;
  5.     posY = 400;
  6.     grados = -100;
  7.     vel = 0.08;
  8.     nombre = "INICIO";
  9. }onClipEvent(enterFrame)
  10. {
  11.     if (_root.boton == 0)
  12.     {
  13.         x = Math.cos(grados) * radio;
  14.         y = Math.sin(grados) * 3 * radio;
  15.         this._xscale = x + posX / 3;
  16.         this._yscale = x + posY / 3;
  17.         this._x = x + posX;
  18.         this._x = y + posY;
  19.         grados = grados + vel;
  20.     }
  21. }
  22. _________________________________________________________________
  23. onClipEvent(load)
  24. {
  25.     radio = 70;
  26.     posX = 300;
  27.     posY = 400;
  28.     grados = 200;
  29.     vel = 0.08;
  30.     nombre = "TUTO5";
  31. }onClipEvent(enterFrame)
  32. {
  33.     if (_root.boton == 0)
  34.     {
  35.         x = Math.cos(grados) * radio;
  36.         y = Math.sin(grados) * 3 * radio;
  37.         this._xscale = x + posX / 3;
  38.         this._yscale = x + posY / 3;
  39.         this._x = x + posX;
  40.         this._x = y + posY;
  41.         grados = grados + vel;
  42.     }
  43. }
  44. _____________________________________________________________________
  45. onClipEvent(load)
  46. {
  47.     radio = 70;
  48.     posX = 300;
  49.     posY = 400;
  50.     grados = 500;
  51.     vel = 0.08;
  52.     nombre = "TUTO4";
  53. }onClipEvent(enterFrame)
  54. {
  55.     if (_root.boton == 0)
  56.     {
  57.         x = Math.cos(grados) * radio;
  58.         y = Math.sin(grados) * 3 * radio;
  59.         this._xscale = x + posX / 3;
  60.         this._yscale = x + posY / 3;
  61.         this._x = x + posX;
  62.         this._x = y + posY;
  63.         grados = grados + vel;
  64.     }
  65. }
  66. ____________________________________________________________________
  67. onClipEvent(load)
  68. {
  69.     radio = 70;
  70.     posX = 300;
  71.     posY = 400;
  72.     grados = 800;
  73.     vel = 0.08;
  74.     nombre = "TUTO3";
  75. }onClipEvent(enterFrame)
  76. {
  77.     if (_root.boton == 0)
  78.     {
  79.         x = Math.cos(grados) * radio;
  80.         y = Math.sin(grados) * 3 * radio;
  81.         this._xscale = x + posX / 3;
  82.         this._yscale = x + posY / 3;
  83.         this._x = x + posX;
  84.         this._x = y + posY;
  85.         grados = grados + vel;
  86.     }
  87. }
  88. __________________________________________________________________
  89. textoFinal = texto2;
  90. var caracteres = textoFinal.split("");
  91. texto2 = "_";
  92. indice = 0;
  93. delete _root.onEnterFrame;
  94. _root.onEnterFrame = function ()
  95. {
  96.     if (indice < caracteres.length)
  97.     {
  98.         texto2 = texto2.substring(0, texto2.length - 1);
  99.         texto2 = texto2 + (caracteres[indice] + "_");
  100.         ++indice;
  101.         return;
  102.     }
  103.     delete this.onEnterFrame;
  104.     texto2 = textoFinal;
  105. }
  106. ;
  107. boton = 0;
  108. stop();
__________________
www.josealexis.net