//    Instruction Example :      track.key.chapter.set (string,long)


        screen.resolution.set (512,384)

        screen.set (BACK)
          pattern.display ("avo\bubble.gif")
        screen.end ()

        @sprite=sprite.load ("avo\dinosaur.spr")

        @clip=clip.timeline.create (0)

        @chapter=track.chapter.create ()
          track.key.set (0)
          track.key.chapter.set ("chapter 1",CHAPTER_SEEK_ON)
          track.key.set (1)
          track.key.chapter.set ("chapter 2",CHAPTER_SEEK_ON)
        track.end ()

        @track=track.visual.create (0)
          track.key.set (0)
          track.key.position.set (0,0)
          track.key.set (1)
          track.key.position.set (200,200)
          track.key.set (2)
          track.key.position.set (0,0)
          track.end ()
        clip.timeline.end ()

        clip.create (@clip)
          clip.assign (@track,@sprite)
        clip.end ()

        clip.play (@clip)

        text.display ("Press a key to change the chapter.",CENTER,10)

        keyboard.wait ()

        clip.chapter.set (@clip,2)

        text.display ("Press a key to exit.",CENTER,350)

        keyboard.wait ()

        script.stop ()