A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: _global button problem

  1. #1
    Member
    Join Date
    Nov 2002
    Posts
    53

    _global button problem

    the movie has 3 buttons, they all play the same ending movie (on a seperate scene), but then need to dynamically go to a scene at the end of the ending movie depending on which menu button has been clicked.

    I have tried to use global variables to change, without luck, i need them to be on the buttons not the timeline is this possible?

    the .fla (mx) attached and may help explain better
    Attached Files Attached Files

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Here...
    Attached Files Attached Files

  3. #3
    Member
    Join Date
    Nov 2002
    Posts
    53
    thanks,.. i see i was missing a this.!

  4. #4
    Member
    Join Date
    Nov 2002
    Posts
    53
    if the buttons were inside an MC, what would the target be then??
    i try changing without success, (.fla attached)
    code:
    on (release) {
    this.gotoAndPlay("scene1out");
    _global.scene = "scene2";
    }



    to
    code:
    on (release) {
    _root.gotoAndPlay("scene1out");
    _global.scene = "scene2";
    }




    thanks in advance.
    Attached Files Attached Files

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Don't cross-post!
    Attached Files Attached Files

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