Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

different instances of the same button (symbol)

New Here ,
Nov 04, 2009 Nov 04, 2009

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?

TOPICS
ActionScript
678
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2009 Nov 04, 2009

no.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2009 Nov 04, 2009

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 04, 2009 Nov 04, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2009 Nov 04, 2009
LATEST

(but you should use a movieclip button to ease referencing children of your "button".)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines