Add to Favourites From Flash

Following is the example of how to add to favorites from flash movie. You will have to add some actionscript at some button in flash and also some javascript code in webpage head section inwhich that flash movie is beingcalled.