NET中Flash+Xml焦点图片轮换

效果图:


下载地址:http://download.csdn.net/detail/tiz198183/4778086

一、网页

     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=scriptmain name=scriptmain codebase="http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,29,0" width="300" height="261">
      <param name="movie" value="FlashXml/Flash/bcastr.swf?bcastr_xml_url=FlashXml/bcastrXML.ashx">
      <param name="quality" value="high">
      <param name=scale value=noscale>
      <param name="LOOP" value="false">
      <param name="menu" value="false">
      <param name="wmode" value="transparent">
      <embed src="FlashXml/Flash/bcastr.swf?bcastr_xml_url=FlashXml/bcastrXML.ashx" width="300" height="261" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
    </object>

二、处理页面

<%@ WebHandler Language="C#" Class="bcastrXML" %>

using System;
using System.Web;
using System.Data;
using BLL;
public class bcastrXML : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        DataTable dt = News.GetList(" and path<>''").Tables[0];
        context.Response.Write("<?xml version='1.0'  encoding='utf-8' ?><bcaster autoplayTime='3'>");
        for (int i = 0; i < 9; i++)
        {
            context.Response.Write("<item item_url='" + dt.Rows[i]["path"] + "'  link='http://'  itemtitle=''></item>");
        }
        context.Response.Write("</bcaster>");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}


实例2:

效果


代码地址:http://download.csdn.net/detail/tiz198183/4763549

相关文章

  译序:JWMediaPlayer是开源的网页使用的Flash播放器。本...
    Flash编程原理都是只能将1写为0,而不能将0写成1.所...
 上传setenvgatewayip192.168.1.1;setenvserverip192.168.1...
Error:FlashDownloadFailed-"Cortex-M3"出现一般有...
jPlayer是一个用于控制和播放mp3文件的jQuery插件。它在后台...
#ifndef__FONTUPD_H__#define__FONTUPD_H__#include"sy...