My 25lines entry (didn’t make it)

The 25lines January finalists were announced today, some really awesome stuff.
I’ve set up a new 25lines browser page for them, but it isn’t really worth it until all January codes are available.

My entry isn’t among them, so its code will be published in a few days at 25lines.com when the voting has ended.
If you want to see it by now, here it goes.

I could watch it for hours.

The Flash plugin is required to view this object.


/**
 * 25-Line ActionScript Contest Entry
 *
 * Project:	periodic fortune
 * Author:	Mathis Lichtenberger <mail@xathis.com>
 * Date:	01/13/2009
 * Share:	YES
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

// 3 free lines! Alter the parameters of the following lines or remove them.
// Do not substitute other code for the three lines in this section
[SWF(width=600,height=540,backgroundColor=0,frameRate=24)]
stage.scaleMode = StageScaleMode.NO_SCALE;
// 25 lines begins here!
import fl.motion.Color
var a={}
function setProps(o,p){for(var i in p)o[i]=p[i]}
function init(){
	for(var i=0;i<(a.n=6+Math.floor(Math.random()*2)*2);i++)a[i]=new Point((a.rd=Math.random)()*240,a.rd()*240)
	setProps(a,{x:a.rd()*600,xx:0,xxx:1-a.rd()*2,y:a.rd()*540,yy:0,yyy:1-a.rd()*2,t:0,tt:0,ttt:3-a.rd()*6,c:a.rd()*200000000,d:a.rd()*200000000,p:0,z:0,zz:20-a.rd()*25,u:0,uu:40-a.rd()*80})}
addEventListener("enterFrame",function(e){
	if(a.s==null||a.x<0||a.y<0||a.x>600||a.y>540)init()
	Shape(addChild(a.s=new Shape())).graphics.beginFill(Color.interpolateColor(a.c,a.d,a.p+=0.1))
	for(var i=0;i<a.n/2;i++)a.s.graphics.curveTo(a[i*2].x,a[i*2].y,a[i*2+1].x,a[i*2+1].y)
	setProps(a.s,{x:a.x+=a.xx+=a.xxx,y:a.y+=a.yy+=a.yyy,rotation:a.t+=a.tt+=a.ttt,z:a.z+=a.zz,rotationX:a.u+=a.uu})
	for(i=0;i<numChildren;i++)if((getChildAt(i).alpha-=0.025)<=0)removeChild(getChildAt(i))
	for(i=0;i<numChildren;i++)getChildAt(i).x+=.5-getChildAt(i).alpha})
// 25 lines ends here!

Actually, it’s only 13 lines of code.
Maybe that’s the reason they didn’t like it? I don’t think so.

Responses

  • Alexxus Wednesday, June 23rd, 2010 at 11:32 pm

    doors.txt;10

Leave a Comment