A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: 'for' statement

  1. #1
    Member
    Join Date
    Aug 2000
    Posts
    87

    'for' statement

    this works:

    _parent._parent.slide1.magnify.gotoAndStop(1);
    _parent._parent.slide2.magnify.gotoAndStop(1);
    _parent._parent.slide3.magnify.gotoAndStop(1);

    but this doesn't:

    for (i=0;i<20;i++){
    _parent._parent.slide[i].magnify.gotoAndStop(1);
    }


    what am i doing wrong??
    <<...23...>>

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    Code:
    for (i = 0; i < 20; i++) {
    	_parent._parent["slide" + i].magnify.gotoAndStop(1);
    }

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    87
    eeesh
    good enough.

    thanx!
    <<...23...>>

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