hi i am new be in flash, i am trying to like this and i Done!
http://myrozgar.noads.biz/flash/
check this but you are laughing to see my code how i done this. i have 4 Mc and all have separate function but its is stupid thing. Any expert can combine to one function.
thanks in advance
Here is Code
onMouseMove = function(){
total.onEnterFrame = function(){
diffx = _root._xmouse - this._x ;
diffy = _root._ymouse - this._y ;
/// 5 is distance between the mouse and the movie clip
total._x += diffx/5 ;
total._y += diffy/5 ;
total._alpha = 50;
//root.line_mc.lineTo(this._x , this._y) ;
}
total1.onEnterFrame = function(){
diffx = _root._xmouse - this._x ;
diffy = _root._ymouse - this._y ;
/// 5 is distance between the mouse and the movie clip
total1._x += diffx/3 ;
total1._y += diffy/3 ;
total1._alpha = 100;
//root.line_mc.lineTo(this._x , this._y) ;
}
total2.onEnterFrame = function(){
diffx = _root._xmouse - this._x ;
diffy = _root._ymouse - this._y ;
/// 5 is distance between the mouse and the movie clip
total2._x += diffx/7 ;
total2._y += diffy/7 ;
total2._alpha = 40;
//root.line_mc.lineTo(this._x , this._y) ;
}
total3.onEnterFrame = function(){
diffx = _root._xmouse - this._x ;
diffy = _root._ymouse - this._y ;
/// 5 is distance between the mouse and the movie clip
total3._x += diffx/9 ;
total3._y += diffy/9 ;
total3._alpha = 30;
//root.line_mc.lineTo(this._x , this._y) ;
}}