Sie sind nicht angemeldet.

1

Donnerstag, 4. März 2010, 11:18

multiple combobox

Hi every body,

I really have trouble with combobox as soon as i want 2 or more combobox. I've read the different topics and I have tested many different solutions but it doesn't run if the flash player release is under 10,0,22,87
This is annoying because many people have the 9,XXX release and it is allways a problem to ask pleople to upload and install a new flash player release.

My purpose is to have one combobox for panoramics and another for still pictures as here in first page : www.geopanoramiques.com
The combo on the left doesn't run properly under the 10,0,22 release, it seems that flash doesn't recognise it.

does some one have a peace of xml running properly with two comboboxes ?

thanks.
stephane

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Donnerstag, 4. März 2010, 11:53

Quellcode

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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<plugin name="combobox1"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="50" 
        y="10" 
        width="100"
        keep="true"
        onloaded="action(setupitems1);"
		zorder="100"
		
        />
	
<action name="setupitems1">
    removeall();
    additem(Culinair, action(Culinair,null,MERGE,BLEND(1)) );
    additem(de Admiraal, action(de Admiraal,null,MERGE,BLEND(1)) );
    additem(Delicious, action(Delicious,null,MERGE,BLEND(1)) );
</action>



<action name="de Admiraal">
    loadpano(1001.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s1001);
        plugin[maps].pantospot(s1001);
</action>

<action name="Delicious">
    loadpano(49.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s49);
        plugin[maps].pantospot(s49);
</action>





<plugin name="combobox2"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="170" 
        y="10" 
        width="180"
        keep="true"
        onloaded="action(setupitems2);"
		zorder="99"
		
        />
	
<action name="setupitems2">
    removeall();
    additem(Musea en Kunst, action(Musea en Kunst,null,MERGE,BLEND(1)) );
    additem(Shunyam, action(Shunyam) );
    additem(Zuiderzee museum, action(Zuiderzee museum,null,MERGE,BLEND(1)) );
	additem(Flessenscheepjes museum, action(Flessenscheepjes museum,null,MERGE,BLEND(1)) );
</action>



<action name="Shunyam">
    loadpano(1010.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s1010);
        plugin[maps].pantospot(s1010);
</action>

<action name="Zuiderzee museum">
    loadpano(26.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s26);
        plugin[maps].pantospot(s26);
</action>

<action name="Flessenscheepjes museum">
    loadpano(6.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s6);
        plugin[maps].pantospot(s6);
</action>
 
 
 

 
	
	
	<plugin name="combobox3"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="370" 
        y="10" 
        width="108"
        keep="true"
        onloaded="action(setupitems3);"
		zorder="99"
		
        />
	
<action name="setupitems3">
    removeall();
    additem(Tips en Nieuw, action(Tips en Nieuw,null,MERGE,BLEND(1)) );
    additem(Drakenrace 1, action(Drakenrace 1,null,MERGE,BLEND(1)) );
	 additem(Drakenrace 4, action(Drakenrace 4,null,MERGE,BLEND(1)) );
	 
	additem(Solid-Sue, action(Solid-Sue,null,MERGE,BLEND(1)) );
	additem(Melkmarkt 1, action(Melkmarkt 1,null,MERGE,BLEND(1)) );
	additem(Tip 1, action(Tip 1,null,MERGE,BLEND(1)) );
    additem(Tip 2, action(Tip 2,null,MERGE,BLEND(1)) );
	additem(Tip 3, action(Tip 3,null,MERGE,BLEND(1)) );
	additem(Tip 4, action(Tip 4,null,MERGE,BLEND(1)) );
	additem(Tip 5, action(Tip 5,null,MERGE,BLEND(1)) );
	additem(Tip 6, action(Tip 6,null,MERGE,BLEND(1)) );
	additem(Tip 7, action(Tip 7,null,MERGE,BLEND(1)) );
	additem(Tip 8, action(Tip 8,null,MERGE,BLEND(1)) );
	additem(Tip 9, action(Tip 9,null,MERGE,BLEND(1)) );
additem(Tip 10, action(Tip 10,null,MERGE,BLEND(1)) );
</action>



<action name="Drakenrace 1">
    loadpano(35.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s35);
        plugin[maps].pantospot(s35);
</action>


<action name="Drakenrace 4">
    loadpano(46.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s46);
        plugin[maps].pantospot(s46);
</action>


<action name="Solid-Sue">
    loadpano(37.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s37);
        plugin[maps].pantospot(s37);
</action>


<action name="Melkmarkt 1">
    loadpano(36.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s36);
        plugin[maps].pantospot(s36);
</action>




<action name="Tip 1">
    loadpano(24.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s24);
        plugin[maps].pantospot(s24);
</action>

<action name="Tip 2">
    loadpano(31.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s31);
        plugin[maps].pantospot(s31);
</action>

<action name="Tip 3">

 loadpano(30.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s30);
        plugin[maps].pantospot(s30);

    
</action>
    
	<action name="Tip 4">
   loadpano(4.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s4);
        plugin[maps].pantospot(s4);
</action>

<action name="Tip 5">
    loadpano(9.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s9);
        plugin[maps].pantospot(s9);
</action>

<action name="Tip 6">
    loadpano(7.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s7);
        plugin[maps].pantospot(s7);
</action>

<action name="Tip 7">
    loadpano(26.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s26);
        plugin[maps].pantospot(s26);
</action>

<action name="Tip 8">
    loadpano(27.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s27);
        plugin[maps].pantospot(s27);
</action>


<action name="Tip 9">
    loadpano(42.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s42);
        plugin[maps].pantospot(s42);
</action>


<action name="Tip 10">
    loadpano(44.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s44);
        plugin[maps].pantospot(s44);
</action>




<plugin name="combobox4"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="498" 
        y="10" 
        width="110"
        keep="true"
        onloaded="action(setupitems4);"
		zorder="100"
		
        />
	
<action name="setupitems4">
    removeall();
    additem(Instellingen, action(Instellingen,null,MERGE,BLEND(1)) );
    additem(VVV, action(VVV,null,MERGE,BLEND(1)) );
    additem(Gemeente, action(Gemeente,null,MERGE,BLEND(1)) );
	additem(Postkantoor, action(Postkantoor,null,MERGE,BLEND(1)) );
	additem(Openbaarvervoer, action(Openbaarvervoer,null,MERGE,BLEND(1)) );
</action>

<action name="VVV">
    loadpano(19.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s31);
        plugin[maps].pantospot(s31);
</action>

<action name="Gemeente">
    loadpano(17.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s17);
        plugin[maps].pantospot(s17);
</action>

<action name="Postkantoor">
    loadpano();
	plugin[maps].activatespot();
        plugin[maps].pantospot();
</action>




<action name="Openbaarvervoer">
    loadpano(31.xml,null,MERGE,BLEND(1));
	 plugin[maps].activatespot(s31);
        plugin[maps].pantospot(s31);
</action>






<plugin name="combobox5"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="628" 
        y="10" 
        width="125"
        keep="true"
        onloaded="action(setupitems5);"
		zorder="100"
		
        />
	
<action name="setupitems5">
    removeall();
    additem(Evenementen, action(Evenementen,null,MERGE,BLEND(1)) );
    additem(Waterweken, action(Waterweken,null,MERGE,BLEND(1)) );
	additem(Waterweken 2, action(Waterweken 2,null,MERGE,BLEND(1)) );
	additem(Waterweken 3, action(Waterweken 3,null,MERGE,BLEND(1)) );
	additem(Waterweken 4, action(Waterweken 4,null,MERGE,BLEND(1)) );
	 additem(Sprookjes Wonderland, action(Sprookjes Wonderland,null,MERGE,BLEND(1)) );
    additem(Jazzfestival, action(Jazzfestival,null,MERGE,BLEND(1)) );
</action>



<action name="Waterweken">
    loadpano(29.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s29);
        plugin[maps].pantospot(s29);
</action>


<action name="Waterweken 2">
    loadpano(35.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s35);
        plugin[maps].pantospot(s35);
</action>

<action name="Waterweken 3">
    loadpano(47.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s47);
        plugin[maps].pantospot(s47);
</action>

<action name="Waterweken 4">
    loadpano(48.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s48);
        plugin[maps].pantospot(s48);
</action>


<action name="Sprookjes Wonderland">
    loadpano(28.xml,null,MERGE,BLEND(1));
	plugin[maps].activatespot(s28);
        plugin[maps].pantospot(s28);
</action>

<action name="Jazzfestival">
    loadpano();
</action>







<plugin name="combobox6"
        url="../P/plugins/combobox.swf" 
        align="lefttop" 
        x="772" 
        y="10" 
        width="140"
        keep="true"
        onloaded="action(setupitems6);"
		zorder="100"
		
        />
	
<action name="setupitems6">
    removeall();
    additem(Winkels en Bedrijven, action(Winkels en Bedrijven,null,MERGE,BLEND(1)) );
    additem(MITH, action(MITH,null,MERGE,BLEND(1)) );
    additem(ESJA, action(ESJA,null,MERGE,BLEND(1)) );
</action>



<action name="MITH">
    loadpano();
</action>

<action name="ESJA">
    loadpano();
</action>



this is 6 combo boxes..


These are old codes from me... but it works... hope it helps..

Cheers
Tuur *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Donnerstag, 4. März 2010, 11:54

and this is an button that opens and closes the combo boxes

Quellcode

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
 <plugin name="sluitenlogo"
 
 url="../P/buttons/sluiten.png"
	        keep="true"
 	        visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="1.0" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge=""
 	        x="2" y="4"
 	        width="" height=""
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover="showtext(Sluiten)"
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(close combo);"
	        />

	<action name="close combo">
	
	tween(plugin[combobox1].y,-50,1);
	tween(plugin[combobox2].y,-50,1);
	tween(plugin[combobox3].y,-50,1);
	tween(plugin[combobox4].y,-50,1);
	tween(plugin[combobox5].y,-50,1);
	tween(plugin[combobox6].y,-50,1);
	
	set(plugin[sluitenlogo].visible,false);
	set(plugin[comboinfoopenlogo].visible,true);
	</action>




	<plugin name="comboinfoopenlogo"
 
 url="../P/buttons/comboinfo.png"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="1.0" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge=""
 	        x="2" y="4"
 	        width="" height=""
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover="showtext(Extra informatie en mogelijkheden)"
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(open combo);"
	        />


	<action name="open combo">
	
	tween(plugin[combobox1].y,10,0.5);
	tween(plugin[combobox2].y,10,0.5);
	tween(plugin[combobox3].y,10,0.5);
	tween(plugin[combobox4].y,10,0.5);
	tween(plugin[combobox5].y,10,0.5);
	tween(plugin[combobox6].y,10,0.5);
	
	set(plugin[sluitenlogo].visible,true);
	set(plugin[comboinfoopenlogo].visible,false);
	
	</action>

4

Montag, 8. März 2010, 18:38

thank's, it seem's to be ok for me now.
thank's a lot.

stephane

5

Donnerstag, 19. Januar 2012, 11:09

combobox close combobox list

Hi,

what would be the code for onout closelist on the combobox.

i did try onout="closelist();" and it works but, as soon as i move down the mouse pointer to the list, it closes, so i cannot select on the drop down menu.

Any ideas?

Thanks.

6

Samstag, 21. Januar 2012, 09:09

Anyone please can help me out of the above? :(

Ähnliche Themen