Flash Actions Create button to point to a Web page
Good day folks. For those who have ever wondered how they can link their flash movies to a web page, please tune in to today’s tutorial, as I show you how you can create a simple button that can point you to a specific web page or url.
1. select rectangle tool, click and drag rectangle shape on stage
2. right-click rectangle shape, and select Convert to Symbol, and select type of Button, and enter name, eg. btnGoHome
3. select Windows > Actions, to open Actions panel

4. ensure Script Assist button is clicked in, to enable script assist
5. select Global Functions > Browser/Network > getUrl
note: because script assist is enabled, and you have selected a button instance, the event handler of on(release){} will automatically be added to surround the action of getURL
6. type in the URL, eg. http://videotutorials.blogsome.com

7. select _blank from the Window dropdown box
script in script area will now look like below:
on(release){
getURL(”http://videotutorials.blogsome.com”,”_blank”);
}
8. close Actions panel
9. press Ctrl + S, to save file
10. press Ctrl + Enter, to test movie
note: when click and release button, a new browser window will be opened pointing to given url of http://videotutorials.blogsome.com

Comments »
No comments yet.
RSS feed for comments on this post.