dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] script problem...for a button

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    3

    [F8] script problem...for a button



    I have a big problem with this script:

    on (rollOver) {
    this.gotoAndPlay("s5");
    }
    on (releaseOutside, rollOut) {
    this.gotoAndPlay(_totalframes-_currentframe);
    }

    on (release) {
    gotoAndPlay("Scene 2", 1);
    }


    because I can't understand what happen with the button... I need to go the scene 1 to scene 2. I think is simple but the button is wrong for something.


    Thanks for your help.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    use frame labels and
    (as you don't specify any movie heirachy in your post) add a path - _root

    give the target frame a label, say - sc2fr1

    on (release) {
    _root.gotoAndPlay("sc2fr1");
    }

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