You are not logged in.

1

Tuesday, May 18th 2021, 2:44pm

add background - popup image

Very beginner question ! but can't figured out...

-> Just want to add some background overlay behind my pop image...

if you had a clue for me.. *cool*

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	<action name="open">
	set(plugin[%1].visible,true);
	tween(plugin[%1].alpha,1);
 	</action>

	<action name="close">
	tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );
	</action>

<scene>
....

<!-- HOTSPOTS! -->

 <!-- 1 -->
<hotspot name="image"
 style="skin_hotspotstyle"
 ath="-15.519" atv="40.127"
 alpha="0.3"
 onover="tween(alpha,1);tween(scale,1);"
 onout="tween(alpha,1);tween(scale,1);"
 onclick="action(open,openimage, overlay);"
/>


<layer name="overlay" type="container"
 bgcolor="0x000000" 
 bgalpha="0.5"
 align="center"
 bg="true"
 width="100%" height="100%"
 visible="false"
 zorder1="0"
 onclick="close(get(name));"
/>


<plugin name="openimage"
 url="my_image.png"
 width="100%" height="prop"
 align="center"
 scale="1" alpha="0"
 zorder1="1"
 onclick="close(get(name));"
/>

</scene>

jeromebg

Professional

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

2

Tuesday, May 18th 2021, 2:50pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<hotspot name="image"
 style="skin_hotspotstyle"
 ath="-15.519" atv="40.127"
 alpha="0.3"
 onover="tween(alpha,1);tween(scale,1);"
 onout="tween(alpha,1);tween(scale,1);"
 onclick="open(openimage);open(overlay)"
/>


<layer name="overlay" type="container"
 bgcolor="0x000000" 
 bgalpha="0.5"
 align="center"
 bg="true"
 width="100%" height="100%"
 visible="false"
 zorder1="0"
 onclick="close(openimage);close(overlay)"
/>


<plugin name="openimage"
 url="my_image.png"
 width="100%" height="prop"
 align="center"
 scale="1" alpha="0"
 zorder1="1"
 onclick="close(openimage);close(overlay);"
/>

3

Tuesday, May 18th 2021, 3:16pm

arrrrh *whistling*


Source code

1
;close(overlay)"



thank you !!!
all perfect