A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to trigger a botton to cal up a movie clip?

  1. #1

    How to trigger a botton to cal up a movie clip?

    hello all

    I am a newbie .. just wanting to know .. how to trigger a Movie clip by a botton Click .. i dont have a Book so maybe you guyz know any tutorial or something to help me on the way. Ty


    Ysman
    S.G De Jong

  2. #2
    www.designerunderground.co.uk
    Join Date
    Jun 2004
    Location
    UK
    Posts
    351
    >Give the MC an instance name in the property inpector (you might want to put a stop command on the first frame inside/of the MC if you want it to play when button clicked)
    >Then add an action to the button that targets that MC to play like:

    on (release) {
    instancename.play();
    }
    You are not your job. You are not how much money you have in the bank. You are not the car you drive. You are not the contents of your wallet. You're not your ****ing khakis.

  3. #3
    whats a MC?
    S.G De Jong

  4. #4
    www.designerunderground.co.uk
    Join Date
    Jun 2004
    Location
    UK
    Posts
    351
    sorry Movie Clip. select the Movie Clip on the stage then type in an instance name in the left of the propoerty inpector.
    If you add a stop(); action on the first frame of the timeline inside the MC it won't play automatically. The code on the button then targets the MC with the instance name you gave it and tells it to play
    +
    You are not your job. You are not how much money you have in the bank. You are not the car you drive. You are not the contents of your wallet. You're not your ****ing khakis.

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