A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Using a variable name to position a clip?

  1. #1
    reMember
    Join Date
    May 2001
    Location
    Boston, Massachusetts, USA
    Posts
    128

    Using a variable name to position a clip?

    I'm trying to position a series of MCs using an array and a for loop. My problem is that my clipB will not accept the s1._y positioning. If I change:

    _root.clipB._y = s1._y
    to
    s2._y = s1._y

    then it works.


    var myArray:Array = Array("s1", "s2", "s3");
    //placement formula
    for( i=0; i<myArray.length; i++ ){
    _root.clipB = myArray[i];
    _root.clipB._y = s1._y;

    }
    1 post closer to a meeeeeellion......

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    please resize you footer according to FK rules.
    http://board.flashkit.com/board/showthread.php?t=710156

    gparis

  3. #3
    reMember
    Join Date
    May 2001
    Location
    Boston, Massachusetts, USA
    Posts
    128
    Thanks for the help
    1 post closer to a meeeeeellion......

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