Sep 5

Mini Tip #2 Applying an Add To Favourites button in Flash MX 2004 via ActionScript

Create a button within your Flash movie and insert the following ActionScript onto that button.


your_btn.onPress = function(){
getURL("java script:window.external.AddFavorite(http://www.example.com, Example Site Title)");
}

Alter the URL and Example Site Title info to suit your needs, and don’t forget to give your button the same instance name as you used in the ActionScript – in our case; your_btn.

No Comments

Leave a comment

You must be logged in to post a comment.