Flex and Flash Developer - Jesse Warden dot Kizz-ohm

A blog on software development, technology, games & movies.

About

This is the blog of Jesse Warden, a Rich Internet Application Architect. He specializes in using Flex and Flash to create Rich Internet Applications.

…I’ll do anything to avoid homework.

Insane Moo Goo (It’s loud, yo…)

All you need is a symbol in the library named “Circle” for the code to work:

function init()
{
        max = 400;
        c = 0;
        onEnterFrame = a;
}

function a()
{
        if(c + 1 < max)
        {
                c++;
        }
        else
        {
                c = 0;
        }
        var o = {};
        o._x = Math.random() * Stage.width;
        o._y = Math.random() * Stage.height;
        o._rotation = Math.random() * 360;
        o._alpha = Math.random() * 100;
        o._xscale = Math.random() * 100;
        o._yscale = Math.random() * 100;
        attachMovie("circle", "c" + c, c, o);
}

init();


Leave a Reply