A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: gotoAndPlay

  1. #1
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811

    gotoAndPlay

    I have assigned a button inside of a movie clip on the stage this action:

    on (release) {
    gotoAndPlay("level1", 1);
    }

    level1 is the scene name and i want to play frame 1. Am i missinbg something? Please post if further detail is need.
    -thanks

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    There might be a conflict with that Scene name. I know in other flash items, like instance names and linkages, your not supposed to use any flash keywords in the name. Level1 could be considered a keyword. maybe the player is getting confused. Still, try adding a frame label to that frame 1, and target the label instead. Like:

    on (release) {
    gotoAndPlay("level1", "beginHere");
    }

    Make the label name first, before you type the code to use it.

  3. #3
    Young Senior Member mayhem_sci's Avatar
    Join Date
    Jun 2002
    Location
    Singapore
    Posts
    282
    i tried it out and it works fine. i named scene2 level1 and it works fine without naming the frame.

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