A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [b][MX] HELP! Game Interface Trouble![/b]

  1. #1
    Flash Intermediate XenElement's Avatar
    Join Date
    Sep 2008
    Location
    At my computer
    Posts
    196

    Exclamation [b][MX] HELP! Game Interface Trouble![/b]

    Hello. My problem is actually quite sad really...
    I've created a movie clip. This clip acts sorta like a button, as I made it open and close with this code:

    _root.playbutton.onRollOver = function() {
    this.gotoAndPlay(1);
    };


    And To close:

    _root.playbutton.onRollOut = function() {
    this.gotoAndPlay(7);
    };


    It expands and closes, but now I need it to go to the second frame of the movie when I click on it.

    I've tried this:

    on (release) {
    gotoAndPlay(2);
    }

    But every time I do that it plays the button/movieclip thing
    Is there a global variable for the whole movie?

    Lastly, I already started the game, so what's the best way to make a loader for it?

    Thanks,

    Xen Element

  2. #2
    President PhobiK's Avatar
    Join Date
    Jan 2005
    Location
    Guatemala
    Posts
    918
    Where did you place the on(release) code? If it's a button there should not be a problem. Try _root.gotoAndPlay(2). As for the preloader you can download this one. Just change it visually.
    Last edited by PhobiK; 12-21-2008 at 09:55 PM.
    This is MC. His _parents sent him to stop() by the super market to buy some _root beer if he wanted to gotoAndPlay() with his friends at the park later.

    This is my Blog!... The gaming Process
    Please check out my site: Giddel Creations

  3. #3
    Flash Intermediate XenElement's Avatar
    Join Date
    Sep 2008
    Location
    At my computer
    Posts
    196
    Ungh. I cant read that one, Might be newer version? I have an oldie flash 6, as I was too cheap to buy the new one. BTW I did try the _root.gotoAndPlay(2) thing on the button but it still goes to frame 2 of the button. >.<
    In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.

    ---

    Check out my blog at XenElement.com

  4. #4
    President PhobiK's Avatar
    Join Date
    Jan 2005
    Location
    Guatemala
    Posts
    918
    lol, that preloader was originally in flash mx and I just made it to an f8 file. Here's a new one. It's strange that _root doen't work there, can you post your file, or an example just to see if there's something to do?
    Last edited by PhobiK; 12-21-2008 at 09:55 PM.
    This is MC. His _parents sent him to stop() by the super market to buy some _root beer if he wanted to gotoAndPlay() with his friends at the park later.

    This is my Blog!... The gaming Process
    Please check out my site: Giddel Creations

  5. #5
    Flash Intermediate XenElement's Avatar
    Join Date
    Sep 2008
    Location
    At my computer
    Posts
    196
    Thanks, I've Managed to get the loader to work, I'll be implementing it soon.
    Heres the sandbox of the interface version, I'm kinda new at flash so it's rudimentary. See what you can do. The problem is with the play button.
    Attached Files Attached Files
    In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.

    ---

    Check out my blog at XenElement.com

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