Example 18, Multimedia Portion and Pictures


This description will add Multimedia Portion elements to
    -  Doc Example.ADsrc  (source,  "W" in the icon).
   -  Doc Example.ADcomp  (compiled, "P" in the icon)
Both files can be found on the CD in the folder
     Samples\Try This\Example Folder
The description presumes all resources (pictures, sounds available) found in
     Samples\Try This\Example Folder\Example Resources\AnimalsOnFarm
 
There are several Multimedia Portion cases. The case "Pictures" is the subject of example 18. The case "Pictures" is quite similar to "Hot Spot", trated in the example 17. Difference between example 17 and 18?
The "Hot Spot" of example 17 was for a Static Picture. The sensible spot was indicated, he was not part of a question. He was for an explanation. The click does not influence the score. Unlike Static Picture, Multimedia Portion elements have all characteristics of questions (they add points to score, they may have repeating fields). This is the difference between Animated Static Pictures and Multimedia Portion.


FIRST PART, WITHOUT REPETIONS

Do the following steps for this question with that "nice" message :)
-  Choose Static Text from the menu Create Element of ADWorks and use its Definition for the first part of this question.
-  Choose Select Multimedia Portion from the menu Create Element of ADWorks.
-  Choose Validater from the menu Create Element of ADWorks. See Result.
-  Select the element Multimedia Portion and select the Validater to link them together.
-  Use the Definition of the Multimedia Portion to define his resource, the picture AnimFarmLamaJPG found at the above-indicated location. (The picture AnimFarmLamaJPG  is the AnimFarmJPG-picture with the donkey replaced by a llama.)
-  Use the Evaluation of the Multimedia Portion to define the "hot spot", see Illustration, add a message to this, see Illustration 1 and Illustration 2. Observe that message has two resources. They are sound files of the cry of llama.
-  Use the Evaluation of the Static Text to define the two portions of Referenced Text. See Illustration.
We are ready jump to ADPlayer to test the Multimedia Portion, case Picture. See Illustration.
 
SECOND PART, WITH REPETIONS
Important preliminary note:

1) On this illustration from example 3 you see a Text Write Box with 3 Repeating Fields (3 answers are asked). It is strait forward to the user of ADPlayer what he has to do in the case of repeated Text Write Boxes or repeated Choose Boxes.
2) It is probably not strait forward in the case of repeated Multimedia Portion elements. The Static Text must clearly explain to the user, what he has to do. See the example of Multimedia Portion (case Picture) with repeating fields that will be created here below.
3) Questions with Multimedia Portion (case Picture) with repeating fields can easily be by passed with Moving Elements. Examples with Moving Elements (target is picture) will show how to by pass the present example.

The present example will look like this after validation. The creation of the present example needs the following steps:

-  Choose Static Text from the menu Create Element of ADWorks and use its Definition for the first part of this question.
-  Choose Static Picture from the menu Create Element of ADWorks and use its Definition to add the picture AnimFarmSmall1JPG, found at the above-indicated location.
-  Choose Select Multimedia Portion from the menu Create Element of ADWorks.
-  Choose Validater from the menu Create Element of ADWorks. See Result.
-  Select the element Multimedia Portion and select the Validater to link them together.
-  Use the Definition of the Multimedia Portion to define his resource, the picture AnimFarmSmall2JPG, found at the above-indicated location.
-  Use the Evaluation of the Multimedia Portion to define the 5 "hot spots", see Illustration 1 and Illustration 2.
-  Define the number of Repeating Fields on the Settings tab of the Evaluation Dialog. See Illustration.
This step is optional: The Repeating Fields are like this, immediately after leaving the Evaluation Dialog. Click the selection barre of the Repeating Fields to arrange them like this.
-  Use the Evaluation of the Static Text to define the portions of Referenced Text.
We are ready jump to ADPlayer to test this AD group. See Illustration of "validation"
This document is saved saved with the name Doc Example.ADsrc  (with  a "W" in the icon).
The compiled file is Doc Example.ADcomp  (with a "P" in the icon)
 
THIRD  PART, Discussion

1) Equality Criteria

The controllers for the Equality Criteria are located on the Settings tab of the Evaluation Dialog. Observe them on this illustration (on top to the right). The Settings of Equality Criteria are ignored in the case of Multimedia Portion element with picture. It will not be ignored with other cases. The Equality Criteria in the case of pictures is simple: the clicked point is inside/outside of the traced rectangle.

2) Changing the picture.

The possibilities in the Evaluation Table are the coordinates of the traced rectangles. You will probably need to trace the rectangles again when you replace the picture with another picture, or even worse, with a resource of another kind. ADWorks emits a warning when he detects that kind of changing.
Note, Choose Box are "cool" : When the writing of an item in the list of a Choose Box is changed, then the Evaluation Table is automatically adapted.



Back to try this