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
151 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
ID: 12134663
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

813 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

14 Experts available now in Live!

Get 1:1 Help Now