Welcome To VertexTemplates.com Flash MX 2004 Tutorials Area - The Invisible Button |
![]() |
|||
Learn how to use invisible buttons to add functionality to almost any flash app.
2. Now we are inside of the button instance. Highlight the frame that has the world "Hit" over it and press F6. What this does is create a new keyframe on this frame. Now draw a recangle. I usually make the color a bright green or color that I know I won't be using in my movie. Now using the properties toolbar set the rectangle x and y coordinates to 0 and make it 100 pixels wide and 25 pixels high.(of course the position and size of the button are up to, but these are the options that I am using for this tutorial.) Well that's it. You now have your invisible button. What we have done is here is just selected a hit area for our button. We give it no up, down or over states which makes it invisible, well at least to the user. This enables us to keep copying the same button and adding new actions to it instead of having to make a new button every time you need one. For instance if you had a list of links in your flash movie you would either have to make all your text for the links buttons, or just copy this invisible button over your text and change the url in the actions for the button. This helps keep your file size down and helps keep your movie organized.
on(press) {
getURL("http://www.spoono.com", _blank, "POST");
}
What we are doing is telling flash to open up www.spoono.com into a new browswer window everytime this button is pressed. Now all you have to do is add that same code to all of your other buttons and all you will have to change is the the actual link to the site.
6. Where to go from here. I hope that you can see how easy it is to implemet this trick in your flash movies. I use these buttons in almost every fla I make that has any sort of user interaction. Other ways to implement this is to have hot spots in your site that will open up secret links or content on your site. I am sure you won't have any trouble incorporating this and if you have any questions please get back to us so we can help you out. |
||||
| Home Web Templates Affiliate Program Template Tour Custom Website Design Tutorials Articles Contact Us FAQ's All Rights Reserved © 2005 VertexTemplates.com Read our Terms Of Use and Privacy Policy Flash Templates by Metamorphosis Design |
||||