A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: A Question

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    5
    //Frame 1
    xyz = new Array();

    ---
    //Frame 2
    xyz[1,4] = 5;
    tellTarget("MovieClipName"){
    gotoAndStop(xyz[1,4])
    }
    stop();
    ---

    Why doesn't "MovieClipName" reach frame(5) and Stop?
    Appericate if anyone could answer my stupid question...

  2. #2
    Member
    Join Date
    Sep 2000
    Posts
    30
    Originally posted by chisinlo
    //Frame 1
    xyz = new Array();

    ---
    //Frame 2
    xyz[1,4] = 5;
    tellTarget("MovieClipName"){
    gotoAndStop(xyz[1,4])
    }
    stop();
    ---

    Why doesn't "MovieClipName" reach frame(5) and Stop?
    Appericate if anyone could answer my stupid question...
    i didnt try it but lets do it :
    first put in the secnd frame:
    trace(xyz[1,4]);


    if it give the value 5
    if it is not try :
    trace(_root.xyz[1,4]);

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    5
    I've just asked someone who knows C, he told me the syntax of a mutli-dimension array for C is i[x][y][z]...

    I don't know C well, so I stuck to the old Pascal format of a 3D array that is i[x, y, z]. (But I am no good in Pascal too!)

    Boaz, would it be the problem of such a syntax's problem?

    I will test it myself to see the result.

    Anyway, thank you boaz, you are the only one who replyed my question.

  4. #4
    Member
    Join Date
    Aug 2000
    Posts
    44
    You missed the _root.

    //Frame 1
    xyz = new Array();

    ---
    //Frame 2
    xyz[1,4] = 5;
    tellTarget("MovieClipName"){
    gotoAndStop(_root.xyz[1,4])
    }
    stop();

  5. #5
    Junior Member
    Join Date
    Jan 2001
    Posts
    5

    Smile

    Thanks, you answer solved me some essential questions!

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