A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscript confusion

  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    44

    actionscript confusion

    What does this mean?

    _root.mc["hold"+i]._y = 128+113*i;

    How does the 128+113*i work?

    I am adjusting a script that was done for me, to make it so scrolling goes up and down instead of left to right (clients never make up their minds)

    this.createEmptyMovieClip("mc",3);
    mc._y =15;
    mc._x =0;
    for(i=0;i<7;i++){
    mc.createEmptyMovieClip("hold"+i,i);
    _root.mc["hold"+i]._y = 128+113*i; // This is the line I need to adjust by 10/15 pixels downward
    _root.mc["hold"+i]._x = 15;
    _root.mc["hold"+i].loadIt();
    }
    What we do in our spare time:
    Free IPOD 0/5 3 pending:
    http://www.digitalcup.net/ipod/
    Free Flatscreen 0/8 0 pending:
    http://www.digitalcup.net/monitor/

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    128 and 113 might be the starting postition and height of the buttons. You should be able to adjust one of those + or - the 10/15 pixels you need.

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