xml.url does not work
-
-
Hi,
have you loaded a scene?
In this case, the xml.url will be no longer set.
The xml.url is only set after loading a xml file - that means at start and after a loadpano() call.Best regards,
Klaus -
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)" /> -
I even try following, but noting shows:
<events onxmlcomplete="showlog(true); trace(xml.url);" />
Min -
Hi,
then xml.url value will be set to empty when loading a scene via loadscene() or a xml-string via loadxml() - that might be the problem in your case...
Best regards,
Klaus -
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 can't use xml.url, so I had to use global variable "title". I had to change all the xmls, anyway it works.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!