A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: linking buttons in flash - they're all the same!

  1. #1
    Junior Member
    Join Date
    May 2003
    Posts
    25

    linking buttons in flash - they're all the same!

    i feel like a dope for asking this.

    i'm working with a template here, and there is a page to view Links (as in to other sites). each linked site has a corresponding preview image of the site. each preview image is a button with a movieclip that plays over it.

    in my attempt at linking one of the buttons to their respective sites, i find that ALL of the rest of the buttons link to this site as well!

    how do i fix this? did the template author apply the same button instance to all of the movie clips? if so, how would i go about separating them so that i can link each separately?

    thanks for the help guys, i'm lost!
    >Connected to middleeast.com
    >
    >dir /bin/laden
    >
    >ERROR: Unable to locate /bin/laden

  2. #2
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    You should be able to click the button once, open the actions panel, then change the getURL for each button.
    I'm sure the author just put a standard link to some site just to make the buttons work.

  3. #3
    Junior Member
    Join Date
    May 2003
    Posts
    25
    no, there were initially no links at all within the template. i added all the getURL commands to the buttons once i did as you said and opened up their actions panel.

    my problem lies in having every other button on that page link to the first button that i created a link for.

    so confused!
    >Connected to middleeast.com
    >
    >dir /bin/laden
    >
    >ERROR: Unable to locate /bin/laden

  4. #4
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    Ah, I see now. Well if you'd like to post your FLA file, we will have a look. Or you can email it to me Email Me
    Please...in MX format only (not 2004). (Save as mx)

  5. #5
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi

    Maybe this....

    If you have a button with actions on it and this button is inside a movieclip .....which you have then duplicated....(so you have for example 4 instances of this movieclip on the stage)......when you try to change the actions on a button ....whatever you put will be the same on all the other buttons .....because although the movieclip was duplicated....the button inside.... remains the same one....so you need to duplicate the buttons as well and name them differently in the library.....

  6. #6
    Junior Member
    Join Date
    May 2003
    Posts
    25
    hum, you hit it right on the mark man! thanks a million, it's been a problem that was haunting me for a while.

    and launchpad, thanks for your willingness to help.

    you guys are great!
    >Connected to middleeast.com
    >
    >dir /bin/laden
    >
    >ERROR: Unable to locate /bin/laden

  7. #7
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    You only need 1 button in the library.

    just drag it from the library into each clip.
    when you add actions they will stay with that button.
    Multiple buttons in the same clip give them an instance name.
    If someone tells you it can't be done,
    it's probally because they don't know how.

  8. #8
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    This is true....unless of course you want your buttons to be different colour styles...and to contain different text........in this situation you would need to duplicate and name differently in the library....

  9. #9
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Colour styles yes.. but if you want your buttons to match,
    keep your text on a different layer to make editing easier.
    (just hide the button/text layer to edit the other.)
    If someone tells you it can't be done,
    it's probally because they don't know how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center