I have a [COLOR=Red]red[/COLOR] button with a MC nested in it where if you’ve clicked the button… the nested MC plays to the “active” frame and stops (here the button is [COLOR=Orange]orange[/COLOR]). I want the button to remain on the “active” frame until ANY other button is pressed.
getting it to stay orange is the easy part. this would be similar to a two state button (unvisited and visited), but I need the button to have a third state: active.
The tough part, which I can’t seem to figure out is… I have about 300 instances of this button and when any other button on the main time line is pressed the I need the “active” button’s MC to move to the “visited” frame where the button turns [COLOR=Blue]blue[/COLOR].
There are 300 on the same frame. (actually there are 365–It’s a calendar)
I was hoping there was a way to do it without having to name each button. or having to put each button on a separate frame.
first state: unclicked (red)
secong state: clicked (orange) active…meaning… the day you’re looking at.
third state: visited (blue) …indicating a day you’ve already clicked on and seen.
is there some kind of function that could tell a button that is in the “active state” to move ahead to the “visited state” when any other button has been clicked?
I know a little…but not enough to write that kind of actionscript yet.
probably AS in the parent timeline, that makes only the box around the current button visible, so each button would have a text area and a box around the text area with an instance name, and then using an if statement the AS would insure it’s active. As for visited, do you want the visited button state to persist over many page visits? or simply for each pa ge visit? because single page visits would be easy, just have the button play to a certain frame and stop there… over multiple visits… well then you’re looking at shared objects and a few nifty, though relatively simple write and read commands… anyway let me know if any of this helped…
I see what you’re saying. I just don’t know how to write the actionscript to do it.
As far as the visited state… it only needs to work for each time a user goes to the site.
Actually… visited I have figured out. I just need to know how to make the MC inside the active button move to “visited” once another calendar day is pressed.
No arrays used. I’m just beginning to understand what arrays are. Just 365 of the same button on frame one of the main time line. That button has a MC nested in it. the MC has buttons that move it from one frame label (“unvisited”, “active”, “visited”) to the next, showing the different states of the button.