Aus dem Beispiel scenes with image map habe ich mir folgenden Code angepasst:
Code
<!-- Radar -->
<plugin name="map" url="images/GrundrissPraxisKaiser.png" keep="true"
align="lefttop" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="300"
height="302"
onclick="action(closemap);"
onHover="showtext(Karte schließen)"
/>
Code
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
mask="mapmask"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="2.5"
visible="false"
/>
<!-- mask for radar -->
<plugin name="mapmask" url="images/GrundrissPraxisKaiser.png" keep="true"
parent="map"
enabled="false"
/>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(300,0.5),easeoutquad);
tween(height,45,distance(302,0.5),easeoutquad);
</action>
<action name="openmap">
set(onclick,action(closemap););
tween(width,300,distance(300,0.5),easeoutquad);
tween(height,302,distance(302,0.5),easeoutquad);
</action>
<!-- activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
trace(plugin[radar].x,'-',plugin[radar].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
Display More
Mit diesem Code funktioniert auch alles prima. Nur möchte ich gern, wenn ich mit der Maus über die Map fahre, dass dann erscheint "Karte schließen" Auch das bekomme ich noch hin. Danach wird die Map verkleinert und dann geht mein Problem los! Wie kann ich dann den Text ändern, dass dann wenn ich mit der Maus über die verkleinerte Map fahre die Anzeige auf "Karte öffnen" sich ändert.
und nicht immer "Karte schließen" da steht.
Schönen Gruß
funny2pano