actionscript help plz

Out of context: Reply #5

  • Started
  • Last post
  • 8 Responses
  • jakeyj0

    need a little more help...

    i can't get the variable length from frame 1 into frame 2. what the heck?

    i've got this in frame 1 actions:

    var countRollover = [];

    this function is in frame2 actions:

    a = countRollover.length;

    function addToRollover (c) {
    for (i = 0; i < a; i++) {
    if (countRollover[i] == c){
    trace ("done");
    }
    else {
    countRollover.push(c);
    trace (countRollover);
    }
    }
    }

View thread