the code for you idgd[eanos]
import flash.geom.Point;
class Gira {
var p:MovieClip;
var r:Number;
var c:Point;
var ang:Number = 0;
var incr:Number = 2*Math.PI/180;
public function giras(pelicula:MovieClip, cx:Number, cy:Number, radio1:Number, radio2:Number) {
p = pelicula;
p = pelicula;
r = radio1;
c = new Point(cx, cy);
p._x = c.x+r;
p._x = c.y;
ang += incr;
}
public function MueveCirculo():Void {
p._x = c.x+r*Math.cos(ang);
p._x = c.y+r*Math.sin(ang);
ang += incr;
}
public function totgiros ():Number{
return ang;
}
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment