Button rollout?

This is a discussion on "Button rollout?" within the Flash & Multimedia Forum section. This forum, and the thread "Button rollout? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 28th, 2005, 17:45
New Member
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Button rollout?

I have made a button. In the overstate of the button I have put in a Movie that fades up and changed the color of the link. I want to, when you rolloff the button, have a Movieclip play fading the color down and back to the original button state. I'm not sure exactly how to do this. If anyone could help me out I'd appreciate it.

Thanks in advance,
josh111

  #2 (permalink)  
Old Feb 28th, 2005, 18:51
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Simply place a movie in the first frame of the button, with the rollout state. The only catch is that this rollout movie also plays when the button first appears.
  #3 (permalink)  
Old Feb 28th, 2005, 19:12
New Member
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thank. One other question, what is the actionscript I would put in the first frame? onRollout for the MC or what?

Thanks,
  #4 (permalink)  
Old Mar 1st, 2005, 00:45
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You don't need any actionscript... you simply place the movie inside the button on the appropriate frame...
  #5 (permalink)  
Old Mar 16th, 2005, 19:44
New Member
Join Date: Mar 2005
Location: USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Dont place your roll in/out movies into the button itself as separate. Your button should have just one move (key frame). Your movie should stop and do nothing (and show nothing) on the fist frame. From fram 2 to 10 (or however long your fadein is) it should do the effect and stop on the last frame. Via ActionScript, on rollover tell your movie to play the fade in via gotoAndPlay(2) and on rollout tell it to play backwards using the following function:

MovieClip.prototype.goback = function(){
this.onEnterFrame = function(){
this.prevFrame();
if (this._currentframe == 1)
{
delete this.onEnterFrame;
}
}
}

You will have to tweak it to your frames, but you get the idea.
  #6 (permalink)  
Old Mar 16th, 2005, 21:17
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by pixelsystem
Dont place your roll in/out movies into the button itself as separate. Your button should have just one move (key frame). Your movie should stop and do nothing (and show nothing) on the fist frame. From fram 2 to 10 (or however long your fadein is) it should do the effect and stop on the last frame. Via ActionScript, on rollover tell your movie to play the fade in via gotoAndPlay(2) and on rollout tell it to play backwards using the following function:

MovieClip.prototype.goback = function(){
this.onEnterFrame = function(){
this.prevFrame();
if (this._currentframe == 1)
{
delete this.onEnterFrame;
}
}
}

You will have to tweak it to your frames, but you get the idea.
That's good, but many people don't have a solid understanding frame based animation and using buttons, let alone an understanding of Actionscript!
  #7 (permalink)  
Old Mar 17th, 2005, 18:21
New Member
Join Date: Mar 2005
Location: USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Well maybe what would be interesting is a section where we can upload or in any way host FLA examples?
  #8 (permalink)  
Old Mar 17th, 2005, 19:03
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Quote:
Originally Posted by pixelsystem
Well maybe what would be interesting is a section where we can upload or in any way host FLA examples?
This functionality (file attachements to posts) will be coming in the next 3 or 4 months. I think it will be a worthwhile addition of functionality.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
button, rollout

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change button action into a movieclip button action cjrollo Flash & Multimedia Forum 7 Nov 21st, 2007 17:07
Sliding Bar on Rollover/Rollout Rick Flash & Multimedia Forum 9 Aug 27th, 2007 23:58
Complex Button RollOver/RollOut Effects Problems. Toby1979 Flash & Multimedia Forum 6 Jul 13th, 2007 16:12
rollout help tigas langaw Flash & Multimedia Forum 6 Jul 10th, 2007 16:14
When a button refuses to behave like a button in Flash autumn_whispers2me Flash & Multimedia Forum 2 May 24th, 2005 22:08


All times are GMT. The time now is 22:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43