Join Paul Trani for an in-depth discussion in this video Loading XML content, part of Creating a Portfolio Web Site Using Flash CS4 Professional.
Loading XML content into Flash isn't quite as easy as, say, loading in a JPEG,…but knowing that the XML content can contain anything you want makes it totally…worth it and very powerful.…So in the Assets folderm in the design folderm if you look in this portfolio…folder, you'll find this XML file.…So this is what I want to copy and use in my Flash file.…So I'll just copy it over to the appropriate place, into my portfolio folder,…I will paste it right in there and this is the file I want to load in.…
So I'm just going to open up my portfolio.fla file.…As I open it up and know that if I close this Actions panel, I'm actually right…here on this first frame of the AS layer.…So Window>Actions, I'll open this back up and you can see all this code written…to load in all of the various thumbnails.…But right at the top, if I just hit Return a couple of times, I can make room…for loading in the XML.…So I'm going to start off just by writing a comment, just going to type in XML…and this is going to load in XML is what I want to do.…
- 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.