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

Coconut Answer

Solution for Udacity class question
Get Adobe Flash player
by She7ta 29 Feb 2012
    Embed
/**
 * Copyright She7ta ( http://wonderfl.net/user/She7ta )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xeQL
 */

package {
    import com.actionscriptbible.Example;
    import flash.utils.getTimer;
    
    public class FlashTest extends Example {
        var N:Number = 0;
        public function FlashTest() {
            // write as3 code here..
            var n:int = 0
           for(var i:int = 0;i<20000;i++){
               if(CheckNum(i) == true){
                   n++;
                   trace(i);
                   }
               }
              trace(n);
        }
        
        function CheckNum(num):Boolean{
            for(var i:int = 0;i<6;i++){
                num = (num -1) * (4/5)
                if(Math.round(num) != num){
                    return false;
                    break;
                    }
            }
            return true;
            }        
    }
}