You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

1

Thursday, December 30th 2010, 11:02pm

Scrollthumbs plugin disables combobox ?

Hi all ^^
I've Integrated the scrollthumb plugin, and have two problems ^^
Firstable it disables the combobox plugin,
and the other problem is that it's launching when event occur like loadpano O_o
Here's the code:

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
<krpano version="1.0.8" logkey="false">
   
    <!--************** Plugins et données KrPano **************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" keep="true"/>
	<include url="scroll.xml" />
  
  <!--************** Ouvre le premier pano ******************************************************-->
    <include url="ChateauPC2.xml"/>
 
    <!--************** Liste des panoramas **********************************************************-->
    <plugin name="combobox" parent="menutop" visible="true" url="ChateauPCdata/graphics/combobox.swf" keep="true" align="lefttop" x="120" y="30"/>
    <action name="combobox:La Cuverie">loadpano(ChateauPC1.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:La Salle de Dégustation">loadpano(ChateauPC0.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Le Vignoble">loadpano(ChateauPC2.xml,NULL,NULL,BLEND(1));</action>
   
   
	

	<!--************** Action du bouton vin **************************************************-->
    <plugin name="vin" url="ChateauPCdata/graphics/hover.png" align="righttop" onclickA="set(plugin[scroll].visible, true); set(onclick, onclickB() );" onclickB="set(plugin[scroll].visible, false); set(onclick, onclickA() );" onclick="onclickA();" scale="1" alpha="0"  keep="true" onhover="tween(alpha,0.6);" onout="tween(alpha,0);"  x="264" y="67"/>


</krpano>


And the scroll.xml:

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
<krpano version="1.0.8" logkey="false">
	
	<plugin name="scroll" url="thumbs/scroll.png" align="center" blendmode="normal" visible="false" zorder="200" />
	
	<plugin name="thumbnails" 
			parent="scroll"
			url="as3Thumbsforkrpano.swf?TheXML=gallery1.xml" 
			keep="true"
			align="center"
			zorder="800"
			visible="true"
			capture="false" 


			/>
			
	<action name="1996">
	</action>


	<action name="1997">
	</action>
	
</krpano>


I don't understand why it squeezes the combobox *confused*
I use the plugin "scroll" to contain the thumbnails plugin, when I click on the "vin" plugin everythings works perfectly,
but when I load another pano (with an hotspot for example), it shows the "thumbnails" plugin and the button "vin" doesn't work anymore ^^

Does someone has an idea?

Thanks in advance ;-)
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

2

Thursday, December 30th 2010, 11:09pm

Okay I'm stupid ^^

The combobox doesn't work, that's not solved ^^
But I just forgot to add keep="true" on the scroll plugin
to hide the thumbnails plugin ^^

Thanks all ^^
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

This post has been edited 1 times, last edit by "Yomas" (Dec 30th 2010, 11:39pm)


3

Thursday, December 30th 2010, 11:48pm

Can you provide a link, perhaps with the editor included??? What happens to the combo box? does it not appear? Does it just not work???

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

4

Thursday, December 30th 2010, 11:53pm

Hi Jarredja ^^
Thanks for replying !!
The combobox appears normaly, but doesn't loadpano on click !!
I can't provide example cause I work on local *wacko*
I really don't undestand why...
Here's the complete code:

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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<krpano version="1.0.8" logkey="false">
   
    <!--************** Plugins et données KrPano **************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" keep="true"/>
	<include url="map.xml" />
	<include url="scroll.xml" />
 
 
    <!--************** Ouvre le premier pano ******************************************************-->
    <include url="ChateauPC2.xml"/>

	<plugin name="soundinterface" url="ChateauPCdata/graphics/soundinterface.swf" keep="true"/>
	
	
	<!--************** Polices *********************************************************************-->
    <textstyle name="DEFAULT" alpha="1" background="false" bold="true" border="false" effect="glow(0x000000,0.7,4,2);dropshadow(4,45,0x000000,4,1);" font="Vivaldi" fontsize="20" italic="false" textcolor="0x585858"/>
 
    <textstyle name="menu" alpha="1" background="false" yoffset="-10" bold="false" border="false"  font="High Tower Text" fontsize="14" italic="false" textcolor="0x585858"/>
	
	<textstyle name="infostyle" background="false" font="High Tower Text" fontsize="18" bold="false" border="false" textalign="center" xoffset="20" yoffset="-10" textcolor="0xffffff" effect="glow(0x000000,0.7,4,2);" fadetime="0" fadeintime="0.5" />	
  
  
    <!--************** Reflets ********************************************************************-->
    <lensflareset name="DEFAULT" url="ChateauPCdata/graphics/flares.jpg"/>
	
	
	<!--************** Menu Haut **************************************************-->
	<plugin 
		name="menutop"
		url="ChateauPCdata/graphics/menutop.png"
		keep="true"
		visible="true"
		enabled="true"
		handcursor="false"
		capture="false"
		zorder="1"
		alpha="1.00"
		blendmode="normal"
		smoothing="true"
		align="top"
		edge="centre"
		x="0" y="0"
		ox="0" oy="45"
		rotate="0"
		scale="1"
	/>


	<!--************** Menu Bas **************************************************-->
	<plugin 
		name="menu"
		url="ChateauPCdata/graphics/menubas.png"
		keep="true"
		visible="true"
		enabled="true"
		handcursor="false"
		capture="false"
		zorder="1"
		alpha="1.00"
		blendmode="normal"
		smoothing="true"
		align="bottom"
		edge="bottom"
		x="0" y="0"
		ox="0" oy="0"
		rotate="0"
		scale="1"
	/>
  
  
    <!--************** Menu ***********************************************************************-->
    <plugin name="in" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectorz,-1);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Zoom +, menu);" onup="set(movevectorz,0);" url="ChateauPCdata/graphics/menu/menu0.png" x="410" y="15"/>

    <plugin name="out" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectorz,+1);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Zoom -, menu);" onup="set(movevectorz,0);" url="ChateauPCdata/graphics/menu/menu1.png" x="370" y="15"/>

    <plugin name="left" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectorx,-1);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Gauche, menu);" onup="set(movevectorx,0);" url="ChateauPCdata/graphics/menu/menu2.png" x="330" y="15"/>
 
    <plugin name="right" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectorx,+1);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Droite, menu);" onup="set(movevectorx,0);" url="ChateauPCdata/graphics/menu/menu3.png" x="250" y="15"/>
 
    <plugin name="up" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectory,-1);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Haut, menu);" onup="set(movevectory,0);" url="ChateauPCdata/graphics/menu/menu4.png" x="290" y="15"/>
 
    <plugin name="down" align="bottomright" scale="0.6" parent="menu" keep="true" ondown="set(movevectory,+1);" onout="tween(scale,0.6)" onhover="tween(scale,1); showtext(Bas, menu);" onup="set(movevectory,0);" url="ChateauPCdata/graphics/menu/menu5.png" x="210" y="15"/>
  
    <plugin name="home" align="bottomright" scale="0.6" parent="menu" blendmode="normal" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Vue par défaut, menu);" url="ChateauPCdata/graphics/menu/menu6.png" x="170" y="15"/>
 
    <plugin name="autorotation" align="bottomright" scale="0.6" parent="menu" blendmode="normal" keep="true" onclick="switch(autorotate.enabled);" onout="tween(scale,0.6);" onhover="tween(scale,1); showtext(Autorotation, menu);" url="ChateauPCdata/graphics/menu/menu9.png" x="130" y="15"/>

    <plugin name="musique" align="bottomright" scale="0.7" parent="menu" blendmode="normal" keep="true" onclick="switch(soundinterface.mute);" onout="tween(scale,0.7);" onhover="tween(scale,1); showtext(Musique, menu);" url="ChateauPCdata/graphics/menu/menu10.png" x="90" y="15"/>
 
  
  
    <!--************** Liste des panoramas **********************************************************-->
    <plugin name="combobox" parent="menutop" visible="true" url="ChateauPCdata/graphics/combobox.swf" keep="true" align="lefttop" x="120" y="30"/>
    <action name="combobox:La Cuverie">loadpano(ChateauPC1.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:La Salle de Dégustation">loadpano(ChateauPC0.xml,NULL,NULL,BLEND(1));</action>
    <action name="combobox:Le Vignoble">loadpano(ChateauPC2.xml,NULL,NULL,BLEND(1));</action>
   
  
  
    <!--************** Son d'ambiance **************************************************************-->
    <action name="playbackgroundsound">if(%1 == none,stopallsounds();set(plugin[soundinterface].background,%1),if(plugin[soundinterface].background == %1,,stopallsounds();playsound(auto,%1,%2);set(plugin[soundinterface].background,%1)));</action>
  
    <action name="closeglobalobjects" />
	
	
	
	
	<!--************** Action du bouton d'accueil **************************************************-->
    <plugin name="accueil" url="ChateauPCdata/graphics/hover.png" align="lefttop" onclickA="set(plugin[fond].visible, true); set(onclick, onclickB() ); set(plugin[histoire].onclick, onclickA() ); set(plugin[maptext].onclick, onclickB() );" onclickB="set(plugin[fond].visible, false); set(onclick, onclickA() ); set(plugin[histoire].onclick, onclickA() ); set(plugin[maptext].onclick, onclickA() );" onclick="onclickA();" scale="1" alpha="0" parent="menutop" keep="true" onhover="tween(alpha,0.6);" onout="tween(alpha,0);"  x="157" y="67"/>
	
	<plugin name="combotext" handcursor="false" parent="menutop" align="lefttop" x="120" y="15" scale="1" blendmode="normal" keep="true" visible="true" url="ChateauPCdata/graphics/combotext.png" />
	
	<plugin name="maptext" handcursor="true" parent="menutop" align="righttop" x="120" y="15" scale="1" blendmode="normal" keep="true" visible="true" url="ChateauPCdata/graphics/maptext2.png" onclickA="set(onclick, onclickB() ); set(plugin[fond].visible, true); set(plugin[accueil].onclick, onclickB() ); set(plugin[histoire].onclick, onclickA() );" onclickB="set(onclick, onclickA() ); set(plugin[fond].visible, false); set(plugin[accueil].onclick, onclickA() ); set(plugin[histoire].onclick, onclickA() );" onclick="onclickA();" />

	
	
	
	<!--************** Action du bouton histoire **************************************************-->
    <plugin name="histoire" url="ChateauPCdata/graphics/hover.png" align="lefttop" onclickA="js(GB_showCenter(Un Peu d Histoire, html/histoire.html,600,1024)); set(onclick, onclickB() );set(plugin[fond].visible, false); set(plugin[accueil].onclick, onclickA() );  set(plugin[maptext].onclick, onclickA() );" onclickB="set(onclick, onclickA() );set(plugin[fond].visible, false); set(plugin[accueil].onclick, onclickA() );  set(plugin[maptext].onclick, onclickA() );" onclick="onclickA();" scale="1" alpha="0" parent="menutop" keep="true" onhover="tween(alpha,0.6);" onout="tween(alpha,0);"  x="264" y="67"/>

	
	
	
	<!--************** Action du bouton vin **************************************************-->
    <plugin name="vin" url="ChateauPCdata/graphics/hover.png" align="righttop" onclickA="set(plugin[scroll].visible, true); set(onclick, onclickB() );" onclickB="set(plugin[scroll].visible, false); set(onclick, onclickA() );" onclick="onclickA();" scale="1" alpha="0" parent="menutop" keep="true" onhover="tween(alpha,0.6);" onout="tween(alpha,0);"  x="264" y="67"/>



</krpano>
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

5

Friday, December 31st 2010, 12:20am

Normal ta combobox est mal configurée/I think the syntax of the combobox isn't good

essayes/try this

Source code

1
2
3
4
5
6
7
8
<plugin name="combobox" parent="menutop" visible="true" url="ChateauPCdata/graphics/combobox.swf" keep="true" align="lefttop" x="120" y="30"onloaded="combo();/>

<action name="combo">
         removeall();
	 additem(La Cuverie,  		loadpano(ChateauPC1.xml,NULL,NULL,BLEND(1)); );
	 additem(La Salle de Dégustation, 	loadpano(ChateauPC0.xml,NULL,NULL,BLEND(1)); );
	 additem(Le Vignoble,    	loadpano(ChateauPC2.xml,NULL,NULL,BLEND(1)); );
</action>

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

6

Friday, December 31st 2010, 12:35am

Salut Job.1 !!
Merci pour ta réponse,
mais cela ne fonctionne pas non plus *cry*
Dès que je supprime le plugin "thumbnails", la combobox fonctionne direct...
???
La po comprendre ^^
Ca pourrait venir d'un conflit entre les deux?
Pourtant les plugins sont bien nommés différemment...
Je continue de chercher ^^
Voilà le code qui gère le plugin thumbnails:

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
<krpano version="1.0.8" logkey="false">
	
	<plugin name="scroll" url="thumbs/scroll.png" align="center" blendmode="normal" visible="false" zorder="200" keep="true" />

	<plugin name="ferme" zorder="1000" x="15" y="15" parent="scroll" align="righttop" scale="0.7" blendmode="normal" keep="true" visible="true" url="ChateauPCdata/graphics/spots/close.png" handcursor="true" onhover="showtext(Fermer, infostyle);" onclick="set(plugin[scroll].visible, false); set(plugin[vin].onclick, onclickA() );" />

	<plugin name="thumbnails" 
			parent="scroll"
			url="as3Thumbsforkrpano.swf?TheXML=gallery1.xml" 
			keep="true"
			align="center"
			zorder="800"
			visible="true"
			capture="false" 
	/>
			
	<action name="1996">
	</action>


	<action name="1997">
	</action>
	
</krpano>


et le gallery.xml:

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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?>

<images>
<thumboptions>
<ScrollSpeed>4</ScrollSpeed>

<thumbW>49</thumbW>
<thumbH>200</thumbH>


<ThumbPadding>40</ThumbPadding>
<ShownThumbs>5</ShownThumbs>

<ThumbOffset>100</ThumbOffset>
<ThumbOffsetY>80</ThumbOffsetY>

<textOffsetX>30</textOffsetX>
<textOffsetY>25</textOffsetY>
<InitialAlpha>.5</InitialAlpha>
<font_type>High Tower Text</font_type>
<font_size>18</font_size>
<font_alpha>1</font_alpha>
<font_color>0x000000</font_color>
<overColor>0x000000</overColor>

</thumboptions>

		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 1996]]></about> </pic>  
	   
	   
		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1997</panoToLoadXml>
              <about><![CDATA[Millésime 1997]]></about> </pic> 
	   
	   
		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 1998]]></about> </pic> 
	   
	   
		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 1999]]></about> </pic> 
			  
		
			  		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 2000]]></about> </pic> 
			  
			  		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 2001]]></about> </pic> 
			  
			  		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 2002]]></about> </pic> 

 
	
  </images>
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

7

Friday, December 31st 2010, 12:41am

A mon avis un problème de parent et children essayes de mettre la combo hors le scroll

tu dois avoir un onclick qui pertube la combo, je vois des onclickA et onclickB ;-)

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

8

Friday, December 31st 2010, 12:50am

Je viens d'essayer de faire un include de la combobox:

Source code

1
2
3
4
5
6
7
8
<krpano version="1.0.8" logkey="false">
   
    <!--************** Plugins et données KrPano **************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" keep="true"/>
	<include url="map.xml" />
	<include url="combobox.xml" />
	<include url="scroll.xml" />
.....


avec la combobox à part:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<krpano version="1.0.8" logkey="false">
    <!--************** Liste des panoramas **********************************************************-->
<plugin name="combobox" parent="menutop" visible="true" url="ChateauPCdata/graphics/combobox.swf" keep="true" align="lefttop" x="120" y="30"onloaded="combo();" />

<action name="combo">
     removeall();
	 additem(La Cuverie, loadpano(ChateauPC1.xml,NULL,NULL,BLEND(1)); );
	 additem(La Salle de Dégustation, loadpano(ChateauPC0.xml,NULL,NULL,BLEND(1)); );
	 additem(Le Vignoble, loadpano(ChateauPC2.xml,NULL,NULL,BLEND(1)); );
</action>   

</krpano>


Marche toujours pas !! *cry*
C'était ça l'idée que tu suggérais?
Là je sèche ^^
Une autre idée ? ;-)
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

9

Friday, December 31st 2010, 12:53am

Ben non je vois pas

Sans moyen de débugger avec la visite pas évident *cry*

Vérifies si tu a la bonne combo par rapport à ta version

10

Friday, December 31st 2010, 1:18am

Could your scrolling thumbs plugin be covering the combo box? try moving the combo box as far away as possible and see if clicking works. Just to test of course.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

11

Friday, December 31st 2010, 1:32am

Oki ^^
Oui ma version de la combobox est la bonne...
En fait le click dessus ouvre la liste des panos, mais quand on choisi dans la liste les panos ne se load pas ...

Jarredja the click on the combobox works and opens the panorama list, but when clicking on the desired pano,
nothing hapens...
When deleting the thumbnail plugin, combobox works perfectly !!

This is really weird ^^
Vraiment bizarre !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

12

Friday, December 31st 2010, 1:44am

I even tested to put a zorder="5000" ...
doesn't work either O_o

Thank all of U for your help !!
Time for me to go to bed ^^

Good night everyone !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

13

Saturday, January 1st 2011, 4:54am

One thing I noticed, you have logkey="false" in all of your xml files. Perhaps you can see an error to give you some direction if you remove this from all of the xml files.

?????

Just remember to add it back afterwards if you wish to have it.


Jarred

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

14

Monday, January 3rd 2011, 12:04pm

Hi all and happy new year !!!

I've just found where is the problem..
I don't really understand why but the actions name of the thumbnails plugin interfers with the combobox somehow..

I've solved it by replacing the action name wich was

Source code

1
2
3
4
		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>1996</panoToLoadXml>
              <about><![CDATA[Millésime 1996]]></about> </pic>


By:

Source code

1
2
3
4
		<pic>
        <thumb>thumbs/1996.png</thumb>
            <panoToLoadXml>s1</panoToLoadXml>
              <about><![CDATA[Millésime 1996]]></about> </pic>


And in my main xml I've updated the name of the action and then it worked perfectly !!

Thanks to all for the help !!!
2011 starts well for now on ^^

I'll publish a version of this tour when finished !!
Untill then I wich you all a very good year and health !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

15

Monday, January 3rd 2011, 12:07pm

Content pour toi !! et bonne année

Oui Kr n'aime pas les chiffres surtout dans les actions

Similar threads