A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Control Movie Clip With Button in MX

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    222
    Er, simple question I know...

    I want a movie clip in a scene to go to a specific frame of its timeline when I press a button also in the scene. With old Flash I'd do this with a tellTarget, how do I do it in MX? A listing of the steps would be much appreciated.

  2. #2
    Senior Member
    Join Date
    Jul 2002
    Posts
    461
    tellTarget does work in MX but you are probably looking for
    the dot syntax used in Flash 5/MX.

    so if your movieclip is on root and has an instance name of
    "mc" then to refer to it you use:
    _root.mc

    if _root.mc has a frame labelled "TargetFrame" on its timeline then on a button in the flash movie you can put this code to send _root.mc to its "TargetFrame":

    on(release){
    _root.mc.gotoAndStop("TargetFrame");
    // or _root.mc.gotoAndPlay("TargetFrame");
    }

    hope that helps

  3. #3
    Senior Member
    Join Date
    Dec 2000
    Posts
    222
    Thanks a lot

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