Flash help :D

Discussion in 'OT Technology' started by Woodmaster, Dec 8, 2004.

  1. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    When I run the debugger in (flash mx 2004 pro) I get this error.

    **Error** Scene=Scene 1, layer=buttonbuy, frame=1:Line 3: Mouse events are permitted only for button instances
    on (release) {

    Total ActionScript Errors: 1 Reported Errors: 1

    I have a button and when it is clicked I want it to play 1 and then stop at the end instead of by default looping.

    Heres the code..

    Doesn't seem to work right... the button works but it starts automatically and doesnt stop. Thanks!

    stop();
    on (release) {
    GotoandPlay (1)
    }
     

Share This Page