A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: movie clip tell targeting another movieclip.

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    22

    movie tell target stuff

    My question is this. While figuring out how to get a movieclip to tell another movieclip to play, I read in the flash 5 action script reference that I shouldn't use the telltarget action, that it's not ECMA-62 compliant, whatever that is.
    What would be the best most effecient way?
    (To make a movie clip tell another movie clip to play for example.)

    I've tried several examples provided by Flash but couldn't get them to work.

    So if anyone could set me up, that would be great, thanks!

    -gracerx

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    Hi...

    Basically, the Tell Target action has been replaced by the With function...so, to tell a movieclip on the main timeline to play you would use:

    with (_root.mc) {
    gotoAndPlay (2);
    }

    and to target a nested movieclip you would use:

    with (_root.mc1.mc2) {
    gotoAndPlay (2);
    }

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Posts
    25
    hi,

    the with function makes sense if you want to "tell" the clip lot of stuff..

    easier is:

    _root.mc.gotoAndPlay(2);


  4. #4
    Junior Member
    Join Date
    Apr 2000
    Posts
    22

    Smile Thanks!

    Thanks guys!
    Though now I have to go back and rewrite a little...lol!
    Dang!

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