Por favor, alguien me puede ayudar?
Tengo un codigo en flash player 6 que me funciona, pero necesito no me funciona en flash palyer 8 que es el que necesito.
El link contiene la animacion que quiero, el archivo se llama "sample.swf"
[url=http://patriciareyesmakeup.com/]
El codigo que estou usando es el siguiente:
EN EL TIME LINE:
onMouseMove = function () {
var _l1 = _xmouse-oldx;
var _l2 = _ymouse-oldy;
var _l3 = Math.sqrt(_l1*_l1+_l2*_l2);
if (_l3>minDist) {
attachMovie("star","star"+count,count++);
oldx = _xmouse;
oldy = _ymouse;
}
}
Y EN EL MOVIECLIP
function Dot()
{
var _l1 = this;
_l1._x = _root._xmouse;
_l1._y = _root._ymouse;
_l1.vx = 3;
_l1.vy = 3;
_l1.age = 0;
} // End of the function
function move()
{
var _l1 = this;
_l1._x = _l1._x + _l1.vx;
_l1._y = _l1._y + _l1.vy;
_l1.vx = _l1.vx + (Math.random() * 2 - 1);
_l1.vy = _l1.vy + (Math.random() * 2 - 1);
_l1.vx = _l1.vx * damp;
_l1.vy = _l1.vy * damp;
_l1._alpha = _l1._alpha - 0.9999999;
if (_l1._x > 1024 || _l1._x < 0 || _l1._y > 768 || _l1._y < 0 || _l1._alpha < 1)
{
_l1.removeMovieClip();
} // end if
} // End of the function
damp = 0.99999;
Dot.prototype = new MovieClip();
Object.registerClass("star", Dot);
Dot.prototype.onEnterFrame = move;
MUCHAS GRACIAS
