A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: [F8] Animated buttons reset problem

  1. #1
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    [F8] Animated buttons reset problem

    Hi,
    Im trying to make a website and am having big problems getting the buttons to work how I'd like. Im guessing I need to write some actionscript.

    The animated buttons change from red to yellow on the UP state then from yellow to red on OVER and finally white on click.

    Ive managed to mask the buttons on website entry so that you dont see the initial red to yellow state you just see four yellow buttons fade in. The thing is that when you click on a button and go to another page all the buttons reset themselves and so you see the red to yellow state for the remaining buttons that havent been clicked.

    How do I get it so that when you click a button the others dont reset themselves. Check out the site so far to see what Im talking about. StefanCostain.com
    Flash 8 by the way.
    Thanks loads to anyone that can help!!!

  2. #2
    not'n' wrong with hat'n' sushi iHATEsushi's Avatar
    Join Date
    May 2006
    Location
    Ontario
    Posts
    132

  3. #3

  4. #4
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    The problem...

    Thanks lots, I took a quick look but these links dont seem to resolve the problem. I just need the buttons not to refresh every time you open another page. They do this because the UP state is a movie clip as is the OVER state. Basically I need the end of the movie clip of the UP state to remain for buttons when I go to another page in my site but then work if the mouse is rolled over that button then rolled off (the UP state).

  5. #5
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    The button fla file...

    Quote Originally Posted by austriaman
    You'd have to work with variables. Post your .fla (you'll only need to post the part with the buttons) and I'll fix it for you.
    aut.
    Thanks loads, very kind! I've tried to send you one of the buttons .fla file. I hope it comes through correctly. See if you can work your majic on it.
    Thanks again!
    Last edited by stefancostain; 11-29-2007 at 10:12 AM.

  6. #6

  7. #7
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    Brill...

    Quote Originally Posted by austriaman
    Attached file should do the job.
    Thanks so much thats very kind! Works perfectly, nice 1!

  8. #8
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    stuck again...

    Quote Originally Posted by austriaman
    Attached file should do the job.
    Actually it doesn't work as well/easy as I first thought. I'm having trouble getting the buttons to goto a frame or scene when clicked. I tried a couple of things but can't get them working proparly. I think Ive got to add something like

    If "PortBtn" active = true;
    then gotoframe
    else
    "resume" active = false;

    to each button
    Any suggestions?

  9. #9

  10. #10
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    Wikkid!!

    Quote Originally Posted by austriaman
    Added a movie-clip (instance name: "contents"). This is where your contents go.

    Good luck,
    aut.
    Ah wow thanks! Ur really good at this arnt u, where did u learn all ur stuff?
    Thanks once again sooo much. Saved me loads of time and effort. I was getting nowhere trying to do this myself. Very greatfull!
    Stefan

  11. #11

  12. #12
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    StefanCostain.com button prob...

    Hi,
    I've been working on my site http://stefancostain.com/ but have ran into a problem relating to those buttons you helpped me with.

    Do you see the guestbook. This is on the main timeline because if I put in the "contents" movie clip then it doesn't work correctly.

    I'm trying to get the "Contact me" button, which takes you to the "content" movie clip and frame label "Contact me" section, to take me to frame 290 of "Scene 1"
    I've typed ("Scene 1", 290) and put this in different parts of the file trying to replace code ect but I can't get it to work.

    Any ideas?
    Stefan

  13. #13
    Senior Mamba austriaman's Avatar
    Join Date
    Aug 2004
    Location
    Somewhere over the rainbow
    Posts
    472
    Hey Stefan,
    Your description is a bit vague. In general, it's not a good idea to mess around with the root-timeline when working with the code I initially provided. Upload the problematic array of your Flash-file and I'll see what I can do.
    aut.

  14. #14
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    Flash file...

    K, here's the prob.
    Last edited by stefancostain; 11-29-2007 at 10:12 AM.

  15. #15

  16. #16
    Senior Member
    Join Date
    Oct 2006
    Posts
    114

    Thanks again...

    Quote Originally Posted by austriaman
    Is this what you're aiming at?

    One other thing: create a "skip"-button for your intro. My head is already swimming...

    Excellent!! Didn't realise you sent a responce till just now.

    Thanks sooo much again. I can't express enough how grateful I am for your help.

    Made me very happy!!
    Stefan

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