A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help understanding actionscript [F8]

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    45

    Help understanding actionscript [F8]

    Hey guys,

    could any one help me understand what the following actionscripts mean;

    for(var n=0; n!=numRows; n++)

    Also I don't understand what the "n" means and the double ++.



    Thanks guys

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    This is the beginnng of a section of code that will loop or repeat itself until a specified condition occurs.

    'n' is just a name for the counter that is going to be used in the loop, so here 'n' is a variable.

    So starting with 'n' as zero and continue as long as 'n' does NOT equal the value of 'numRows', and each time the loop starts over increase the value of 'n' by one'. (n++ means after using it increment it by one)

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center