dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: What is the syntax for affecting multiple targets

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    3
    I would like to affect many targets with the one button, what is the syntax for that?

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    83
    for (i=1; i<=n; i++) {
    tellTarget (eval("_root.clip"+ i)) {
    gotoAndPlay (2);
    }
    }


    Have this code in your button and your targets instance names are clip1,clip2,clip3.....clipn

    and n being the number of targets you want to target

    Hope I am clear

    Regards...

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