Hi!
I guess you are talking about the image-map example in the download package.
Let's see...
There are three scenes in that example. Each of them has onstart(); action
|
Quellcode
|
1
|
onstart="activatespot(spot1, 0);
|
This action has two parametres: spot1 and 0. So when scene1 is loaded these parameters are passed to the action.
The action itself is:
|
Quellcode
|
1
2
3
4
5
|
<action name="activatespot">
set(layer[radar].parent, layer[%1]);
set(layer[radar].visible, true);
set(layer[radar].heading, %2);
</action>
|
Where %1 is parameter No.1 and %2 is parameter No.2. As we see from the onstart(); action of the first scene, these are spot1 and 0.
So for the first scene the action will run as follows:
|
Quellcode
|
1
2
3
4
5
|
<action name="activatespot">
set(layer[radar].parent, layer[spot1]);
set(layer[radar].visible, true);
set(layer[radar].heading, 0);
</action>
|
In other words, action sets layer "spot1" as parent for the radar, makes the radar visible and sets its heading to "0'.
In the second scene these two parameters are "spot2" and "90", so when it's loaded, these two values will be used in the action as %1 and %2.
To sum up... In each scene state onloaded="activatespot(
your_mapspot_name,its_heading).
Hope this helps