Actionscript: GotoAndPlay

Discussion in 'HTML & Website Design' started by martinvidic, Jan 3, 2008.

  1. #1
    Hi there...
    I have another problem with 2 flash buttons
    and hope u can help me again.

    Both buttons are inside the instance (controller1)
    One button activates the next movie clip (nextclip) and the other one is a start and stop button.
    The instance of the start and stop button is called (stoporplay)

    => A movie clip with 2 frames
    frame 1 = stop button sybol and frame 2 = plaz button symbol )

    well... so far everything works.

    The problem is that when i go to the next clip, I want the (stoporplay) instance to jump back to frame one, so that the stop buttons shows up when i releas the instance (nextclip).

    This is what I tried... but i doesnt work:

    _level0.controller1.stoporplay.gotoAndPlay(1)

    and i also tried the same thing with _root and gotoAndStop



    Here is a sample ( the stop button in the middle )
    http://www.flashmavi.com/flash/flash_mavi_bodybuilding_abs_crunch.swf
    Help would be great.
    Thanx
    Martin
     
    martinvidic, Jan 3, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Uh, I don't think clips see each other, so frame one of clip one doesn't mean anything to clip 2 etc. But I forgot what little Actionscript I learned real fast : )

    I think you'd either have to say not just frame 1 but clip 1 (there's a way to do it I just forgot) OR merge the clips into one clip so frame one is the same frame.
     
    Stomme poes, Jan 3, 2008 IP