//Flash MX Snake Game 2.1 by Strille, 750 bytes. //Paste this code on frame 1, set scene size to 512x280 and Frame Rate to 16 createTextField("t",1,1,255,511,32);t.text="Snake Game - Press Space";beginFill( 0xeeeeee);lineStyle(1);lineTo(511,0);lineTo(511,256);lineTo(0,256);endFill();Key.addListener( t);t.onKeyDown=function(){c=Key.getCode()-37;if(!(c>>2)){if(c != q[0]){q.unshift(c)}return;}x=16896;q=[];m=[] createEmptyMovieClip("s",w=0);e=2*(m[x-520]=2*(r=1));onEnterFrame=function(){c=q.pop();if(c!= undefined and c%2!=r%2){r=c;};x+=[-1,-65,1,65][r]*8;if(m[x]==1 or !(x%520) or !(int(x/(520))% 33)){delete onEnterFrame;t.text+="\tGAME OVER!";return;};with(s.createEmptyMovieClip(w,w)){ beginFill(255<<16);if(w++){beginFill(0x555588)};_x=x%520;_y=int(x/(520))*8;lineTo(-7,0);lineTo( -7,-7);lineTo(0,-7);endFill()};m[x]+=1;if(m[x] == 3){t.text="Score: "+(w-(e-=5)-2)*2;do{}while(m[c =(s[0]._x=8+random(64)*8)+(s[0]._y=8+random(32)*8)*65]);m[c]=2;}if(e){c=s[e];delete m[c._x+65*c ._y];removeMovieClip(c)};e++}}