Implement the homepage and add a favorites in Flash

xiaoxiao2021-03-31  238

Now a lot of websites are a large-scale website or a small personal home page has a function of adding a favorites, although practicality is worth exploring but adds the effect for the web page. So can you also add such functions in Flash animation? How should I achieve these two functions? Let's learn how to achieve these two effects. In FLASH, we have achieved these two effects through the ActionScript script, which is to set the page as the homepage and add a favorite here. There are two ways. The first method is to implement the GetURL of the button, as long as the corresponding ActionScript script is added to the button. The script is as follows: set to the homepage

On (Release) {getURL ("JavaScript: void (Document.Links [0] .style.behavior = '' '' '' URL (# default # homepage) '' '' ''); void document .LINKS [0] .Sethomepage ('' '' '' 'http: // Your website address /' '' '' '); "_Self", "post");} Add to favorites

On (Release) {getURL ("JavaScript: void window.external.addfavorite ('' '' '' 'http: // Your website address' '' '', '' '' '' '' Website name '' '' '' '); "" _Self "," post ");} The second method is to complicate more than one by one by FSCommand. First add the ActionScript script code to the flash button to be homepage

On (Release) {fscommand ("setomepage", "http://ww address");} Add to Favorites

转载请注明原文地址:https://www.9cbs.com/read-130823.html

New Post(0)