I can't use xml.url, so I had to use global variable "title". I had to change all the xmls, anyway it works.
Posts by heomin61
-
-
I am newbie for JS and I have encountered error at the first try.
the html
Code
Display More<script> embedpano({swf:"tour.swf", xml:"tour05.xml", id:"krpanoSWFObject", target:"pano", html5:"auto", passQueryParameters:true}); function thetitle() { var krpano = document.getElementById("krpanoSWFObject"); var index = krpano.get("snum"); krpano.call("showlog(true); trace(index);"); krpano.set("htext", vrList[index][0]); } </script>
the xml
When I click the button, it says
WARNING: js() - calling Javascript "thetitle()" failed: Error: TypeError: the oject doesn't support 'get' attribute or method.
Is there anything I have to check?
Min
-
I understand the xml.url will be blank, when new scene or new xml is loaded.
However, thiis means xml.url has meaning just the first time, right? Then I think xml.url has no meaning for developing any tours. :(
Anyway, I have many xml files to load, and want to find out which one is loaded right now. Is there any way?
Min
-
I even try following, but noting shows:
<events onxmlcomplete="showlog(true); trace(xml.url);" />
Min -
Hi klaus
I have encountered same problem. I tried the following button several times, but the trace(xml.url) always gives me black. Surey I loaded several diffenent scene aleady and tried.
Is there any solution? any code?
Min<layer name="list93" url="skin/listbutton93.png" x="276" y="4" align="lefttop" crop="0|0|136|20" onovercrop="0|20|136|20" ondowncrop="0|20|136|20"
onclick="set(events.onresize, ''); showlog(true); trace(xml.url); indexoftxt(found, get(xml.url), 'tour00.xml');
if(found GE 0, loadpano(tour00.xml, startscene=scene_00006, IGNOREKEEP,BLEND(1)); , loadscene(scene_00006, null, MERGE, BLEND(1))); citem(93)" /> -
Im a good fan of krpano, which can implement almost all of functions that i imagine.
Now I have quite good understanding of krpano xml, after testing and developing some projects.Now, I think I need more knowledge on plugin interface (Actionscript3 Flash Plugins, Javascript HTML5 Plugins),
for develop more sophisticated program.However, I cant find good materials for that purpose.
I read the documentation https://krpano.com/docu/plugininterface/#top several times,
but it is far beyond my skill.So I think there should be tutorials or step-by-step instructions.
Or some workshop or education program will help a lot.Are there somebody to help me?
Min
-
Maybe you need keep="true"
such as:<plugin name="introimage" url="intro-interactive-giga.png" keep="true" align="center" onclick="hideintroimage();"/>
-
-
한국사람이시면 http://cafe.daum.net/cubicpan 에 방문해보시길.
민, 푸른하늘
-
I have tested the other guy's request using the site. It works very good!!
simple code for displaying text
I think if the site can host plugins, images, etc, it will be more valuable.
Min.
-
I think your code is good. (I just change a little, here and there.) You can see and test from ciul's depanorama site :
http://depanorama.com/DdHBZ3/1
However, you must include keep="true", if you have many scenes. Every layer disappears when new scene is loaded.
Min
-
Thanks klaus!
It works just as if I wanted. Great!!
-
Hi,
I would like to make hotspot blinking. So I think the tweening of the alpha setting of the hotspot will help.
Followings are my code. However, the hotspt doesnot blinking, but just disappeared.Please check for me.
Code<hotspot name="info1" url="http://360vr.kr/panoramas/NMus/skin/map_node_s.png" ath="0" atv="3" onloaded="wait(3); hotspot_animate(get(name));" /> <action name="hotspot_animate"> tween(hotspot[%1].alpha, 0.0, 1, default, tween(hotspot[%1].alpha, 1.0, 1)); if(loaded, delayedcall(0.01, hotspot_animate(%1); ); ); </action>
Thanks in advance.
Min
-
Hi ciul,
I am testing your site, which is just GREAT!!, However I can't get a link, so I can't share the code.
I could get the link yesterday, but it disappeared. Please check.best,
-
This is flash limitation,
Please search this forum with keyword "crossdomain.xml".
-
Searching this forum by "auto tour" will give you lots of article.
-
You can find "krpano Update Tool.exe" in the krpano tools foder.
-
YASUSHI,
Thank you very much for sharing your code. It's very nice!!
-
Maybe what you need is image gallery.
-
You should check the vtour/panos/****.tiles folders.
There are many images, and I think the cube images have same problems.If so, the some of the krpano tools may has been corropted.
Then I think reinstalling of the tools will remedy it.Min