Search
Home IIS.NET Forums IIS 7 & IIS 8 Classic ASP ASP Classic loading swf with xml
Last post Jan 02, 2012 03:58 PM by HCamper
1 Post
Nov 21, 2011 05:05 AM|LINK
Hi,
I tried to setup a kinda virtual tour using Flash AS3 with XML.
SWF flash alone works great loading all the images and content needed from the XML files.
Now, i layin the swf file on the asp page i got the error FATAL: virtual.xml error I/O error.
If someone can help me understand the code, would greatly appreciate it.
Below are the codes for both ASP and the xml:
ASP code:
<!-- #include virtual = "/virtual/opd.asp" --> <% sub mainvr() Response.Write "<div style=""padding:0 10px;"">"
Response.Write "</div>" Response.Write "<div align=""center"" style=""margin-top:20px"" id=""rightcolumn"">"
Response.Write "</div>" %> <div id="leftcolumn" align="center" style="font-weight:bold;"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="780" height="375" id="backpain" align="middle"> <param name="movie" value="/presentations/virtual.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="wmode" value="window" /> <param name="scale" value="showall" /> <param name="menu" value="true" /> <param name="devicefont" value="false" /> <param name="salign" value="" /> <param name="allowScriptAccess" value="sameDomain" /> </object> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="/presentations/virtual.swf" width="780" height="375"> <param name="movie" value="/presentations/virtual.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="wmode" value="window" /> <param name="scale" value="showall" /> <param name="menu" value="true" /> <param name="devicefont" value="false" /> <param name="salign" value="" /> <param name="allowScriptAccess" value="sameDomain" /> </object> <!--<![endif]--> </div> <%
end sub %>
XML Code:
<?xml version="1.0" encoding="UTF-8"?><!--for xml compliance--> <!--************** TEXT FIELD Details ******************************************************************--> <plugin name="htmltext" url="/virtualdata/graphics/textfield.swf" width="200" height="22" align="bottomleft" x="0" y="5" html="data:htmldata1" css="data:cssdata1" css="p{color:#b9b9b9;}" backgroundcolor="0x1a2c05" selectable="false"/> <data name="htmldata1"> <p align="right"> <font face="Verdana" size="+1" > <b>Main Lobby</b> </font> </p> </data> <krpano version="1.0.8.14" logkey="false"> <!--************** KrPano plugins and datas ***************************************************--> <plugin name="data" keep="true"/> <!--************** Open the first pano ********************************************************--> <include url="/virtual0.xml"/> <autorotate enabled="true" waittime="1" speed="50"/> <!--************** Fonts **********************************************************************--> <textstyle name="DEFAULT" bold="false" font="verdana" fontsize="14" italic="false" textcolor="0x000000"/> <!--************** Pano List ******************************************************************--> <plugin name="combobox" url="/virtualdata/graphics/combobox.swf" keep="true" align="centertop" x="0" y="0"/> <action name="combobox:Main Lobby">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual0.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Coffee Shop">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual1.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Patient Parking">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual2.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Internal Medical Clinic">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual3.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Pharmacy">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual4.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Ob-Gynaecology">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual5.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Ward 1 Station">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual6.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:24 Hour Emergency">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual7.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Parking Area 2">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual8.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Standard Private Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual9.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Model Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual10.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Royal Suite Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual11.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Royal Suite Living Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual12.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Royal Suite Patient Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual13.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Royal Suite Guest Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual14.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Out Patient Clinic">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual15.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Administrative Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual16.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Administrative Office">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual17.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Paediatrics Department">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual18.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:24 Hours Emergency Driveway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual19.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Nursery Department">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual20.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Ward 2 Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual21.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Ward 2 Station">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual22.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Intensive Care Unit">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual23.xml,NULL,NULL,BLEND(1));</action> <action name="combobox:Training Center">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual24.xml,NULL,NULL,BLEND(1));</action> <!--************** Context menu *****************************************************************--> <action name="closeglobalobjects"/> <action name="interruptAnimation">ifnot (stopSequence === undefined, set(stopSequence,true); wait(0);); </action> </krpano>
Hope you can help me on this.
Please note that the swf file reside on the folder that has permission on the IIS.
Thank you so much.
Bryan
8048 Posts
Nov 21, 2011 09:56 AM|LINK
Hi Bryan,
Looks like a problem with paths and the "Enable Parent Path" setting.
The "Enable Parent Paths" is Off by "Default" IIS Guide
http://learn.iis.net/page.aspx/566/classic-asp-parent-paths-are-disabled-by-default/ .
Could you check the IIS Server logs and post the Status Codes XXXX.XX in the Forum
http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/ the details for the IIS Server errors
should help in find the orgin of the problems.
For permissions check that the IIS_IUSRS has been added and has execute,read,list access.
Martin
Nov 30, 2011 01:30 PM|LINK
I can not help "If someone can help me understand the code".
It requires trouble shooting post the Status Codes for the errors.
Jan 02, 2012 03:58 PM|LINK
I do not work with "Flash AS3 with XML" and ASP.
I did find http://www.herrodius.com/blog/18 a Blog Christophe Herreman that might help,
bryanbelle
1 Post
ASP Classic loading swf with xml
Nov 21, 2011 05:05 AM|LINK
Hi,
I tried to setup a kinda virtual tour using Flash AS3 with XML.
SWF flash alone works great loading all the images and content needed from the XML files.
Now, i layin the swf file on the asp page i got the error FATAL: virtual.xml error I/O error.
If someone can help me understand the code, would greatly appreciate it.
Below are the codes for both ASP and the xml:
ASP code:
<!-- #include virtual = "/virtual/opd.asp" -->
<%
sub mainvr()
Response.Write "<div style=""padding:0 10px;"">"
Response.Write "</div>"
Response.Write "<div align=""center"" style=""margin-top:20px"" id=""rightcolumn"">"
Response.Write "</div>"
%>
<div id="leftcolumn" align="center" style="font-weight:bold;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="780" height="375" id="backpain" align="middle">
<param name="movie" value="/presentations/virtual.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
</object>
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/presentations/virtual.swf" width="780" height="375">
<param name="movie" value="/presentations/virtual.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
</object>
<!--<![endif]-->
</div>
<%
end sub
%>
XML Code:
<?xml version="1.0" encoding="UTF-8"?><!--for xml compliance-->
<!--************** TEXT FIELD Details ******************************************************************-->
<plugin name="htmltext" url="/virtualdata/graphics/textfield.swf"
width="200" height="22"
align="bottomleft" x="0" y="5"
html="data:htmldata1"
css="data:cssdata1"
css="p{color:#b9b9b9;}"
backgroundcolor="0x1a2c05"
selectable="false"/>
<data name="htmldata1">
<p align="right">
<font face="Verdana" size="+1" >
<b>Main Lobby</b>
</font>
</p>
</data>
<krpano version="1.0.8.14" logkey="false">
<!--************** KrPano plugins and datas ***************************************************-->
<plugin name="data" keep="true"/>
<!--************** Open the first pano ********************************************************-->
<include url="/virtual0.xml"/>
<autorotate enabled="true" waittime="1" speed="50"/>
<!--************** Fonts **********************************************************************-->
<textstyle name="DEFAULT" bold="false" font="verdana" fontsize="14" italic="false" textcolor="0x000000"/>
<!--************** Pano List ******************************************************************-->
<plugin name="combobox" url="/virtualdata/graphics/combobox.swf" keep="true" align="centertop" x="0" y="0"/>
<action name="combobox:Main Lobby">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual0.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Coffee Shop">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual1.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Patient Parking">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual2.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Internal Medical Clinic">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual3.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Pharmacy">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual4.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Ob-Gynaecology">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual5.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Ward 1 Station">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual6.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:24 Hour Emergency">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual7.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Parking Area 2">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual8.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Standard Private Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual9.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Model Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual10.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Royal Suite Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual11.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Royal Suite Living Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual12.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Royal Suite Patient Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual13.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Royal Suite Guest Room">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual14.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Out Patient Clinic">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual15.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Administrative Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual16.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Administrative Office">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual17.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Paediatrics Department">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual18.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:24 Hours Emergency Driveway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual19.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Nursery Department">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual20.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Ward 2 Hallway">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual21.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Ward 2 Station">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual22.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Intensive Care Unit">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual23.xml,NULL,NULL,BLEND(1));</action>
<action name="combobox:Training Center">action(closeglobalobjects);ifnot(stopSequence === undefined,action(interruptAnimation););loadpano(virtual24.xml,NULL,NULL,BLEND(1));</action>
<!--************** Context menu *****************************************************************-->
<action name="closeglobalobjects"/>
<action name="interruptAnimation">ifnot (stopSequence === undefined, set(stopSequence,true); wait(0););
</action>
</krpano>
Hope you can help me on this.
Please note that the swf file reside on the folder that has permission on the IIS.
Thank you so much.
Bryan
HCamper
8048 Posts
Re: ASP Classic loading swf with xml
Nov 21, 2011 09:56 AM|LINK
Hi Bryan,
Looks like a problem with paths and the "Enable Parent Path" setting.
The "Enable Parent Paths" is Off by "Default" IIS Guide
http://learn.iis.net/page.aspx/566/classic-asp-parent-paths-are-disabled-by-default/ .
Could you check the IIS Server logs and post the Status Codes XXXX.XX in the Forum
http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/ the details for the IIS Server errors
should help in find the orgin of the problems.
For permissions check that the IIS_IUSRS has been added and has execute,read,list access.
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: ASP Classic loading swf with xml
Nov 30, 2011 01:30 PM|LINK
Hi,
I can not help "If someone can help me understand the code".
It requires trouble shooting post the Status Codes for the errors.
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: ASP Classic loading swf with xml
Jan 02, 2012 03:58 PM|LINK
Hi,
I do not work with "Flash AS3 with XML" and ASP.
I did find http://www.herrodius.com/blog/18 a Blog Christophe Herreman that might help,
Martin
Community Member Award 2011