A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: CS4 - AS2 - All links go to the sme URL

  1. #1
    Member
    Join Date
    Sep 2008
    Location
    Chesapeake, VA
    Posts
    35

    Thumbs down CS4 - AS2 - All links go to the sme URL

    I have been working on a project that has multiple links assigned via AS to the specific instance of a button. I have tried assigning URL scripts in frame 1 as well as "hard" coding them to each button the frame that they are being displayed on screen.

    Example: button 1 is assigned code to go to www.site1.com
    button 2 is assigned code to go to www.site2.com
    button 3 is assigned code to go to www.site3.com

    Compile and run...

    All links take me to www.site2.com

    If I remove the link of button 2 then no links work.

    Any thoughts? Anyone else had this happen?
    At first you do not succeed,
    Deny you were ever trying.

  2. #2
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    can you post your code or the fla?
    Z¡µµ¥ D££

    Soup In A Box

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    looks like button2 get duplicated/attached. You'll need to use the generated 'new name' to target each instance of the button. And, as ZippyDee is saying, there can be no further help without seeing a code.

    gparis

  4. #4
    Member
    Join Date
    Sep 2008
    Location
    Chesapeake, VA
    Posts
    35

    Thumbs down Code link supplied here. Thanks

    ok. Here is a link to the actual FLA file. LINK

    Once you have it open look for a MC called "PermMakeup_MC" on this MC there are two links. If you were to run the SWF you would find that both of them take you to the same place. There are other MC's that are set up the same way, this one is the first I wrote down as a reference.

    I have tried to define each link into a script at the beginning of the SWF and referencing each button by an instance name. Nothing has worked.

    Any thoughts or revelations would be incredible. LINK

    Thank you.
    At first you do not succeed,
    Deny you were ever trying.

  5. #5
    Member
    Join Date
    Sep 2008
    Location
    Chesapeake, VA
    Posts
    35

    Question Any ideas?

    Has anyone had a chance to ponder my AS2 link issue?

    Thank you.
    At first you do not succeed,
    Deny you were ever trying.

  6. #6
    Junior Member
    Join Date
    Dec 2008
    Posts
    20
    not sure if im seeing this right, but, inside the PermMakeup MC (which is gross by the way)....your onPress is referring to the movieclip itself, and not the "link buttons", which are buttons but have not been given instance names...

Tags for this Thread

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