You are not logged in.

berto36

Beginner

  • "berto36" started this thread

Posts: 8

Location: Pamplona, Spain

  • Send private message

1

Thursday, March 31st 2011, 11:23am

Problem with fullscreen button back if using "onenterfullscreen" event

Hi,
In my tour, I want to switch on/off the logo depending of the fullscreen mode. But if I enter on fullscreen mode the buttton for fullscreen doesn't work. It only works in not fullscreen mode. I can see the button but if I click on it nothing happens. If I remove the "onenterfullscreen" event the button works well.
This is the code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 <events 
	onenterfullscreen="cosas_on();"
	onexitfullscreen="cosas_off();"
  />
  
  <action name="cosas_on">
	set(plugin[logo].visible,true);
  </action>
  
<action name="cosas_off">
	set(plugin[logo].visible,false);
  </action>

  <plugin name="logo"
      	url="images/logo_EV.png"
      	align="rightbottom"
      	x="10"
      	y="10"
      	visible="false"
  />

This post has been edited 2 times, last edit by "berto36" (Mar 31st 2011, 5:06pm)


VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Thursday, March 31st 2011, 10:29pm

we need to see the button code also.

berto36

Beginner

  • "berto36" started this thread

Posts: 8

Location: Pamplona, Spain

  • Send private message

3

Friday, April 1st 2011, 4:48am

I used the droplet "MAKE PANO (MULTIRES) droplet.bat", so the code is the default in the "defaultskin.xml":

Source code

1
2
	<plugin name="openfs"   devices="desktop|tablet" align="bottom" x="+160" y="10" style="button" crop="280|0|40|40" onovercrop="280|40|40|40" ondowncrop="280|80|40|40" onhover="showtext(Fullscreen, buttonstyle);"  	onclick="set(fullscreen,true);"  visible="true"  />
	<plugin name="closefs"  devices="desktop|tablet" align="bottom" x="+160" y="10" style="button" crop="320|0|40|40" onovercrop="320|40|40|40" ondowncrop="320|80|40|40" onhover="showtext(Exit Fullscreen,buttonstyle);"  onclick="set(fullscreen,false);" visible="false" />

HansNyb

Professional

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

4

Friday, April 1st 2011, 7:58am

Where is the event that makes the exit fullscreen button (closefs) become visible. Did you delete it and echanged it with your event

Hans

berto36

Beginner

  • "berto36" started this thread

Posts: 8

Location: Pamplona, Spain

  • Send private message

5

Friday, April 1st 2011, 1:42pm

Ok.
Solved. I've removed my 'events' section and I've included the call to the both functions in the 'events' section in "defaultskin.xml".

Thanks a lot. Without your help I wouldn't found the solution.

Regards.

Roberto