Author Archives: Zevan

3D Ring

CLICK HERE TO COPY
Actionscript:

[SWF(width = 500, height=500)]

var ring:MovieClip = createRing();

ring.x = stage.stageWidth / 2;

ring.y = stage.stageHeight / 2;

addChild(ring);

 

function createRing(sectionNum:int = 30):MovieClip{

    var container:MovieClip = new MovieClip();

    container.circles = [];

    container.theta = 0;

    container.thetaDest = 0;

    var step:Number = (Math.PI * 2) / sectionNum;

    for (var i:int = 0; i<sectionNum; [...]

Posted in 3D, Graphics, MovieClip, UI, arrays, motion, sortOn | Tagged , , | 3 Comments

Propeller Sketch

CLICK HERE TO COPY
Actionscript:

makeFlyer();

 

function makeFlyer():void{

    var thing:MovieClip = new MovieClip();

    thing.x = 200;

    thing.y = 200;

   

    addChild(thing);

   

    var prop:Shape = new Shape();

    with (prop.graphics){

        lineStyle(0,0x000000);

        beginFill(0x000000);

        moveTo(-100,0);

        curveTo(-100, -30, 0, 0);

      [...]

Posted in motion | Tagged , , | 2 Comments

Drawings and Animations

So there are 434 posts on this site to date. I hope to keep posting but it isn't always easy to come up with new ideas. Another project I've been working on is a series of drawings and interactive animations over at my other website (shapevent). I've been creating entries for this part of shapevent [...]

Posted in Announcements, projects | Tagged , , | Leave a comment

Circle Mouse Toy

CLICK HERE TO COPY
Actionscript:

var circles:Array = [];

for (var i:int = 0; i<30; i++){

    var c:Sprite = makeCircle();

    c.x = stage.stageWidth / 2;

    c.y = stage.stageHeight / 2;

    c.scaleX = 1 + i/2;

    c.scaleY = 0.5 + i/4;

    addChild(c);

    circles.push(c);

}

addEventListener(Event.ENTER_FRAME, onLoop);

function onLoop(evt:Event):void {

    circles[0].y += (mouseY - circles[0].y) [...]

Posted in Graphics, misc, motion | Tagged , , | 5 Comments