help: buttons whit more than 4 states?

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 2801 Views - Last Post: 17 December 2001 - 06:00 AM

#1 rufo   User is offline

  • I'm a stupid spamer

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-December 01

help: buttons whit more than 4 states?

Posted 15 December 2001 - 08:52 PM

ok... i see these buttons in almost every flash site i go into. regular buttons, you know you mouseover and they change color or whatever, BUT... once you click they change color and stay like that... the  question is... how can i do this?  i've tried a couple of things but nothing :(
thnx!
Is This A Good Question/Topic? 0
  • +

Replies To: help: buttons whit more than 4 states?

#2 supersloth   User is offline

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4695
  • View blog
  • Posts: 28,516
  • Joined: 21-March 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 08:59 PM

i have no idea, but hold on, jared or neo should be able to help you on later so just hold out for them to get online.
Was This Post Helpful? 0
  • +
  • -

#3 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1981
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:07 PM

staying like that is a different issue, but normally it's the up, over, down, hit

up is standard
over is your mouseover
down is what you are talking about
and hit is the 'area' which defines the button as a button

But you seem to be talking about like a 'visited' link/button like you have in HTML

That would be a jaredigital/neoracle issue :)

Was This Post Helpful? 0
  • +
  • -

#4 Vetritus03   User is offline

  • Microsoft.Whore

Reputation: 5
  • View blog
  • Posts: 1,742
  • Joined: 31-August 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:08 PM

action script.  essentially you're swapping movie clips... or instances... or whatever from a button to a static object that happens to look like the down state of the button... but... thing is... it doesn't function at a button.  
now, all this sounds great in theory... but i have no friggin clue on how to do this myself... i'd need my hady dandy flash book.  i'll see if i can look it up after work i'f i'm not otherwise engaged... ;)
Was This Post Helpful? 0
  • +
  • -

#5 Josh   User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 1,215
  • Joined: 27-August 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:14 PM

You make the button inside a movieclip, then when that button is pressed you target it to go to frame 2 of that movie clip, and put whatever is different there :D

Josh Dura

Was This Post Helpful? 0
  • +
  • -

#6 Vetritus03   User is offline

  • Microsoft.Whore

Reputation: 5
  • View blog
  • Posts: 1,742
  • Joined: 31-August 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:17 PM

that's pretty easy... why didn't i think of that... i guess that's why chris has a pic of you over his bed labled "Flash God"  :)
Was This Post Helpful? 0
  • +
  • -

#7 Sixpack   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 15-December 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:23 PM

Ya, he might be "engaged" with a little Red Alert 2, and some marinade, marinade, marinade!!!
Was This Post Helpful? 0
  • +
  • -

#8 Vetritus03   User is offline

  • Microsoft.Whore

Reputation: 5
  • View blog
  • Posts: 1,742
  • Joined: 31-August 01

Re: help: buttons whit more than 4 states?

Posted 15 December 2001 - 09:25 PM

SHHH!
Was This Post Helpful? 0
  • +
  • -

#9 rufo   User is offline

  • I'm a stupid spamer

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-December 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 07:19 PM

thanx for the feedback... but problem not solved :( if i just put a button inside a movieclip it would work... but i'd wave to make a button for EVERY link.. and a just want to use the same one to keep the file size down...
the thing is i tried making a buton inside a movieclip. Invisible button with my "Over" state and  a "gotoAndSto (gotoLabel);" in it... then the movie clip has a "onClipEvent" whith a "this.gotoAndStop(2);" thats where my "visited" (or extra) state is. THEN i turned the movie clip into a smart clip so i can have different instances go to diferent frameLabels... it seams to work  BUT  the "Visited" thing doesn't work. sorry for tha long post... but i'm desperate
Was This Post Helpful? 0
  • +
  • -

#10 The Neoracle   User is offline

  • Check, check, 1, 2.
  • member icon

Reputation: 21
  • View blog
  • Posts: 4,097
  • Joined: 30-March 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 07:33 PM

Ok, this is how I would do it, You have 2 objects:
The Button  (MC1)
The ButtonsApperance (MC2)

Ok, you make MC1 a transparent square and track it as a button.  onclick  tell target MC2 gotoframe(2)  (that's not the right code, it's  just how I think, sorry)

There yougo, it will stay as whatever you like.  There's more complicated ways to do this with varibles and arrays so that when you click another button this one goes back to one, if you want to do it that way, I'll post again with the theory on this.  Sorry, It finals week so I don't really have time to make a demo clip or write the code out for you. Sorry.  Hope that helps though.

Was This Post Helpful? 0
  • +
  • -

#11 rufo   User is offline

  • I'm a stupid spamer

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-December 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 07:40 PM

i'll try it.. but if anybody has more ideas please reply... and please read the post i made before this one so u can get an idea of what i was ttring out
Was This Post Helpful? 0
  • +
  • -

#12 Vetritus03   User is offline

  • Microsoft.Whore

Reputation: 5
  • View blog
  • Posts: 1,742
  • Joined: 31-August 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 07:54 PM

ok.. you want to keep file size down... hmmm...
Neo is right... if you make one movie clip that works... and put out multiple instances of the clip it won't increase the file size.  all you'd need would be some text over each instance to label the links.  why do they have to be different?  unless you want different colors for the different links.  one button in one movieclip should be sufficient.
Was This Post Helpful? 0
  • +
  • -

#13 Vetritus03   User is offline

  • Microsoft.Whore

Reputation: 5
  • View blog
  • Posts: 1,742
  • Joined: 31-August 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 07:55 PM

then again maybe if we could see what you're trying to do and use it for we might be more help...
Was This Post Helpful? 0
  • +
  • -

#14 jaredigital   User is offline

  • 42. That's my final answer.
  • member icon

Reputation: 1
  • View blog
  • Posts: 4,090
  • Joined: 22-April 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 08:49 PM

Josh's idea is easiest. basically, you make 2 buttons, one of them the way it looks before it is clicked, and the other the way it should look after it's clicked. they go in frame 1 and 2 of a movie clip with stop actions on both frames. then make the movieclip go to and stop on frame 2 when the button is pressed.
Was This Post Helpful? 0
  • +
  • -

#15 rufo   User is offline

  • I'm a stupid spamer

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-December 01

Re: help: buttons whit more than 4 states?

Posted 16 December 2001 - 09:05 PM

thanx for the ideas... i tried them out and got it to work. if youd like to see it and/or download source, i uploded it here
now if someone could tell me how i can put my picture underneath my name in the posts the world would be a better place :)
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2