A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Bookmark site ...this should be easy, what am i doing wrong?

  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    79

    Bookmark site ...this should be easy, what am i doing wrong?

    hi all flashers,

    Im in flash 8 and was under the illusion that to add an action to a button to bookmark a site would be easy,

    but am having no joy...

    this is the actionscript I have on my button ....

    ////////////////////////////////////

    on (release) {

    getURL ("javascript:window.external.AddFavorite
    ('http://www.mysite.com','site description')")
    }

    /////////////////////

    what am I doing wrong ?

    would appreciate any help,

    thanks in advance

    suzi x

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    does this work for you ?
    Code:
    on (release) {
    getURL("javascript:document.body.style.behavior='url(#default#homepage)';document.body.setHomePage(window.location.href);");
    } // watch out for forum posting adding spaces

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    79
    mmm I can be so dumb sometimes...

    sorry,

    I was trying it opening up my browser locally, but it only works when it goes live.

    cheers for the reply anyway,

    thanks again

    suzi x

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