Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<events onresize="customresize();" />
<action name="customresize">
trace('windowsize = ', stagewidth, 'x', stageheight);
trace('areasize = ', area.pixelwidth, 'x', area.pixelheight);
...
<!-- here you could change the size of plugins, e.g.: -->
sub(plugin[map].width, stagewidth, 300);
...
</action>
|
the image goes bigger than the screen whatever size I make it. or if I use a calculation in the plugin|
|
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 |
<action name="show_html_field">
set(plugin[htmltext].y,-1500);
tween(plugin[htmltext].alpha,1,0);
tween(plugin[htmltext].textblur,0,0);
tween(plugin[htmltext].blur,0,0);
set(plugin[htmltext].visible,true);
set(plugin[htmltext].enabled,true);
tween(plugin[htmltext].y,0);
sub(plugin[htmltext].height,area.pixelheight,200);
mul(calcwidth,plugin[htmltext].height,0.6667);
trace('panoheight',area.pixelheight, 'textboxheight', plugin[htmltext].height,'textboxwidth',calcwidth);
</action>
<plugin name="htmltext" url="../textfield.swf"
align="top" visible="false"
html="data:html1"
css="data:css1"
roundedge="0"
borderwidth="1"
bordercolor="0xFFFFFF"
backgroundcolor="0xFFFFFF"
background="false"
selectable="false"
shadow="5"
autosize="center"
ondown="set(control.usercontrol,off);"
onup="set(control.usercontrol,all);"
capture="false"
/>
<data name="html1">
<img src="../images/0002b.jpg" width="500" /><p/>
|
must be something simple but I can't see it. Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »michael crane« (6. März 2010, 13:05)
|
|
Quellcode |
1 2 3 4 5 |
<events onresize="customresize();"/>
<action name="customresize">
trace('xxxxxxxxxxxxxx','areasize = ', area.pixelwidth, 'x', area.pixelheight);
</action>
|
|
|
Quellcode |
1 2 3 4 |
INFO: krpano 1.0.8 beta 8 (build 2009-06-15) INFO: Flashplayer WIN 10,0,42,34 PlugIn INFO: registered to: michael crane INFO: xxxxxxxxxxxxxxareasize = area.pixelwidthxarea.pixelheight |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<action name="show_html_field"> set(plugin[htmltext].y,-1500); tween(plugin[htmltext].alpha,1,0); tween(plugin[htmltext].textblur,0,0); tween(plugin[htmltext].blur,0,0); set(plugin[htmltext].visible,true); set(plugin[htmltext].enabled,true); tween(plugin[htmltext].y,0); sub(plugin[htmltext].height,area.pixelheight,200); mul(plugin[htmltext].width, plugin[htmltext].height,0.666667); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<action name="show_html_field"> set(plugin[htmltext].y,-1500); tween(plugin[htmltext].alpha,1,0); tween(plugin[htmltext].textblur,0,0); tween(plugin[htmltext].blur,0,0); set(plugin[htmltext].visible,true); set(plugin[htmltext].enabled,true); tween(plugin[htmltext].y,0); sub(plugin[htmltext].height,stageheight,200); mul(plugin[htmltext].width, plugin[htmltext].height,0.666667); </action> |
|
|
Quellcode |
1 2 3 4 5 6 |
<data name="htmldata1"> <a href="event:action(hidewindow);"> <img src="../images/burren/0001b.jpg" width="plugin[htmltext].width" height="plugin[htmltext].height"/> </a> <p/> </data> |
|
|
Quellcode |
1 2 3 4 5 6 |
<data name="htmldata1"> <a href="event:action(hidewindow);"> <img src="../images/burren/0001b.jpg" width="get(plugin[htmltext].width)" height="get(plugin[htmltext].height)"/> </a> <p/> </data> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<krpano version="1.0.8" onstart="build_htmldata1();"> .... <action name="build_htmldata1"> set(data[htmldata1].content,'<a href="event:action(hidewindow);"> '); txtadd(data[htmldata1].content, get(data[htmldata1].content), '<img src="../images/burren/0001b.jpg" width="', get(plugin[htmltext].width), '" height="', get(plugin[htmltext].height), '" /></a><p/>'); </action> .... |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (6. März 2010, 23:50)
|
|
Quellcode |
1 2 3 4 5 6 |
<action name="build_htmldata1">
sub(plugin[htmltext].height,stageheight,150);
mul(plugin[htmltext].width, plugin[htmltext].height,0.666667);
txtadd(data[htmldata1].content,,'<a href="event:action(hidewindow);"> <img src="../images/burren/0001b.jpg" width="',get(plugin[htmltext].width),'" height="',get(plugin[htmltext].height),'" /></a><p/>');
trace('data[htmldata1].content = ', get(data[htmldata1].content));
</action>
|
|
|
Quellcode |
1 |
set(plugin[image].url,path_to_your_image) |
|
|
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 |
<krpano version="1.0.8">
<plugin name="thumbnails" url="../as3Thumbsforkrpano.swf?TheXML=gallery1.xml" keep="true" align="bottomleft" x="0" y="0" scale="1" zorder="100"/>
<view hlookat="0" vlookat="0" maxpixelzoom="1.0" />
<display details="22" />
<preview type="CUBESTRIP" url="../images/burren/GraganEast2.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="553">
<level tiledimagewidth="2212" tiledimageheight="2212">
<left url="../images/burren/GraganEast2.tiles/l3_l_%0v_%0h.jpg" />
<front url="../images/burren/GraganEast2.tiles/l3_f_%0v_%0h.jpg" />
<right url="../images/burren/GraganEast2.tiles/l3_r_%0v_%0h.jpg" />
<back url="../images/burren/GraganEast2.tiles/l3_b_%0v_%0h.jpg" />
<up url="../images/burren/GraganEast2.tiles/l3_u_%0v_%0h.jpg" />
<down url="../images/burren/GraganEast2.tiles/l3_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1106" tiledimageheight="1106">
<left url="../images/burren/GraganEast2.tiles/l2_l_%0v_%0h.jpg" />
<front url="../images/burren/GraganEast2.tiles/l2_f_%0v_%0h.jpg" />
<right url="../images/burren/GraganEast2.tiles/l2_r_%0v_%0h.jpg" />
<back url="../images/burren/GraganEast2.tiles/l2_b_%0v_%0h.jpg" />
<up url="../images/burren/GraganEast2.tiles/l2_u_%0v_%0h.jpg" />
<down url="../images/burren/GraganEast2.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="553" tiledimageheight="553">
<left url="../images/burren/GraganEast2.tiles/l1_l_%0v_%0h.jpg" />
<front url="../images/burren/GraganEast2.tiles/l1_f_%0v_%0h.jpg" />
<right url="../images/burren/GraganEast2.tiles/l1_r_%0v_%0h.jpg" />
<back url="../images/burren/GraganEast2.tiles/l1_b_%0v_%0h.jpg" />
<up url="../images/burren/GraganEast2.tiles/l1_u_%0v_%0h.jpg" />
<down url="../images/burren/GraganEast2.tiles/l1_d_%0v_%0h.jpg" />
</level>
</image>
<events onresize="set_plugin_width_height()" />
<action name="load1">
set(plugin[htmltext].url,'../images/burren/0001b.jpg');
show_html_field();
</action>
<action name="load2">
set(plugin[htmltext].url,'../images/burren/0002b.jpg');
show_html_field();
</action>
<action name="load3">
set(plugin[htmltext].url,'../images/burren/0003b.jpg');
show_html_field();
</action>
<action name="load4">
set(plugin[htmltext].url,'../images/burren/0004b.jpg');
show_html_field();
</action>
<action name="load5">
set(plugin[htmltext].url,'../images/burren/0005b.jpg');
show_html_field();
</action>
<action name="load6">
set(plugin[htmltext].url,'../images/burren/0006b.jpg');
show_html_field();
</action>
<action name="load7">
set(plugin[htmltext].url,'../images/burren/0007b.jpg');
show_html_field();
</action>
<action name="load8">
set(plugin[htmltext].url,'../images/burren/0008b.jpg');
show_html_field();
</action>
<action name="load9">
show_html_field();
trace(stageheight);
</action>
<action name="load10">
show_html_field();
trace(stageheight);
</action>
<plugin name="htmltext"
url=""
visible="false"
origin="top"
x="0" y="0"
onclick="hidewindow()"
onloaded="set_plugin_width_height()"
/>
<action name="set_plugin_width_height">
sub(plugin[htmltext].height,stageheight,150);
mul(plugin[htmltext].width, plugin[htmltext].height,0.666667);
</action>
<action name="show_html_field">
set(plugin[htmltext].y,-1500);
tween(plugin[htmltext].alpha,1,0);
tween(plugin[htmltext].textblur,0,0);
tween(plugin[htmltext].blur,0,0);
set(plugin[htmltext].visible,true);
set(plugin[htmltext].enabled,true);
tween(plugin[htmltext].y,0);
</action>
<action name="hidewindow">
tween(plugin[htmltext].blur,20);
tween(plugin[htmltext].alpha,0);
set(plugin[htmltext].enabled,false);
</action>
</krpano>
|
Zitat
krpano 1.0.8 beta 8 (build 2009-06-15)
Zitat
note: INFO: xxxxxxxxxxxxxxareasize = area.pixelwidthxarea.pixelheight
It seems that area.pixelwidth and area.pixelheight are not defined... I supose that is because no area is defined...

Zitat
width="plugin[htmltext].width"
width="get(plugin[htmltext].width)"
Zitat
it seems that variables inside a <data> node are not resolved....
hmmm, I seem to have put beta 8 swf into beta 9 foder.right, the <area> tag is new since beta 9, but the older beta 8 version was used
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michael crane« (8. März 2010, 12:18)