|
|
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 |
<hotspot name="hotspot_id" url="hotspot_ani_black.swf" ath="-152.5692" atv="1.4989" scale="0.5" zoom="false" onover="set(url,thumbnail_image.jpg);tween(scale,1);" onout="set(url,hotspot_ani_black.swf);tween(scale,0.5);" onloaded="resetsize();" onclick="action(showpic,pic_id);" /> <plugin name="pic_id" url="large_image.jpg" visible="false" alpha="0" align="center" height="75%" width="prop" zorder="100" onclick="action(hidepic,pic_id);" /> <action name="showpic"> <!-- first make sure that all others are hidden --> action(hidepic, pic_id); <!-- and now show current one --> set(plugin[%1].enabled,true); set(plugin[%1].visible,true); tween(plugin[%1].alpha, 1, 0.50); </action> <action name="hidepic"> set(plugin[%1].enabled,false); tween(plugin[%1].alpha, 0, 0.25, default, set(plugin[%1].visible,false) ); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BriarB« (15. Januar 2010, 09:49)
|
|
Quellcode |
1 |
<plugin name="editor" url="plugins/editor.swf" /> |
e.g. when the "hotspot_ani_black.swf" is in the same folder as the xml file,1)where you put "hotspot_ani_black.swf" I have substituted a very small .jpg image, this works for the moment and allows the main picture to be loaded. I did this as the swf will not load, I am wondering if you have to but the google maps plugin first? Since I dont need that yet I have gone there. I havent found another swf that will do the job yet, but guess there is one in the woodwork soewhere
|
|
Quellcode |
1 2 3 4 5 |
<hotspot name="spot1" url="hotspot_ani_black.swf" ath="0" atv="0" onclick="loadpano(pano2.xml, null, MERGE, BLEND(1));" /> |
is the path of the editor.swf correct?2)I put the <plugin name="editor" url="plugins/editor.swf" /> into my xml file, along with the actual swf into the folder, but no luck, I am wondering what else I have to do to launch it.
ath / atv are the spherical coordinations in degrees for the hotspot,3)Oh yes, the statement ath="250" atv="0.4989"....ath is easy, it moves the spot sideways, I got that. But what does atv do? I have altered the figure but it seems to have no effect...?
|
|
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 |
<krpano version="1.0.8" onstart="loadscene(scene1);"> <action name="showpic"> action(hidepic, %1); set(plugin[%1].enabled,false); set(plugin[%1].visible,true); tween(plugin[%1].alpha, 1, 0.50); </action> <action name="hidepic"> set(plugin[%1].enabled,false); tween(plugin[%1].alpha, 0, 0.25, default, set(plugin[%1].visible,false) ); </action> <scene name="scene1" onstart="action(showpic,pic_id);"> <plugin name="pic_id" url="images/scene1.jpg" visible="false" alpha="0" align="center" height="100%" width="prop" zorder="1" /> <hotspot name="hs2" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" onclick="loadscene(scene2)" details="8" effect="" flying="0" inverserotation="false" usecontentsize="false" > <point ath="-10.203974" atv="-14.529570" /> <point ath="14.215853" atv="-14.320044" /> <point ath="14.215853" atv="22.470038" /> <point ath="-10.388858" atv="22.925972" /> </hotspot> </scene> <scene name="scene2" > <view hlookat="180" vlookat="5" fovtype="MFOV" fov="53" maxpixelzoom="1.0" fovmax="100" /> <preview type="CUBESTRIP" url="images/scene2.jpg" /> <image type="CUBE" multires="true" tilesize="4000"> <level tiledimagewidth="1024" tiledimageheight="1024"> <left url="images/scene2-O.jpg" /> <front url="images/scene2-N.jpg" /> <right url="images/scene2-E.jpg" /> <back url="images/scene2-S.jpg" /> <up url="images/scene2-H.jpg" /> <down url="images/scene2-B.jpg" /> </level> </image> <hotspot name="img2" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="0" fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700" onclick="action(showpic,pic_id2);" details="8" effect="" flying="0" inverserotation="false" usecontentsize="false" > <point ath=" 18.0535" atv=" 44.2088" /> <point ath=" 31.9796" atv=" 43.2639" /> <point ath=" 38.1003" atv=" 54.5947" /> <point ath=" 16.9682" atv=" 56.1511" /> </hotspot> <hotspot name="img3" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="0" fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700" onclick="action(showpic,pic_id3);" details="8" effect="" flying="0" inverserotation="false" usecontentsize="false" > <point ath=" -8.9218" atv=" 45.5182" /> <point ath=" 5.9200" atv=" 45.8789" /> <point ath=" 9.8247" atv=" 58.5649" /> <point ath="-14.6109" atv=" 57.4699" /> </hotspot> <plugin name="pic_id2" url="images/img2.jpg" visible="false" alpha="0" align="center" height="100%" width="prop" zorder="100" onclick="action(hidepic,pic_id2);" /> <plugin name="pic_id3" url="images/img3.jpg" visible="false" alpha="0" align="center" height="100%" width="prop" zorder="100" onclick="action(hidepic,pic_id3);" /> </scene> </krpano> |
|
|
Quellcode |
5 |
set(plugin[%1].enabled,false); |
|
|
Quellcode |
106 |
onclick="action(hidepic,pic_id2);" |
|
|
Quellcode |
5 |
set(plugin[%1].enabled,true); |