PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Tageting diffrent instances in a loop
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Tageting diffrent instances in a loop

  1. #1
    Senior Member
    Join Date
    Apr 2009

    Tageting diffrent instances in a loop


    Id like to be able to change the frame on the movie clip slot1, slot2, slot3 and so forth. I want it to change one slot during the loop. (z variable)

    how would i write this?

    where the first run would need to target
    slot1 slot[z+1]
    and the second run would target
    slot2 slot[z+1]
    and so on.

  2. #2
    Senior Member fil_razorback's Avatar
    Join Date
    Jul 2005
    Paris, France
    Actionscript Code:
    menu_ingame01["slot" + (z + 1)].gotoAndStop(3);

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