flash,非常急,谁会帮帮忙
将flash载入asp.net,并且背景图从xml读取,这样的代码怎么写啊 --------------------编程问答-------------------- 将flash载入asp.net应该是控件然后改下路径,用XML读取图片应该也是路径的问题吧 --------------------编程问答-------------------- http://www.21shipin.com/html/94492.shtml上面有详细介绍, --------------------编程问答-------------------- --------------------编程问答-------------------- 你的FLASH路径用<%=URL%>
这种方式
url从后台读取。 --------------------编程问答-------------------- 就是不知道怎么读 --------------------编程问答-------------------- 找别人的例子研究下 --------------------编程问答-------------------- 昨天刚问人搞定这问题。
后台。
protected string path = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
String path1 = Request.QueryString["lr"].ToString();
path = "/zhoubao/" + path1 + "";
}
前台
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="600" wmode="transparent">
<param name="movie" value="<%=path %>" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed value="<%=path %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="700" height="600"></embed>
</object>
--------------------编程问答-------------------- 用错标记,重发。
后台
protected string path = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
String path1 = Request.QueryString["lr"].ToString();
path = "/zhoubao/" + path1 + "";
}
前台'
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="700" height="600" wmode="transparent">
<param name="movie" value="<%=path %>" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed value="<%=path %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="700" height="600"></embed>
</object>
--------------------编程问答-------------------- 非常感谢你的回答,但是请问你后台那些代码是从XML中读取图片吗?我的xml代码是
<?xml version="1.0" encoding="gb2312"?>
<mine>
<in mapfile="1.jpg" name="xx" messageNum="1"></in>
</mine>
--------------------编程问答--------------------
--------------------编程问答--------------------
protected string path = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
//在这解析xml取出图片地址然后给path赋值
String path1 ;
path = "/zhoubao/" + path1 + "";
}
+1 把路径地址 做成动态的在后台通过 方法读取 --------------------编程问答--------------------
protected string path = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
//在这解析xml取出图片地址然后给path赋值
String path1 ;
path = "/zhoubao/" + path1 + "";
}
那就我那些代码该怎样解析呢
补充:.NET技术 , ASP.NET