Page 1 of 1

BUTTONS MAKIN ME CRAZY !!! :(

PostPosted: April 14th, 2007, 10:16 pm
by call-me-DD
i want one button which can show/hide a layer...

i can put 2 different buttons... one 4 showing -n- one 4 hiding da layer... but how 2 get only one button do both things !!!

plz help :roll:

PostPosted: April 15th, 2007, 12:58 am
by SLoB
you can do this a few ways, simplest is to make a loop

create a new layer set and name it animaiton animtype(0) id(toggle)
you can put in delay(x)/fadebetween if needed

in there create 4 new blank layers

name 1st layer modify(yourlayertoshow) aclashow
the 2nd layer down name modify(toggle) acanstop

name 3rd layer modify(yourlayertohide) aclahide
the 4th layer down name modify(toggle) acanstop

that basically simulates a toggle on your ids to hide/show and stops the main anim loop
you will also want to put in svst on your layers that are hidden/shown so they remember their state

edit - named the layer order better for more clarity (the art of cut and paste ;) had 2 tops ;))

PostPosted: April 15th, 2007, 2:14 am
by call-me-DD
aha !

genius !

thanx a lot :)

PostPosted: April 15th, 2007, 5:07 am
by SLoB
nps :)