The power of Flash
Application entry-point
/**
* Copyright evolverine ( http://wonderfl.net/user/evolverine )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8xLg
*/
// forked from easily's flash on 2011-8-19
package
{
import flash.display.Shape;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.display.Sprite;
/**
* Application entry-point
*/
public class Application extends Sprite
{
public function Application()
{
//uncomment to enable debugger console
//Debugger.setParent(this, true);
//debug('started in ' + this);
//This is a simple animation example. Replace with your own code
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.frameRate = 30;
x = y = 170;
var a:Array = [];
for (var i:uint = 0; i < 30; i++)
{
var s:Shape = new Shape;
s.graphics.clear();
s.graphics.beginFill(i * 0x90000 + i * 0x10, .07);
s.graphics.drawRoundRect(10+i, 10+i, 100, 100, 30);
s.graphics.endFill();
addChild(s);
a.push(s);
}
var tribalCoding:SocialEnterprise = new ITAcademy("TribalCoding",
"facebook.com/tribalcoding").welcome(new Everyone()); tribalCoding
['price'] = 0; No.really('!'); tribalCoding.learnFrom(ITExperts.
getVolunteers() as Mentors); if(your.background == SocialBackground.
DISADVANTAGED || your.gender != Genders.MALE || you.ageGroup != Ages
.YOUNG) { var oddsToJoin:Number = Number .POSITIVE_INFINITY; var
message = "Join Us!"; at(tribalCoding)['you'].will.build(funGames(),
usefulApplications(), and_CoolSites = 'all from scratch!'); you.
will().meet(experts() == friends()); you.will().developSkills += cr.
eateValue && shift(PowerBalance).yourWay;}
if(you.think(you.canT('program'))) {you.may['have']("never").eaten =
1 * pieceOfCake;}
addEventListener('enterFrame', function(e:Event):void
{
var i:uint;a
for each(s in a)
s.rotation += (i++) / 3;
rotation += .6;
rotationY += .4;
});
}
}
}