|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 |
<scene name="scene3" onstart="action(startscene);"> <action name="startscene"> set (var1,MyPanoName); </action> <preview type="CUBESTRIP" url="get(var1)/preview.jpg" /> <image> <cube url="get(var1)_%s.jpg"/> </image> </scene> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 |
<?php $panoname = 'test'; ?> <preview type="CUBESTRIP" url="get(var1)/preview.jpg" /> <image> <cube url="<?php echo $panoname; ?>_%s.jpg"/> </image> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 |
<scene name="scene3" onstart="action(startscene);"> <action name="startscene"> set(var1,MyPanoName); txtadd(preview.url,get(var1),/preview.jpg); txtadd(image.cubestrip.url,get(var1),_%s.jpg); </action> <preview type="CUBESTRIP" url="" /> <image> <cube url=""/> </image> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<scene name="scene3" onstart="startscene(MyPanoName);"> <action name="startscene"> txtadd(preview.url,%1,/preview.jpg); txtadd(image.cubestrip.url,%1,_%s.jpg); </action> <preview type="CUBESTRIP" url="" /> <image> <cube url=""/> </image> </scene> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<scene name="scene3" onstart="startscene(Pano1);"> <action name="startscene"> txtadd(preview.url,%1,/preview.jpg); txtadd(image.cubestrip.url,%1,"/",%1,_%s.jpg); </action> <preview type="CUBESTRIP" url="" /> <image> <cube url=""/> </image> </scene> |
|
|
Quellcode |
1 2 3 4 5 6 |
txtadd(image.cubestrip.url,%1,"/",%1_l.jpg); txtadd(image.cubestrip.url,%1,"/",%1_f.jpg); txtadd(image.cubestrip.url,%1,"/",%1_r.jpg); txtadd(image.cubestrip.url,%1,"/",%1_b.jpg); txtadd(image.cubestrip.url,%1,"/",%1_u.jpg); txtadd(image.cubestrip.url,%1,"/",%1_d.jpg); |
...|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<scene name="scene3" onstart="startscene(Pano1);"> <action name="startscene"> txtadd(preview.url,%1,/preview.jpg); txtadd(image.cube.url,%1,/,%1,_%s.jpg); </action> <preview type="CUBESTRIP" url="" /> <image> <cube url=""/> </image> </scene> |
Hi,
to be exact - there is a possibility to use variables inside urls - but only when these variables were defined BEFORE the current xml or scene was loaded - that means these variables must be defined/set either in the HTML file - or before a loadpano() or loadscene() call,
see here for details:
Questions about flash caching
best regards,
Klaus