A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: -->> Simple goTo help Please <<--

  1. #1
    HVAC guru
    Join Date
    Oct 2000
    Location
    Chico, California
    Posts
    152
    I need to make a MC with an input text box (var=gotoframe) allow the user to go to any desired frame of the main time line, after entering the frame number of choice in the input box, and then clicking a "go" btn. Here is the script of the button:

    on (release) {
    tellTarget ("/") {
    gotoAndStop (gotoframe);
    }
    }

    Is there a bug? Additional info:
    This is a multipul scene movie. This control only needs to control the current scene. Help would be very welcomed!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    on (release) {
    _root.gotoAndStop(_root.gotoframe);}
    this will do it (attention: if you are in scene 2 and scene 1 has , for example, 100 frames, then frame 7 of scene 2 is actually frame 107 for Flash So you need to add 100 to the variable, like this: on (release) {_root.gotoAndStop(Number(_root.gotoframe)+100);}

    gparis

    [Edited by gparis on 08-30-2001 at 11:53 PM]

  3. #3
    HVAC guru
    Join Date
    Oct 2000
    Location
    Chico, California
    Posts
    152
    Originally posted by gparis
    on (release) {
    _root.gotoAndStop(_root.gotoframe);}
    this will do it (attention: if you are in scene 2 and scene 1 has , for example, 100 frames, then frame 7 of scene 2 is actually frame 107 for Flash So you need to add 100 to the variable, like this: on (release) {_root.gotoAndStop(Number(_root.gotoframe)+100);}

    gparis

    [Edited by gparis on 08-30-2001 at 11:53 PM]
    Thanks for the reply. I am still not having any luck. I have a frame counter visible and stop and play buttons. Everything else works. I just can't get the "go" button to cause any reaction. Do you have anymore thoughts?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    yes, you can always send me your FLA at gparis@securenet.net and i'll see where the bug is
    g.

  5. #5
    HVAC guru
    Join Date
    Oct 2000
    Location
    Chico, California
    Posts
    152
    Originally posted by gparis
    yes, you can always send me your FLA at gparis@securenet.net and i'll see where the bug is
    g.
    It is on its way! Thanks.

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    And it's on its way back
    g.

  7. #7
    HVAC guru
    Join Date
    Oct 2000
    Location
    Chico, California
    Posts
    152

    Smile

    GParis is the man!
    Thank you

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    close! SHE's the woman :0)
    gparis

  9. #9
    HVAC guru
    Join Date
    Oct 2000
    Location
    Chico, California
    Posts
    152

    Smile

    Originally posted by gparis
    close! SHE's the woman :0)
    gparis
    I love it! You have just deflated my chauvinistic male ego LOL... I appoligize for the not recognizing the courtesy and general supremacy of a lady. Thanks again.

    PS. need work?

  10. #10
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Sure! well.. you have my email
    gparis

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