You are not logged in.

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

1

Wednesday, June 17th 2015, 9:04pm

Introtext nur beim Start anzeigen

Hallo Leute,

ich möchte beim Start der Tour einen Infotext zeigen. Dieser soll aber nicht mehr angezeigt werden wenn man erneut den Raum betritt.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	<layer name="introtext" url="textfield.png" align="center" x="0" y="0" width="600" height="300" scale9grid="6|6|268|188" visible="true" onclick="set(layer[introtext].visible, false);">

		<layer name="textmask" type="container" align="lefttop" x="5" y="5" width="-30" height="-10" maskchildren="true">
			<layer name="textscroller" url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js" mwheel="true" direction="v" overscroll="0" align="lefttop" width="100%" height="100%" onscroll="if(hoverflow GT 0, div(yp,toverflow,hoverflow);Math.min(yp,1);Math.max(yp,0); copy(th,layer[scrollbar].pixelheight);sub(th,layer[scrollup].pixelheight);sub(th,layer[scrolldown].pixelheight);sub(th,layer[scrollslider].pixelheight); mul(yp,th);add(yp,layer[scrollup].pixelheight); copy(layer[scrollslider].y,yp); );">
				<layer name="text" url="%SWFPATH%/plugins/textfield.swf" align="lefttop" x="0" y="0" width="100%" autoheight="true" background="false" border="false" onautosized="copy(layer[textscroller].height, height);"
				   	padding="10 15"
				   	html="data:text"
				   	css="color:#000000; font-family:Arial; font-size:12px;"
					   onclick="set(layer[textfield].visible, false);"
				   	/>
			</layer>
		</layer>
	</layer>

	<data name="text">
		Das ist ein Testtext! <br/>
		Das ist ein Testtext!
	</data>


Hier wird der Text jedes mal angezeigt wenn man den Raum betritt.

Danke schon mal für die Antworten.

2

Thursday, June 18th 2015, 8:40am

Hi,

hier eine Möglichkeit:

Source code

1
2
3
4
5
6
<layer name="introtext"
       ...
       visible="false"
       onloaded="if(introimage_done !== true, set(visible,true));"
       onclick="set(introimage_done,true); set(visible,false);"
       />


Schöne Grüße,
Klaus

J.J.

Beginner

  • "J.J." started this thread

Posts: 35

Location: Eisenstadt

Occupation: Systemadministrator

  • Send private message

3

Friday, July 3rd 2015, 9:12am

Danke! Funktioniert so.

Similar threads