1 Reply Latest reply on Jun 17, 2007 5:15 PM by kglad

    Add to favorites button

    trigger2160
      I would like to have an add to favorites button on my flash website but it just won't work. I have copied the code from this website http://www.actionscript.org/resources/articles/24/1/Bookmark-to-IE/Page1.html into a new flash movie but when I put it into internet explorer 7 it won't do anything. but the button on the website above does work. so I downloaded the fla from the site above, put it into flash 8 and then exported it and guess what it didn't work. this is the code I am using.

      on (release) {getURL ("javascript:window.external.AddFavorite(' http://www.actionscript.org/','ActionScript.org Flash Resources');");
      }

      is there a setting in flash I need to change so that it can 'talk' to internet explorer, because all websites that have tutorials for add to favorites buttons use the same code, but it won't work on my computers.

      thanks for any help

      trigger2160
        • 1. Re: Add to favorites button
          kglad Adobe Community Professional & MVP
          it's not a flash issue. it's a browser (and possibly pop-up blocker) issue.

          flash can cause any javascript function to execute (though you'd be better served to use the externalinterface class rather than getURL). you need to find a javascript function that works with the browsers that want.