Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Simple problem but still need help

    I am really new to actionscript, so be kind.

    I want to know how to gotoAndPlay once you click on a button. no matter what i try i must be doing it wrong because it just starts playing it automaticly once i test it. And i want to know how to do this without using the action directly on the button. thanks in advance.

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Uk, North
    Posts
    47
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Hi... I've had difficulty understanding what you're asking. Difficult to describe problems isn't it... it's possibly the hardest bit.

    Generally, all swf's default to play automatically so you have to tell it to not do that. In your first frame you need a bit of ActionScript:

    stop();

    This stops the movie from playing automatically. There are other ways of stopping a movie from playing straight away, but this is a really simple direct way.

    Hope this helps, best of luck.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •