dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [Resolved] [Resolved] controlling a movie clip

  1. #1
    Senior Member willi-jay's Avatar
    Join Date
    Sep 2000
    Posts
    116
    can anyone tell me how to control a movie clip on the timeline with buttons on another layer? (ie.play and stop)

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
     
     on (release) {
       _root.yourMovieClip.gotoAndPlay("framelabel");
     }

  3. #3
    Senior Member willi-jay's Avatar
    Join Date
    Sep 2000
    Posts
    116
    Originally posted by estudioworks
    Code:
     
     on (release) {
       _root.yourMovieClip.gotoAndPlay("framelabel");
     }
    Thanks but do I have to specify a frame label?
    Is yourMovieClip just what you put there for me to replace with the name of my movie clip?

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282

    Thanks but do I have to specify a frame label?

    I always use Framelabels, just in case I want to move things around later.

    Is yourMovieClip just what you put there for me to replace with the name of my movie clip?

    Yes, insert the instance name of your MC

  5. #5
    Senior Member willi-jay's Avatar
    Join Date
    Sep 2000
    Posts
    116
    Originally posted by estudioworks

    Thanks but do I have to specify a frame label?

    I always use Framelabels, just in case I want to move things around later.

    Is yourMovieClip just what you put there for me to replace with the name of my movie clip?

    Yes, insert the instance name of your MC
    OK, one more question, will this work for a loaded movie too? Is there a way to give an instance to a loaded movie?

  6. #6
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Yes, a loaded movie takes on the instance name of it's holder ( Target MC )

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