Join Paul Trani for an in-depth discussion in this video Adding functionality to buttons, part of Creating a Portfolio Web Site Using Flash CS4 Professional.
Once you have the buttons created, the next thing you want to do is add…functionality to them,…in other words, make them do something.…That's what I want to do here is I want to make these four buttons work.…The first place you need to start is to give them a specific name, an instance name.…So I'm going to double-click on this content movie clip to enter inside of it…and notice here are my buttons.…I want to go through and give each one an instance name, starting with this one…right here, the John Doe.…
It is the home button.…So in the Properties panel, I'm going to give it an Instance Name of home_btn.…Don't use any special characters or any spaces.…It should really just be one word _btn.…About is going to follow the same pattern, btn, video_btn and portfolio.…So really be mindful of what you're calling each button because that's probably…where the most errors happen is with instance names. Okay.…
So I'm going to start off with this home button.…So I'm going to remember home_btn.…But let's be aware that we are actually inside of the content movie clip.…
- Optimizing and publishing a Flash web site
- Designing a professional photo or video portfolio
- Adding button interactivity
- Adding functionality to portfolio thumbnails
- Displaying content with XML
- Adding audio to portfolio presentations
Skill Level Intermediate
Q: While following along with the course, I encountered the following error in Flash CS4:
1120: Access of undefined property content_mc.
What is causing this error?
A: Flash is looking for something (the content movieclip) with the instance name “content_mc” but it is not finding it. Select the content movieclip on the stage. In the Properties panel give it an instance name of “content_mc”. Make sure there are no spaces before or after. That should resolve the error.
Q: What is the best strategy for integrating 720/60P HD video into a website? Would creating a blank page that opens in full HD resolution be the best way to view the full quality of the HD video file?
A: A video file that large would just be unreasonable for most users to open. These settings are a good place to start: 600x400is
Bitrate level: 1,000kbps
Bitrate Encoding: VBR These are just recommendations, and can be modified to preference. Also keep in mind that in Flash, one of the buttons that can be added is a full screen button, which is part of the skins.