A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: changing a propertie on multiple objects ...

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    20

    Talking

    i have this code:
    for (i=1; i<4; i++) {
    for (j=1; j<5; j++) {
    createEmptyMovieClip("box" add i add j, 11);
    loadMovie(i add j add ".jpg", "box" add i add j);
    box = "box" add i add j;
    box._x = (i-1)*(68+14.2);
    box._y = 23.9+(j-1)*(120+25.2);
    }
    }
    but this part:
    box = "box" add i add j;
    box._x = (i-1)*(68+14.2);
    box._y = 23.9+(j-1)*(120+25.2);
    DOESN'T WORK! what did i do wrong??
    and writing a line for each object's _x, _y properties isn't a solution
    please help..

    note: i tried to do this in flash MX

  2. #2
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    What is box? Because you are adding text values then some variables to it.

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    180
    It seems that each clip created is being made in depth level 11 ... that means there will always only ever be one.

    Is that what you meant to do?

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    20
    i fixed it.

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