Hallo,
ich wollte nach den Beispielen einen "mappoint" mit einem tooltip versehen, was ich auch grundsätzlich hinkriege.
Leider verschwindet der Text nach der onklick-action nicht mehr, wenn die neue scene geladen wird.
Kann mir da jemand einen Tipp geben?
Danke und Gruß
MIchael
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<style name="tooltip" onover="copy(layer[tooltip].html, tooltip);
set(layer[tooltip].visible, true); tween(layer[tooltip].alpha, 1.0, 0.5);
asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
onout="tween(layer[tooltip].alpha, 0.0, 0.25, default,
set(layer[tooltip].visible,false), copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"/>
<layer name="tooltip" keep="true" url="%SWFPATH%/plugins/textfield.swf" parent="STAGE" visible="false" alpha="0" enabled="false"
align="lefttop" edge="bottom" oy="-2" width="200" autoheight="true" background="false" backgroundcolor="0xFFFFFF" backgroundalpha="1.0"
border="false" bordercolor="0x000000" borderalpha="1.0" borderwidth="1.0" roundedge="0" shadow="0.0" shadowrange="4.0"
shadowangle="45" shadowcolor="0x000000" shadowalpha="1.0" textshadow="1" textshadowrange="6.0" textshadowangle="90" textshadowcolor="0x000000" textshadowalpha="1.0"
css="text-align:center; color:#99ccff; font-family:Arial; font-size:14px;" html=""/>
<plugin name="spot_1" url="./img/mappoint.png" keep="false" parent="map" style="tooltip"
tooltip="TextText"
x="140"
y="150"
zorder="100"
onclick="loadscene(scene_1,null,MERGE,BLEND(1));"
/>
|