A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: new to actionscript question

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    29
    I'm trying to learn actionscripting on my own and I am just wondering what does the "i" mean. I see it all over the place such as: for(i=0;i<myArray.length;i++){

    Is this a standard or do people use it just as math teachers use "x" and "y"

    just wondering?

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Location
    Ottawa, Canada
    Posts
    304
    Hi,

    yup, "i" is generally a standard for a counter (increment)

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    13
    Yes ... it is a variable, can be replaced with anything.
    But usually use i (increment)

    for (i=0; i<=4; i++) {
    for (j=0; j<=4; j++) {
    // action
    }
    }

    Actionscript is similar to javascript.

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