Welcome to TalkGraphics.com
Results 1 to 5 of 5

Thread: gotoAndPlay

  1. #1
    Join Date
    Oct 2004
    Posts
    3

    Default

    I'm using Flash MX 2004 on a PC. Haven't used Flash since v5 so everything is different. I'm trying to get a submit button when clicked goes to a frame within a movieclip and I don't know the updated ActionScript programming to make it do that. (The submit button in not active, all it is doing is going to a frame that says "username and password did not match.") Any help on this would be much appreciated. THANKS!!
    IP

  2. #2
    Join Date
    Oct 2004
    Posts
    3

    Default

    I'm using Flash MX 2004 on a PC. Haven't used Flash since v5 so everything is different. I'm trying to get a submit button when clicked goes to a frame within a movieclip and I don't know the updated ActionScript programming to make it do that. (The submit button in not active, all it is doing is going to a frame that says "username and password did not match.") Any help on this would be much appreciated. THANKS!!
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default

    Hello Matt

    Try this:

    on (release) {
    gotoAndPlay("frameName");
    }

    Where frameName is the name of the frame to go to. (or just use a number [without the quote marks] if it's a frame number.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

  4. #4
    Join Date
    Oct 2004
    Posts
    3

    Default

    THanks for your reply. I receive an error message when trying to play the swf and nothing happens when I click submit.

    **Error** Symbol=drinks_menu, layer=submit, frame=86:Line 1: Mouse events are permitted only for button instances
    on(release){
    IP

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default

    Matt
    The reason your getting this error message is due to the fact that you've pasted the action on the time line, not on a button. Check your time line action. The tiny 'a's. Other than that it could be your button is not a button but a graphic symbol. In fact looking at the error again this would seem to be the case. You have a symbol named 'drinks_menu', on the 'submit' layer, at frame 86, with the action attached , but it's NOT a button.

    Let me know how you get on.

    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

 

 

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
  •