Learn about starting the actionscrip to manage the contents of the website in this Flash Professional 8 advanced next level training video series.


More DIY videos at 5min.com

Video Transcription

Now just to get things set up properly, I would like to start our ActionScript off just for managing the contents so that we can test our movie effectively. As you can see, if we test the movie as it is right now, all that content is just going to be dropped right on top of one another. So we'll get that out of the way before we get started on our buttons. If I pull up the gallery content and click on it, you can see that we have got an instance name of mcgallery and that's similar for the rest of them. We have got mcservices and mccontact as well. So just to get things started, I am going to go over to ActionScript. Now we can manage our content by simply using the '_visible' property. This is actually really useful even if your content is more than just a text field that you are trying to display or hide because in most cases, you are probably going to package your content in movie clips anyway. I am just going to set up three statements one for each one of our content elements. The first one is mcgallery and we'll use the '_visible' property to manage that. I will just set it equal to false, and we'll do the same for the other two as well. So let me copy that. We'll paste it and then I'll simply change the names for the other two elements. First, we have services, and last we have contact. Now let's just do a quick test and you can see that the only one left showing is home. Now, obviously, we are going to be setting our buttons up to manage that content for us during the application, but now we can focus a little bit more on what we're going to be doing for our buttons themselves.