A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: menu help

  1. #1
    Grandfather to the stars bigginge's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    735

    menu help

    I've attached a dummy file of a menu I'm working on. How can I make the buttons stay in their 'over' state when they're clicked and the movie loads, until the user clicks on another button, which then stays there, etc? I know it can be done with buttons, but movies as buttons? Thanks for any help.
    To dance beneath the diamond sky with one hand waving free
    Love Light Romania Romania Blog

  2. #2
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745

    fill all four button frames

    opened the zip;
    right now, the instances of 'button' onstage do not have an 'over' state...
    1 - open the symbol in the library, or open one of the instances onstage
    2 - add something to the 'over' 'down' and 'hit' frames

    using movie clips with button behaviors opens up many possibilities, like the effect on page 2 of this demo

    good chance of finding plenty of movieClipsAsButtons in these here Navigation tutorials at FK

    hth
    __azwaldo__

  3. #3
    Grandfather to the stars bigginge's Avatar
    Join Date
    Oct 2003
    Location
    UK
    Posts
    735
    Sorry, perhaps I explained badly. The buttons are just invisible buttons. I want the colour that changes on mouseover to stay there when clicked, until another button (movie) is clicked. But thanks for replying.
    To dance beneath the diamond sky with one hand waving free
    Love Light Romania Romania Blog

  4. #4
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745
    in your movie:
    once button '1' has been rollOver'd, it waits at the end of the color tween until a rollOut event; if you only want to revert to the 'up' state when button '2' or '3' are clicked, would you then need to override the rollOut action you have attached to the hidden buttons?

    better yet: achieve the button actions in the AS of the color-changing clips (mc1, etc.); using movie clips acting as buttons has many advantages

    ...either way, trying something like this for button 1:
    Code:
    _root.mc1.onRelease = function() {
    	mc2.gotoAndStop(1);  // "resetting other clips" 
    	mc3.gotoAndStop(1);
    }
    and similar for buttons 2 and 3
    __azwaldo__

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