A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: Button fix in mx.

  1. #1
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348

    Button fix in mx.

    I was wondering if in mx they have some way to make your buttons rollovers and rolloffs work smoothly in mx easily.

    I hate when you rollover a button then roll off really fast and make the button go to the rolloff frame before it has finished the rollover frame.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  2. #2
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    I haven't come across anything in MX to help with this.

    You can do it with code.
    You can use variables and if's (on the first/last frames of your mc's and your rollOver/rollOut) to check if the mc has finished.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  3. #3
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    never really thought about that.
    Can you post a simple button with the code so i can understand it better.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  4. #4
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    Sorry, I'm really busy today, snowed under here with things to do,
    I will try to do something in the next couple of days if I get chance.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  5. #5
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    thanx so much for your help allready.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  6. #6
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi Nionicle


    I've managed to do the button .. it was a little more complicated than I'd originally thought it would be, lol. Isn't it always!

    Anyway I've attached the .fla below.

    Hope you can adapt it so you can use it.


    (Just removed .fla Use the one below)
    Last edited by lucky-black-cat; 10-25-2002 at 02:27 PM.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  7. #7
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi,

    I noticed that if you quickly rollover/out, sometimes you were left in the over state when you were outside the button! (not pretty) lol


    Heres the perfect version (I hope). It's quite a logic puzzle. I hope you can work out whats happening.
    Attached Files Attached Files
    Last edited by lucky-black-cat; 10-26-2002 at 04:01 AM.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  8. #8
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    I've been tweeking the buttons, added a better animation to the example .fla.
    Attached Files Attached Files
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  9. #9
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    Sorry had been busy.
    Are you using mx?
    Cause it is giving me an unexpected file format error.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  10. #10
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    I want an mc to move on roll over then move back on roll out.
    I know this isnt right but here is the code i put on the mc
    onClipEvent (load) {
    speed = 5;
    oldy = 0;
    }
    onClipEvent (enterFrame) {
    _y += (130-oldy)/speed;
    }
    I was wondering if i could do the rollover by doing a hittest?
    I dont know anything i am baffeled. I thought i had it but then i didnt.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  11. #11
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi,

    Yes I'm using MX, what are you using????

    I think the file below will work in Flash 5

    I have put the swf on my site

    Check out this linkNionicle Buttons
    Attached Files Attached Files
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  12. #12
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    Hi,

    I'm not 100% sure i know what your trying to do here but take a look at this and tell me if it's close?

    Take care,
    Dunc
    Attached Files Attached Files

  13. #13
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi,

    If a button/mc has an animated up & over state and you rollover and rollout quickly the button doesn't complete the animation.

    Check out the link I gave in my last post. The third button/mc finishes its up/over animations even if you move the mouse over/out really fast.

    I hope this is what Nionicle was asking,

    I hate when you rollover a button then roll off really fast and make the button go to the rolloff frame before it has finished the rollover frame.
    If not its been fun/educational anyway. lol.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  14. #14
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    aye! ok, i think i understand lucky. hmmm, one has to wonder how user friendly or intuitive this method is? Lucky are you very familiar with the London area? Flying out in a couple weeks and we're looking for a reasonably priced b&b or hotel by Victoria Station. Sorry for piggy backing on your thread Nionicle .

    Dunc

  15. #15
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi Dunc

    It was a bit of a hack but it works. I think its what Nionicle was originally asking for??? I might use it at some point I quite like the buttons and I can easily change the animation (up/over mc's).

    I'm not familiar with the Victoria area, just the Bus Station and Rail stations. I would think there are plenty of hotels around there but I have no knowledge of prices/standards etc, sorry.

    Have a good trip.
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  16. #16
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    I agree lucky and thanks!

    Take Care,
    Dunc

  17. #17
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    Yes i saw the swf. It is just perfect. It still keeps telling me unexpected file format.
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

  18. #18
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    What version of Flash are you using?
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  19. #19
    Member
    Join Date
    Jan 2001
    Posts
    68
    i think i did something like this a few months ago...read this thread - maybe it's what you're looking for:

    http://www.flashkit.com/board/showth...hreadid=338238


    i think this link still works:

    http://home.earthlink.net/~fantan/FadeInOut.zip

    let me know if this helps

  20. #20
    Mental Deficit Nionicle's Avatar
    Join Date
    Mar 2002
    Location
    Utah, Hyrum
    Posts
    1,348
    im using flash 5.

    student version.



    yeah-yeah ill check it out.

    thanx for your helps everyone.

    My aim is silveroomyst
    I can only postulate the probability of performing at a paramount level of perfection praised by the pulchritudinous paragon whose only practice is to preserve such a paradigm.

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