Hello,
I am currently developing a progress bar, but when i use the code from the example of loading, i get always 0.0 for progress.progress.
I don't understand why, here is my code:
Code
<krpano debugmode="true" onstart="loadingbar_startloading(); startup();" showerrors="false"><include url="%SWFPATH%/skin/vtourskin.xml" /><skin_settings thumbs_crop="0|40|240|160|480"/> <security cors=""> <allowdomain domain="*" /> </security>
<network downloadqueues="6" decodequeues="2" />
<action name="startup"> loadscene('[first_scene]', null, MERGE, ZOOMBLEND(1.0)); wait(BLEND); </action>
<layer name="loadingbar_bg" keep="true" type="container" bgcolor="0x000000" bgalpha="0.5" align="bottom" y="25%" width="33%" height="20" enabled="false" visible="false"> <layer name="loadingbar_space" type="container" align="left" x="4" width="-8" height="12"> <layer name="loadingbar_fill" type="container" bgcolor="0xFFFFFF" bgalpha="1.0" align="lefttop" width="0" height="100%" /> </layer> </layer>
<!-- loading bar actions --> <action name="loadingbar_startloading"> set(loadingbar_isloading, true); set(layer[loadingbar_bg].visible, true);
asyncloop(loadingbar_isloading, mul(pv, progress.progress, 100); trace(progress.progress); txtadd(pv, '%'); copy(layer[loadingbar_fill].width, pv); ); </action>
<action name="loadingbar_stoploading"> set(loadingbar_isloading, false); set(layer[loadingbar_bg].visible, false); </action>
<events onloadcomplete="set(autorotate.enabled,true); skin_showloading(false); delayedcall(0.25, loadingbar_stoploading() );" />
<scene name="[id]" title="[title]" thumburl="[thumbnailPictureUrl]" largeurl="[largePictureUrl]" mediumurl="[mediumPictureUrl]">
<view fov="120" fovmax="130" fovmin="70" fovtype="MFOV" hlookat="0" vlookat="15"/> <image type="SPHERE"> <sphere devices="tablet|desktop" url="[largePictureUrl]"/> <sphere devices="mobile" url="[mediumPictureUrl]"/> </image> <hotspot name="logoTripod" url="[agencyTripodUrl]" keep="true" width="230px" height="230px" ath="0" atv="90" zoom="true" /> <hotspot name="[name]" style="skin_hotspotstyle|tooltip" ath="[ath]" atv="[atv]" linkedscene="[roomId]" onclick="removelayer('mouse_pic');removelayer('hand_pic'); lookto(get(ath),0,60,tween(linear, 0.7)); skin_showloading(false); loadscene('[roomId]', null, MERGE, BLEND(1.0, easeInCubic));" tooltip="[roomName]"/>
</scene>
Display More
I replace all [parameter] with my php code. I use [url='https://krpano.com/docu/html/#embedpano']embedpano.
If someone has an idea it will be great.