scriptTimeLimit?

by 3pt
メタデータタグSWF scriptTimeLimit を試す。
参考URL http://maglog.jp/lightbox/Article459511.html

効いてない?
♥0 | Line 23 | Modified 2009-11-26 16:21:49 | MIT License
play

ActionScript3 source code

/**
 * Copyright 3pt ( http://wonderfl.net/user/3pt )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/wb7s
 */

package {
        /*
        * メタデータタグSWF scriptTimeLimit を試す。
        * 参考URL http://maglog.jp/lightbox/Article459511.html
        * 
        * 効いてない?
        *
        */
	import flash.display.Sprite;
	import flash.events.*;
	import flash.text.TextField;
	import flash.utils.Timer;
	
	[SWF(scriptTimeLimit=1)]
    public class FlashTest extends Sprite {
		
         private var sampleText:TextField;
         private var count:int;
		
		public function FlashTest():void
		{
			 sampleText = new TextField();
			 addChild(sampleText);

			 count=0;	   

			 var timer:Timer = new Timer(1000);
			 timer.addEventListener(TimerEvent.TIMER, function():void {
					 count++;  
					 sampleText.text = count.toString();
			 });
			 timer.start();
		}
    }
}

Forked