Finally, let's put all the examples we've seen previously in the tutorial together, to create a typical Scene Graph scene component.
Example Application: VideoBannerBug.zip
And here's the entire XML file that plays a video, has several animations, and handles various events. There's nothing here that hasn't been covered previously. We've added line numbers to help locate specific sections of the file:
Let's go over this by line number, and go back and look at each section of the tutorial where we saw how the XML was done.
Line 1: DTD declaration
Lines 3-159: component element definition
Lines 5-64: script element definition
Lines 7-17: init() function definition
Lines 19-31: video play parameters function definition
Lines 33-52: onKeyEvent() function definition
Lines 54-62: text change function definition
Lines 66-71: Video node definition
Lines 73-139: Group node definition
Lines 141-150: warningLabel definition
Lines 152-157: Timer node definition
TBD whole page, but also need to modify and complete the actual example TBD. We should also change the name of the zip file. Sounds like a bug TBD hey the whole thing is probably going to change! TBD