Hi,
I thought I had my current project pretty much sorted but I now 'somehow' have to load up some text when i click on one of the markers on a floor plan. The PLUGIN marker is shown below and simply loads the 360 shot of that location. I tried using the showtext feature as you can see below but the layout out is hard work and I need to have commas in the text. This of course crashes the code unless I use the single quotes ' text goes here, and here' but the formatting is then lost and the small paragraph of text appears on just one line and pushed way left of the 'showtext' window. The rest just goes off the viewer and disappears. If I could somehow make it use commas and stay in the middle of the screen I would be laughing.
<plugin name="marker_1"
url="images/marker_green.png"
keep="true"
zorder="99"
parent="map"
align="lefttop"
edge="center"
x="344"
y="314"
alpha="0"
visible="false"
onover="action(fadein,mainentrance);"
onout="action(fadeout,mainentrance);"
onclick="loadpano(01.xml,null,KEEPPLUGINS,BLEND(1)); showtext(Main Entrance - [br] This is the Main Entrance to the building[br]and the rest of the text goes here., infostyle); set(plugin[hideplan].visible,false); set(plugin[showplan].visible,true); action(hidewholeplan);"
/>
Display More
The infostyle is in the global.xml
<textstyle name="infostyle" origin="top" edge="top" yoffset="20" textalign="left" background="true" backgroundcolor="0x7aa0bf" border="false" font="Arial" fontsize="15" textcolor="0xFFFFFF" bold="true" effect="glow(0xFFFFFF,0.7,4,2);dropshadow(2,10,0x000000,3,1);" showtime="12" fadetime="3.0" />
Been looking at the Textfield plugin with it's html options but have to find a way of incorporating the demo code below into my 'Marker_1' plugin code above. I also really want the text to appear just for 10 seconds and then fade away so the viewer can look around the loaded 360 shot. If i have to, incluse a 'Close window' button but the fade seems better as there are 25 X 360 degree shots in the viewer.
<plugin name="htmltext" url="plugins/textfield.swf"
origin="center"
width="500" height="300"
x="0" y="0"
html="data:htmldata1"
css="data:cssdata1"
borderwidth="1"
bordercolor="0xFFFFFF"
backgroundcolor="0xFFFFFF"
selectable="false"
autosize="center"
/>
<data name="htmldata1">
<p align="center">
<font face="times" size="+4">
<b>Hello from Actionscript HTML</b>
</font>
</p>
<a href="event:action(loadpano);">
<img src="images/flower.png" />
</a>
<b>bold</b> and commas ,,,,,,,,<br/>
<i>italic</i><br/>
<u>underlined</u><br/>
<br/>
</data>
<data name="cssdata1">
a { text-decoration:underline; font-weight:bold; }
a:hover { color:#885500; }
</data>
Display More
Any advice and pointers is greatly appreciated. The markers are PLUGINS positioned on a floor plan.
Many thanks,
Andrew