CodeBase
♥0 |
Line 36 |
Modified 2012-06-16 22:54:37 |
MIT License
archived:2017-03-30 09:14:10
ActionScript3 source code
/**
* Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/gGee
*/
package
{
import flash.events.*;
import flash.display.*;
import com.greensock.*;
import com.greensock.easing.*;
public class CodeBase extends Sprite
{
private var circle:Circle;
public function CodeBase()
{
circle = new Circle( 100, 100, 600, 10 );
addChild( circle );
addEventListener( Event.ENTER_FRAME,function(e:Event):void {
});
}
public function sayHello():String {
return "Hello world!";
}
}
}
import flash.display.Sprite;
import flash.geom.Vector3D;
import flash.geom.Point;
class Circle extends Sprite
{
private var home:Point;
public function Circle(x:Number, y:Number, z:Number, radius:Number)
{
graphics.beginFill( 0x000000 );
graphics.drawCircle(0, 0, radius);
this.x = x;
this.y = y;
this.z = z;
}
}