User's Guide

Adding the connections

Connect your nonvisual parts to your visual parts as follows:

  1. Connect the number attribute of Runner Factory part to the runnerNumberTextObject attribute of the ReusableRoadRaceView part.
  2. Connect the finishTime attribute of Runner Factory part to the finishTimeTextObject attribute of the ReusableRoadRaceView part.
    Note:We promoted the object attribute of the runnerNumberText and finishTimeText parts in Creating reusable parts so you would be able to make these connections. These connections give the Runner Factory part access to the contents of the Text subparts.
  3. Connect the clicked event of the Record push button to the recordPBClicked script of the RoadRaceView class.
  4. Connect the self attribute of the Runners Collection part to the items attribute of the Result List.
  5. Set the attributeName property of Result List to asResultString.

Now every time Record is selected, the object factory creates a new instance of the Runner class and adds it to the ordered collection.

Your Composition Editor looks like the following:
Composition Editor

Select Test icon to test your visual part.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]