Solved

I need a code to add a bookmark to favorites and/or make a shortcut appear on the desktop.

Posted on 2004-09-23
3
148 Views
Last Modified: 2010-04-03
Hello-

I'm working on a project for work and the client wants me to have a button where you click on it and the site gets bookmarked under favorites.  Do any of you know how I would do this in Flash?  They would also really love it if an icon would appear on the desktop to where when the clicked it it would take them to the certain page.  Again- any of you know how I could do that through flash.  Any help you guys could give me would be greatly appreicated.  Thanks!
0
Comment
Question by:ritmy
3 Comments
 
LVL 4

Accepted Solution

by:
mrdilliard earned 125 total points
Comment Utility
You can't place an icon on the desktop...that's kind of a security risk. Imagine being able to save any file you wanted on the user's desktop...we'd all have plenty more spyware.

The bookmark is possible, but you'll be calling a javascript function from Flash.

Place this Javascript in the <head> of your page the flash movie's on.
<script language="JavaScript"><!--
function addBookmark(url,title){
   if (document.all) {
      external.AddFavorite(url,title);
   }
}
//--></script>

In Flash, you then just need a function to call the javascript:
mcButton.onRelease = function(){
     var url = "http://www.google.com/";
     var title = "The best search ever";
     getURL("javascript:addBookmark(\"url,title\")");
}

See if that works for you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now