A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Actionscripts for buttons

  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    73

    [F8] Actionscripts for buttons

    when button1 is clicked AFTER movieclip1 is played, movieclip2 is played. So I am trying to write this actionscript on the last frame of movieclip1.

    How do I do this? I tried:
    Code:
    On(button1.release) {
    (_rootmovieclip2.gotoAndPlay (15))
    }
    But I got a syntax error!!! What do I do??? Please help! Really am stuck.

  2. #2
    Senior Member
    Join Date
    Dec 2005
    Posts
    426
    you need to use

    _root.movieClip2.gotoAndPlay (15);

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    73
    But I only want movieclip2 to play if button1 is clicked after movieclip1 is played. That make sense? basically in this order:
    movieclip1 - plays
    button1 - clicked
    movieclip2 - plays

  4. #4
    Junior Member
    Join Date
    Jan 2006
    Posts
    25
    I think he's saying you have a typo there.

    Does the button have to be active the whole time? If not, I think there's a actionscript property that sets whether or not a button is active. Then you could just set it to True or False if your frame has played.

    Maybe some else can expand on that idea.

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