A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Very simple for beginner.

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    1
    Hi all!!

    I need some help. I used normally the tell target action, but now I like to use the object.

    movieclip.play(); <-- I want this.

    the problem is that I made a mask effect tha duplicates 50 movieclips. My problem is that when I want to tell them the play(); action to each of them I don't know how to do it. With tell target I use:

    tellTarget("fmask"+i) {
    play();
    }

    How do I do that object oriented.

    fmask[i].play(); ??

    Thank you a lot!!!


  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    If you have clips named

    fmask0, fmask1, fmask2,..., fmask49

    you could get them all to play using

    for (i = 0; i < 50; ++i) {
    this["fmask" + i].play();
    }

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