Sliding Bar on Rollover/Rollout

This is a discussion on "Sliding Bar on Rollover/Rollout" within the Flash & Multimedia Forum section. This forum, and the thread "Sliding Bar on Rollover/Rollout are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 25th, 2007, 17:45
Junior Member
Join Date: Aug 2007
Location: N.C.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Sliding Bar on Rollover/Rollout

Hey,
Here is a fla file I am working on. I am, trying to get a bar to slide across the text when there is a rollover. Then for it to go the opposite direction on rollout.
I saw something similar on flashkit.
Slide.fla is mine
simplebutton.fla is similar
Isolate one of the buttons on simplebutton.fla...I made my timeline similar, but it doesnt seem to anmimate.
thanks.
P.S. I do not want the graphic to stay in the extended state when pressed, like simplebutton does. I just want a rollover/rollout effect.
Attached Files
File Type: fla simpleButton.fla (25.0 KB, 14 views)
File Type: fla slide.fla (25.5 KB, 13 views)

Last edited by Rick; Aug 25th, 2007 at 19:21.
Reply With Quote

  #2 (permalink)  
Old Aug 25th, 2007, 20:35
Junior Member
Join Date: Aug 2007
Location: N.C.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sliding Bar on Rollover/Rollout

Please let me know what I am doing wrong with this attempt.

In the meantime, in my search for a method that I can work with I did find this tutorial. Maybe it will help someone else...
http://www.kirupa.com/developer/mx20...ton_effect.htm
Reply With Quote
  #3 (permalink)  
Old Aug 27th, 2007, 18:53
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Sliding Bar on Rollover/Rollout

The reason yours is not working is because you are missing the code that tells the movieclip what to do on(release) on (rollover) etc.

If you unlock the layers inside of one of the buttons and then select the button object you'll notice this code:

Code: Select all
//tells this MC to play frame 2 on roll over
on (rollOver) {gotoAndPlay(2);
}
//tell this MC to play frame 8 on roll out
on (rollOut) {gotoAndPlay(8);
}
//tell this MC to stop at frame 16 on release which 
// disables the button because the button is not on frame 16.
// Checks to see if the other buttons have stopped at frame 16,
// if so, then play the roll out effect from frame 8,
// if not, don't do anything at all.
on (release) {gotoAndStop(16);
if (_root.butt2MC._currentFrame == "16") {
 _root.butt2MC.gotoAndPlay(8);
}
if (_root.butt3MC._currentFrame == "16") {
 _root.butt3MC.gotoAndPlay(8);
}
//changes the contents of "statusBox"
  _root.statusBox.text = "BUTTON 1 PRESSED"
}
That right there, is the meat and potatoes of how it works.

Edit: Make sure your buttons all have instance names that match the code as well. Otherwise the above code won't unless your button names are butt3MC, butt2MC and butt1MC accordingly.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; Aug 27th, 2007 at 18:57.
Reply With Quote
  #4 (permalink)  
Old Aug 27th, 2007, 20:25
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Sliding Bar on Rollover/Rollout

Quote:
Originally Posted by Sgaspar11 View Post
That right there, is the meat and potatoes of how it works.
Lol! great expression
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 27th, 2007, 22:28
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Sliding Bar on Rollover/Rollout

Thanks, :-) I mean, without the meat and taters, what are you left with? Green beans! Who wants just green beans!
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #6 (permalink)  
Old Aug 27th, 2007, 22:37
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Sliding Bar on Rollover/Rollout

Quote:
Originally Posted by Sgaspar11 View Post
Thanks, :-) I mean, without the meat and taters, what are you left with? Green beans! Who wants just green beans!
Rofl! By the way, I like your site. very nice colour scheme
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #7 (permalink)  
Old Aug 27th, 2007, 22:43
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Sliding Bar on Rollover/Rollout

Ah thanks, it'd help if I actually did anything to it in the past 6 months. :-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #8 (permalink)  
Old Aug 27th, 2007, 22:46
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Sliding Bar on Rollover/Rollout

You concentrating on any other projects then?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Aug 27th, 2007, 22:57
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sliding Bar on Rollover/Rollout

I believe Scott has one of those 'jobs'. Not sure what they involve but from what he's told me, not much sleep.

I'll probably not bother.

Pete.
Reply With Quote
  #10 (permalink)  
Old Aug 27th, 2007, 23:58
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Sliding Bar on Rollover/Rollout

Yes, my projects are my 60-70 hour a week job and my bed. :-) Doing all sorts of things...flash, asp, and beyond...
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
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
Rollover and disjointed rollover on same items? jtyoungs Web Page Design 37 Oct 1st, 2007 14:05
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
Sliding Menu? thenajsays Web Page Design 4 Nov 13th, 2006 10:42
Button rollout? josh111 Flash & Multimedia Forum 7 Mar 17th, 2005 19:03


All times are GMT. The time now is 15:03.


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