Navbar Slider

This is a discussion on "Navbar Slider" within the Flash & Multimedia Forum section. This forum, and the thread "Navbar Slider 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 Sep 20th, 2007, 17:51
Up'n'Coming Member
Join Date: Aug 2007
Location: N.C.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Navbar Slider

Hello,

Please view http://www.kirupa.com/developer/mx20...ith_slider.htm
to get a look at what I am trying to attempt. But I am modifying it.
My buttons are different sizes, so I am trying to make the slider various sizes(widths) also.
I have created a fla file using the above tutorial. I know my attempt is incorrect, but I was wondering if you could see my fla and point me in the right direction.
The tutorial uses a single symbol as the movie clip. I have created an actual movie clip, which is where I am wrong. I have included the AS as instructed by tutorial.
Thanks.
Attached Files
File Type: fla navbarslider.fla (39.5 KB, 8 views)
Reply With Quote

  #2 (permalink)  
Old Sep 20th, 2007, 18:27
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: Navbar Slider

I downloaded the source file from Kirupa...you need to put this on each respective button...
Code: Select all
on (rollOver) {
 // slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.
 slider.xMove = button_1._x;
}
All the way through all of your buttons names. Then it will work. You also don't need to have the slider_mc with those motions tweens in it. The action does it automatically.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Sep 20th, 2007, 20:31
Up'n'Coming Member
Join Date: Aug 2007
Location: N.C.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Navbar Slider

Thank you.

The reason I did a tween is because the slider is a different size as it goes to each button. How do I reflect that in the design?
Do I need a MC for each size?or perhaps 1 frame in the same mc and have the frame displayed as it goes to its assigned button?
Reply With Quote
  #4 (permalink)  
Old Sep 20th, 2007, 20:36
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: Navbar Slider

You can do that in your actionscript...as the AS tells the MC to go to different frames...you can use the "_scale" class to adjust the size...

i.e. slider._scale = 50; //50% the size.

Something like that...
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #5 (permalink)  
Old Sep 20th, 2007, 21:19
Up'n'Coming Member
Join Date: Aug 2007
Location: N.C.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Navbar Slider

Is there an X-scale class?
The only change to scale is the width.

on (rollOver) {
// slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.
slider.xMove = button_6._x;
}
on (rollOver) {
slider._xscale = 1;
}

This is the script I have for the first button. The original size of the mc.
Is this correct? I am not very educated on AS, but have found a few tutorials.
thanks.
I have edited this as I am making changes to script.

Last edited by Rick; Sep 20th, 2007 at 22:44.
Reply With Quote
  #6 (permalink)  
Old Sep 20th, 2007, 22:45
Up'n'Coming Member
Join Date: Aug 2007
Location: N.C.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Navbar Slider

I think I got it.

Thank you.
Reply With Quote
Reply

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
dual slider layout pesho318i Web Page Design 2 Dec 6th, 2007 12:43
implementing a Double Slider pesho318i JavaScript Forum 5 Nov 20th, 2007 12:47
slider moving problem arhun JavaScript Forum 1 Sep 14th, 2007 15:38
Slider/Progress Bar JCote1985 Flash & Multimedia Forum 1 Aug 2nd, 2007 21:22
Image Slider Artry Flash & Multimedia Forum 2 Jul 23rd, 2007 08:39


All times are GMT. The time now is 07:39.


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