> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Erich Erlangga
> Sent: 24 April 2007 14:27
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!


>   //run 7 times faster for attaching symbol in the library
> //(depends on how many people count)
> var a = 1;
> var b = 2;
> var c = 3;
> var d = 4;
> var e = 5;
> var f = 6;
> var g = 7;
> trace("first Number = " + a + " - " + b + " - " + c + " - " + 
> d + " - " + e + " - " + f + " - " + g);
> trace("Next Number =" + newline);
> _root.onEnterFrame = function(){
>  
>  a +=7;
>  b +=7;
>  c +=7;
>  d +=7;
>  e +=7;
>  f +=7;
>  g +=7;
>  
>  trace(a + " - " + b + " - " + c + " - " + d + " - " + e + " 
> - " + f + " - " + g);
>    if (g == 70){
>   delete _root.onEnterFrame ;
>  }
>  
> }

Yes, that does look a bit odd. How about something like:

var tIndex = 1
_root.onEnterFrame = function() {
for (var i=0; i<7 i++) {
trace(tIndex++) 
}
if (tIndex == 70) { 
delete _root.onEnterFrame 
}
};

Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to