In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

EnterFrame内 140 文字 forked from:Clock

incorporated satyr's http://wonderfl.net/code/b437452eff46a89f2f875c1037e61fd7742e255a
軽く1打目 EnterFrame 内 212文字
Get Adobe Flash player
by meat18 20 Mar 2010
  • Forked from makc3d's EnterFrame内 141 文字
  • Diff: 6
  • Related works: 1
  • Talk

    yonatan at 21 Mar 2010 12:41
    It's actually 139, not 140.
    yonatan at 21 Mar 2010 19:05
    oops, "with(graphics)for(clear(),lineStyle(i=2);i<5;x=y=232)moveTo(m=Math,lineTo(m.sin(t=Date().split(/\W/)[++i]/(i%3?10:2))*i*50,-m.cos(t)*i*50))".length == 138
    makc3d at 22 Mar 2010 03:31
    that's because \W, that slash does not get through, and 140th character - who knows - would be missing ";" at the end?
    Embed
/**
 * Copyright meat18 ( http://wonderfl.net/user/meat18 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/tYVn
 */

// forked from makc3d's EnterFrame内 141 文字
// incorporated satyr's http://wonderfl.net/code/b437452eff46a89f2f875c1037e61fd7742e255a
// forked from makc3d's EnterFrame内 148 文字 (ok, ok, cheating :)
// forked from nitoyon's EnterFrame内 151文字 forked from: Clock
// forked from meat18's EnterFrame内 155文字 forked from: Clock
// forked from meat18's EnterFrame内 156文字 forked from: Clock
// forked from Nicolas's EnterFrame内 158文字 forked from: Clock
// forked from nitoyon's EnterFrame内 168文字 forked from: Clock
// forked from meat18's forked from: EnterFrame内 192文字 forked from: Clock
// forked from bkzen's EnterFrame内 212文字 forked from: Clock
// forked from makc3d's Clock 
// 軽く1打目 EnterFrame 内 212文字

package {
	import flash.display.Sprite;
	public class FlashTest extends Sprite {
		public function FlashTest() {
			addEventListener("enterFrame", function():void {
				with(graphics)for(clear(),lineStyle(i=2);i<5;x=y=232)moveTo(m=Math,lineTo(m.sin(t=Date().split(/\W/)[++i]/(i%3?10:2))*i*50,-m.cos(t)*i*50))
			});
        }
    }
}
//with(graphics)
//	for(clear(),lineStyle(i=2);i<5;x=y=232)
//		moveTo(m=Math,lineTo(
//		m.sin(t=Date().split(/\W/)[++i]/(i%3?10:2))*i*50,-m.cos(t)*i*50))
//  ただこのコードは時間によっては針の角度が若干ズレますよね・・・。