A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: gotoAndStop() with expression. How?

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    22

    gotoAndStop() with expression. How?

    1)there are 10 frames in 10 layers.Each frame has different content, hence kept in different layers
    2)there is a input text box with a "go" push button next to it
    3)when a user enters 5 in the input text box and clicks on "go" button, movie control should go to frame 5 and stop

    How to achieve the above

    __________________________________________________ ________


    I have tried the following but it is not working


    on (release, releaseOutside) {
    gotoAndStop(count);
    }

    where count is the input text box name

    I have also tried the following, but it is not working

    on (release, releaseOutside) {
    gotoAndStop(_root.count);
    }

    I have also tried the following, but it is not working
    on (release, releaseOutside) {
    _root.gotoAndStop(count);
    }

    grateful if you can help

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You have to give the textbox a variable name, not a instance name.And you may need to specify that count is a number , like.....

    gotoAndStop(Number(count));

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    22

    gotoAndStop() with expression

    No, the following is not working, any other help

    on (release) {
    gotoAndStop(Number(count));
    }

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    22
    Thanks Pallepiano, I got it with a little modification as follows :

    on (release) {
    _root.gotoAndStop(Number(_root.count));
    }

    Thank a lot

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