I have some questions about the effect of using shared ObjectRef variables.
As you know, ObjectReference can be External (that is specifying both group
identifier and the object number) or Internal (i.e. the object number
only).
Suppose that I define an ObjectRef variable in the application file.
Then I use this ObjectRef variable as a target argument of some Elementary
actions within scenes. I wonder what should be given to set the variable
and what I would get when using this variable.
Let me take an example :
I have 1 application group and 2 scenes.
In the application group, I define the ObjectRef variable :
{:ObjectRefVar 1
:OrigValue :ObjectRef 1
}
In scene 1 and scene 2, I have a visible with object identifier 1
{:Bitmap 1
... // all needed attributes
}
* Q1 *
At the beginning, if I use the objectRefVar within the scene 1, which
object will it refer to ? The internal object 1 of the application (the var
itself) or the internal object 1 of the scene (the bitmap 1 of scene 1) ?
* Q2 *
In scene 1, I make an action ":SetVariable (("application" 1) :GObjectRef 1)".
After this action, same question as 1, which object will it refer to ? The
internal object 1 of the application (the var itself considered as answer
A1 in the following) or the internal object 1 of the scene (the bitmap 1 of
scene 1 considered as answer A2) ?
* Q3 *
If Q2A1 (answer for Q2 is A1),
Shall I put an External reference as the new value of the setVariable
action in order to have the ObjectRef var to point to the bitmap 1 of scene
1 ?
If Q2A2,
I now make a transition to scene 2. Within scene 2, does the ObjectRef var
point to bitmap 1 of scene 1, or to bitmap 1 of scene 2 ? What is the
effect of using it as target of say a SetPosition action ?
Sorry if it seems obvious to you or if it is specified in the MHEG standard
but I wanted to know how MHEG engines are dealing with internal reference
values of ObjectRef variables :
- Do they convert it to a pointer on a unique MHEG object within the group
of the variable itself ?
- Do they convert it to a pointer on a unique MHEG object within the group
where the setVariable action were done ?
- Or do they simply keep the short internal number and use it as well,
depending on where the var is used ?
Many thanks for any reply. Please, reply directly to my E-mail address
since I'm not sure I was added to the list yet.
Regards,
Emmanuel
__________________________________________________________________
Emmanuel BEUQUE Email: ebeuque@pratique.fr
mediaServ tel: +33 (0) 2 99 64 36 64
Multimedia consultant & developer fax: +33 (0) 2 99 64 36 65
__________________________________________________________________