Join Paul Trani for an in-depth discussion in this video Sorting XML content, part of Creating a Portfolio Web Site Using Flash CS4 Professional.
Once the XML is loaded in Flash, you can start to sort through the content to…determine what you want to use.…So as you can see, it's really currently just a big dump of the XML, verbatim…everything that's in the XML file.…I want to start sorting through these individual items to start accessing their content.…So I'm going to go to the Timeline to that very first frame in the AS layer and…I am going to go to window to open up my Actions panel.…Notice at the top, here is why I load in the XML, defines what file it is and…once it's completed loading, it traces out all of the data.…
Okay, so that's where that big dump of data comes from.…It comes from this.…But what I want to do is start tracing out the individual items.…So before this closing curly brace, I want to create a new variable.…In fact, I am just going to delete this information because I'm going to create…a new variable and it's going to be called theXMLData and it's going to be an…XML file and it's going to be equal to new XML.…And then within these parentheses is that data.…
- 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.