Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

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:

Video Channel Component XML Example

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 defined. 

Line 1: DTD declaration

Scene Graph XML Guide Reference: TBD
Tutorial Reference: TBD

TBD

Lines 3-185: component element definition

TBD

Lines 5-83: script element definition

TBD

Lines 7-21: init() function definition

TBD

Lines 23-35: video play parameters function definition

TBD

Lines 33-52: onKeyEvent() function definition

TBD

Lines 37-67: text change function definition

TBD

Lines 66-71: Video node definition

TBD

Lines 73-139: Group node definition

TBD

Lines 76-94: Rectangle node definition

TBD

Lines 82-93: rectangle animation definition

TBD

Lines 96-117: Label node definition

TBD

Lines 104-116: label animation definition

TBD

Lines 119-138: Poster node definition

TBD

Lines 125-137 : poster animation definition

TBD

Lines 141-150: warningLabel definition

TBD

Lines 152-157: Timer node definition

TBD

 

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 (wink) TBD hey the whole thing is probably going to change! TBD

 

 

  • No labels