dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: gotoandplay not working

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    vancouver, bc
    Posts
    14

    gotoandplay not working

    ok, i'm having trouble making a mousevent work. Take a look, the button WHO is supposed to go to the scene WHO, but it doesn't work. For the life of me, I can't figure it out.

    the file is located here... help would be much appreciated.

    http://deserdragon.net/almostp2p/moduleFLA.fla

    im not sure if that URL is resolved yet, i just signed it up for a client, but try

    http://restandeffect.com/almostp2p/moduleFLA.fla
    Last edited by reza naghibi; 12-16-2004 at 03:28 PM.
    cheers,
    reza ryan naghibi

    sign up for your free
    search engine optimization
    analysis today!
    elitebeat enterprises

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    It's going to the who scene, but it is stopping on the first frame of the who scene (because, hidden inside the globals layers, you have a stop(); command). So it looks like nothing is happening....

    Remove the hidden stop(); command, and fix it to stop on the last frame of that scene.

    I would also recommend using unique frame labels, rather than scene names with your gotoAndPlay() commands. Scene names and actionscript don't mix well.

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Your button does in fact work, and hitting the "who" button moves the playhead to frame 1 of the the "who" scene. Problem is the who scene is exactly the same as your preceding scene, so you don't really notice it.

    In any case, you shouldn't be using gotoAndPlay, but gotoAndStop!
    And you shouldn't even be targeting scene names, but labeled frames instead.
    Check my post in this thread...

    http://www.flashkit.com/board/showth...hreadid=584159 // labels

  4. #4
    Junior Member
    Join Date
    May 2004
    Location
    vancouver, bc
    Posts
    14
    oh im an idiot.. thanks a lot guys. cheers
    cheers,
    reza ryan naghibi

    sign up for your free
    search engine optimization
    analysis today!
    elitebeat enterprises

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