Problem with "include xml"

  • Hello,
    I have problem with "include xml file" . When I start with this code all things are good:

    Code
    <krpano version="1.0.8"> 
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmax="120" />
    <preview type="CUBESTRIP" url="vasco_test.tiles/preview.jpg" />
    <image type="CUBE" multires="true" tilesize="4000"><level tiledimagewidth="1387" tiledimageheight="1387"><left  url="vasco_test.tiles/pano_l_%0v%0h.jpg" /><front url="vasco_test.tiles/pano_f_%0v%0h.jpg" /><right url="vasco_test.tiles/pano_r_%0v%0h.jpg" /><back  url="vasco_test.tiles/pano_b_%0v%0h.jpg" /><up    url="vasco_test.tiles/pano_u_%0v%0h.jpg" /><down  url="vasco_test.tiles/pano_d_%0v%0h.jpg" /></level></image>


    but when i includein this code a xml file,

    Code
    <include url="%SWFPATH%/desa_news.xml" />

    my web browser are waiting, and waiting and nothing is gonna happen and i have webbrowser crash.


    The include file is:

    Code
    <plugin name="editor"  url="plugins/editor.swf"  />
    <!-- events - fullscreen button change, set cursor on start --><events onxmlcomplete="action(qtvrcursor);"        onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);"        onexitfullscreen ="set(plugin[openfs].visible,true);  set(plugin[closefs].visible,false);"        /><!-- actions to change the mouse cursor --><action name="dragcursor">set(plugin[dragmode].visible, false);set(plugin[movemode].visible, true);set(control.mousetype, drag2D);set(cursors.url, %SWFPATH%/skin/drag-cursors.png);set(cursors.type, drag);set(cursors.move,  2|0|30|32);set(cursors.drag, 37|0|30|32);</action><action name="qtvrcursor">set(plugin[dragmode].visible, true);set(plugin[movemode].visible, false);set(control.mousetype, moveto);set(cursors.url, %SWFPATH%/skin/qtvr-cursors.png);set(cursors.type, 8way);set(cursors.move,       0|0|16|16);set(cursors.drag,      16|0|16|16);set(cursors.arrow_u,   32|0|16|16);set(cursors.arrow_d,   48|0|16|16);set(cursors.arrow_l,   64|0|16|16);set(cursors.arrow_r,   80|0|16|16);set(cursors.arrow_lu,  96|0|16|16);set(cursors.arrow_ru, 112|0|16|16);set(cursors.arrow_rd, 128|0|16|16);set(cursors.arrow_ld, 144|0|16|16);</action>


    I never had this problem yet. Thanks o lot for any suggestion! *confused* *confused*

  • New problem with the same "include file":

    Whith this code all panoramas work fine:

    Code
    <krpano version="1.0.8">
    <include url="%SWFPATH%/test_include.xml" />
    <security>
    	<allowdomain domain="http://xyz.com" />
    	</security> 
     <plugin name="editor" url="plugins/editor.swf" />

    but when I delete "editor" :

    <krpano version="1.0.8">
    <include url="%SWFPATH%/test_include.xml" />
    <security>
    <allowdomain domain="http://xyz.com" />
    </security>

    Pano are not loading. *cursing* *confused* *cry*

    I have KrPano 1.0.8 beta 9 / Win 7 / Please help!

  • Hi,

    in your "plus/noeditor/plus_1.xml" file you have at line 150 this code:

    Code
    <plugin name="editor" url="file:///C:/Users/Online/Desktop/plus/plugins/editor.swf" />

    that means you are trying to load a local file,
    this leads to a flashplayer security error which breaks the whole code execution,
    try to install the debug flashplayer to see the error,

    just remove this line and it should work

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!