Beiträge von michel

    Hi Klaus,

    Like Christmas is near, I have a wish ... *smile*

    We have lookto() as blocking action and interrupt able with oninterrupt() action...
    We have tween() action interrupt able with stoptween() action...
    And we have lookto() as nonblocking action but not interrupt able (at least I do not find a way to do)...

    So that's my wish: an Interrupt able nonblocking lookto() action... something like stoplookto() ....

    Best regards,
    Michel.

    Hi Klaus,

    The Editor plugin seems to have a bug with hotspots...

    Try adding the Editor plugin in an example with more than 1 hotspot like as the textstyles.xml for example...
    Open the editor you will see that only 1 hospot is listed...

    SAlut.

    Hi all,

    This is a really annoying problem...
    It seems that this behaviour has some relation with the onLongClick (or something similar) feature, that makes popup the fullscreen option (and affects the other events)....
    In my opinion, as Krpano does not needs this flashplayer feature as it already manages Fullscreen function by his own, this onLongClick event could be annulled in some way (if possible)... KLAUS *squint*

    There is another behaviour affecting the correct function of Krpano due to this onLongClick Fullscreen feature on Ondroid...
    Take any panorama example (Ex: https://krpano.com/tours/weingut/ ) and touch the screen any where while waiting the Fullscreen popup feature... then pull off your finger from the screen... The pano does a panning to the left and up with no reason...

    Hope this can be solved by Klaus. *rolleyes*

    SAlut.

    Hi 360icon,

    On the Ipad I get an error:

    Code
    FATAL ERROR:
    virtualtour0.xml - xml parsing failed!


    In line 83 you have a ath & atv attribute duplicated at the end. This cause the parsing error...
    To check for parsing errors on your xml files, you can open them directly on a browser...

    SAlut.

    Hi Andrey,

    Seems you has solved it *thumbup* ...

    I found another little thing... I have difficulties in accessing the help button... I think is not really an issue of your interface but an behaviour due to the krpano log access at the extreme right-bottom corner that disallow access to your button behind it... You can see the area that I suppose correspond to this log area access by staying a few seconds inside, then the ipad feature copy pops up.
    Probably, it should be better avoid this region.

    SAlut

    Hi Andrey,

    Testing your DEMO for iPad example on an Ipad, I noticed a strange behaviour...
    After loading the page, when scrolling the thumbs to the left quickly, they disappears out of the screen without doing the rebound... After going fullscreen or calling next scene, the thumbs returns back again.
    This does not happens with your DEMO for Iphone example (tested on Ipad)

    edited: So, after trying again, it appears that this happens also on the Iphone version ....

    SAlut.

    Hi Philippe,

    In your code the image type is cube, not cubestrip *wink* ...
    The code corrected:

    SAlut.

    Hi Philippe,

    Or following your approach, you can do:


    Or similar:


    SAlut.

    Hi Nupsi,

    Zitat

    It´s not working either, Michel *sad* The iPhone 4 wont remove the video if it´s paused. All that happens is that the video is paused and if you click it again it continues to play.

    That's normal *wink* ... the code removes the video only if a stop() action is called (in fact, it removes the video when the current time is 0 (this is what happens after a stop() call ) after calling a pause() or stop() action ... See line 18 of the previous code)...
    Here a modified code to removes the video also on pause() action:

    Hope this one works as you expect *smile* ... (I have no ipod/iphone)

    SAlut.

    Hi Nupsi,

    ispaused is not an event but a variable that can be checked at any time...
    I am not sure if the following code match your needs but here it is, in the hope it can help (sorry if I am off topic).
    It would remove the video after a stop() action (but only if the video has already been played partialy or totally)

    Hope it help...

    SAlut.

    Hi KLAUS,

    After playing with the last videoplayer version 1.0.8.14 (build 2011-10-21) it seems that there is a BUG in using the pausedonstart attribute...
    As a test, edit the video-hotspot example, changing hotspot by plugin, like this:

    Code
    <!-- note - the url of the video must be always relative to the main krpano swf file -->
    	<plugin name="videospot"  onvideoready="trace('ispaused returns = ',ispaused )"
    	.....


    As the attribute pausedonstart is set to true, the variable ispaused returns true but the video does not show *whistling* ...

    A workaround that seems to work, is:

    Code
    <!-- note - the url of the video must be always relative to the main krpano swf file -->
    	<plugin name="videospot" 
    		 	....
    			 pausedonstart="false"
    			 onvideoready="stop(); trace('ispaused returns = ',ispaused );"
    			 />

    SAlut.

    Hi,

    The bug happens also onresize... So the workaround should include an onresize event too:

    Code
    <events name="combobox_workaround" keep="true"
    			onenterfullscreen="plugin[combobox].closeList()"
    			onexitfullscreen="plugin[combobox].closeList()" 
    			onresize="plugin[combobox].closeList()"/>

    SAlut,

    Hi krTim,

    Using get() inside the condition is not needed:

    The var1 or var2 can be a variables or values. When var1 or var2 is a variable then the content of the variable will be used for comparison. Only when using a 'strict' comparison operator (=== or !==) then var1 and var2 must be variables (or null).

    Your code should be:

    Code
    <action name="test">ifnot( xml.scene == fitness , trace(xml.scene);   );</action>

    SAlut.

    Hi srisa,

    Zitat

    That tour plays well on flash viewer but doesn't work on javascript viewer.

    In your code, you call an action called onstart from the "onstart" event of the <krpano> node:

    Code
    <krpano version="1.0.8" onstart="action(onstart);">
    
    
    <action name="onstart">
    trace(starting the pano);
    loadscene(kitchen, null, MERGE);
    </action>
    .....


    First, In my opinion it is always a bad idea to use the same name as any already existing element... If you change the name of your onstart action by something different, it should work...
    Second, it seems that you found a Bug... It is not normal that it resolves in a way in flash and in another way in JS... it seems that in flash it looks for an action named onstart and in JS it calls to itself (in my opinion this seems logical), resulting of a looping call...

    SAlut.

    Sacha... I think you are making a mistake here.
    Try this code:

    Code
    <action name="incorrect">
    	if(xml.scene == get(xml.scene),
    	trace(the condition is true);
    	,
    	trace(the condition is false);
    	); 
    </action>


    it return the condition is false

    Code
    <action name="correct">
    	if(xml.scene == xml.scene,
    	trace(the condition is true);
    	,
    	trace(the condition is false);
    	);
    </action>


    it return the condition is true

    2. Comparing two variables or values:
    if(var1 OPERATOR var2, ...);
    The var1 or var2 can be a variables or values. When var1 or var2 is a variable then the content of the variable will be used for comparison. Only when using a 'strict' comparison operator (=== or !==) then var1 and var2 must be variables (or null).

    SAlut.

    Hi Sacha,

    I try your code and I am not able to understand your request....
    But I note an error in your second if call... get(xml.scene) should be xml.scene

    reference about if

    SAlut.