Results 1 to 5 of 5

Thread: Problems using gotoAndPlay

  1. #1
    Join Date
    Apr 2006
    Posts
    205
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Red face Problems using gotoAndPlay

    Hi, I'm new to Flash and have I problems that seems so simple I'm embarressed to have to ask it

    I have a movie that was working fine set on loop. Now I've put a preloader in so when the movie loops the preloader flashes up. I've turned off the automatic looping feature and put a keyframe in at the end of my move with the actionscript:
    Code:
    gotoAndPlay ("play");
    "play" is a label on the frame that follows the preloader.

    BUT nothing happens. The player just gets to the end of the movie and does nothing. what gives?

    Thanks,
    dog

  2. #2
    Join Date
    Feb 2007
    Posts
    145
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Post

    Never be to embarrassed to ask

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Where is that particular snippet of AS located?

    Try doing this:

    _root.gotoAndPlay("play");

    If that works, your AS is on the wrong frame.

  4. #4
    Join Date
    Apr 2006
    Posts
    205
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Red face

    Hello,

    My bad. Turns out that the AS was working. I just wasn't previewing it.



    You have to actually "Test Movie" for AS to take affect? Didn't realise.

    Sorry.

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Yes, you do.

    When you "test movie", it compiles the .swf from scratch. This way, all of your changes are compiled.

    Otherwise, the .swf saved to your HDD isn't changing and you're viewing the same file over and over.

Bookmarks

Posting Permissions

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