Copy link to clipboard
Copied
Hi!
I'm trying to create two button instances from the same button symbol. I have 8 buttons...one for each page in the site.
My goal is to have:
1. with UP state invisible (shows up on mouseover, for when not on that page)
2. with UP state visible (for when on that page)
My buttons were imported through .PSD file. They came in as movie clips and I converted them to buttons. They each have an instance name. However, when I tried creating a new instance of the button and change the UP state, it changed it on both instances.
Can I have different UP states on instances of the same button?
Copy link to clipboard
Copied
no.
Copy link to clipboard
Copied
Ok. That's what I thought.
To get around this, I duplicated each button, gave it a different name and changed the UP state that way. It worked.
However, now, since I have 8 pages in the site (8 frames), I have to have 2 copies of button version 1 in the timeline with button version 2 sandwiched in between depending on the page.
For example, page 4. I have button version 1(with UP state invisible) on frames 1-3. On frame 4, I have button version 2 (with UP state showing). Then for frames 5-8, I copied button version 1 and pasted it in frames 5-8. This is so pages 5-8 can still navigate to page 4.
Does that make sense?
The problem I'm having is on pages 1-3, the button (for page 4) works great, just as it should. Page 4 also works great as the button is visible. But pages 5-8, the button shows fine and has it's clickable area, but the function is not working. You just click it and nothing happens.
Any idea how to fix this or do it differently? I've been trying to fix this all morning!
Thanks in advance!
Copy link to clipboard
Copied
Not the way you're trying to do it, no. When you edit an instance, you edit the original. The only way to do it, short of making separate buttons, is programmatically. For instance, if your button instance has a background in it - which is also a movie clip, you can affect its color using ActionScript - on a per instance basis.
Copy link to clipboard
Copied
(but you should use a movieclip button to ease referencing children of your "button".)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now