A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [F8] Need help with adding tabs and button

  1. #1
    Member
    Join Date
    May 2008
    Posts
    43

    [F8] Need help with adding tabs and button

    Hello, not sure if this is the right place to post this. I am trying to see if I can turn this into something that I can use. The original is on FK movies under tabsystem, it required some cleaning up as it looks like it was used for other projects. What I am trying to do is add 2 more tabs on the bottom with sliders leaving 6 in total, no matter what I do I can't get it to work like the original 4. I am also wanting to put buttons on each individual slider, no matter what I do the buttons on the bottom sliders are activated on the upper ones. If anyone could steer me in the right direction that would be very appreciated.
    My cleaned zipped version can be found here:
    http://www3.telus.net/public/skrenz/tabs.zip

    Thanks!
    S

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Hi, looked at your file and now I'm quite confident it does what you were hoping for. Some of the code was redundant, so I updated it to some degree. Anyways have a look.
    Last edited by Robb@exo; 07-31-2009 at 08:15 AM.
    Wile E. Coyote - "Clear as mud?"

  3. #3
    Member
    Join Date
    May 2008
    Posts
    43

    Thanks Robb!

    I spent about 4 hours on it yesterday with the code that was already in it and managed to add 2 additional tabs that work awesome. You totally redid the code big time, looks much cleaner ;-)
    I attached the new version, take a look at the code that I added compared to the first one, pretty much added 4 move object commands to each one and then created 2 additional for the 2 new tabs.

    Now, my new problem is with buttons showing through each slider, or better yet just the mouse hand. Say there is a small button on slide one that works great, then slide 2 goes over it with additional buttons in different locations, the button on slide one will activate the mouse hand through slide 2,3,4 etc. Am I to create buttons with individual names and assign enable/disable commands when the upper slides are activated?
    Sorry for all of the questions, action script makes my head hurt lol!

    I attached my reworked one for you.

    Thanks again for your time, you rock!
    S
    Attached Files Attached Files

  4. #4
    Member
    Join Date
    May 2008
    Posts
    43

    New sample with one button to show problem

    I figured that I would upload an example of what I am up against. The button is on slide one, but shows through all slides. I need to be able to disable buttons on lower slides when upper slides are activated.

    Do I use a code like this:
    trace("slide#mc reset");
    btn2.enabled = (_root.****** == _root.page);

    Robb, I notice that all of your slides show the mouse hand, this won't work when there are buttons on it would it? In my example there is no mouse hand on the slides, except where there is a button which is ideal.

    Thanks for the help so far, very appreciated!
    S
    Attached Files Attached Files

  5. #5
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    In order to successfully disable buttons on hidden slides, you'll have to incorporate either "btnInstanceName._visible = false" or "btnInstanceName.enabled = false. Do a search for either or both, I'm sure you'll be able to find something to help you out. Another thing, you'll probably need to incorporate a variable boolean value to help determine which buttons are active for the corresponding active slide.

    HTH.
    Wile E. Coyote - "Clear as mud?"

  6. #6
    Member
    Join Date
    May 2008
    Posts
    43

    Thanks Rob

    Quote Originally Posted by Robb@exo
    In order to successfully disable buttons on hidden slides, you'll have to incorporate either "btnInstanceName._visible = false" or "btnInstanceName.enabled = false. Do a search for either or both, I'm sure you'll be able to find something to help you out. Another thing, you'll probably need to incorporate a variable boolean value to help determine which buttons are active for the corresponding active slide.

    HTH.

    I was trying that this morning, or something like it with no luck. Not sure where to put the code, I assume that the code would have to go with the corresponding slide on a new actions layer. In my latest message the attached file from this morning there is a button that I put on slide one, then it is still activated on top side slides which is no good.
    Ya lost me with the boolean value LOL. I am sure it is something simple but I am lost when looking at the numerous options in the actions window, as well as where to put it.
    Thanks for the quick reply, you are one of the good guys!
    S

  7. #7
    Member
    Join Date
    May 2008
    Posts
    43

    Got it to work

    Thanks for all the help!
    S

  8. #8
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Good for you. Way to plug away at it.
    Wile E. Coyote - "Clear as mud?"

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