日期:2014-05-17  浏览次数:21257 次

ActionScript 3.0 基础之以文本形式、XML形式和JSON形式与ASP.NET通信

介绍
Flash ActionScript 3.0 以文本形式与ASP.NET通信、以XML形式与ASP.NET通信和以JSON形式与ASP.NET通信


示例
Text.aspx.cs

using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;

public?partial?class?Text?:?System.Web.UI.Page
{
????
protected?void?Page_Load(object?sender,?EventArgs?e)
????
{
????????
string?s?=?"name:?"?+?Request.QueryString["name"]?+?";?age:?"?+?Request.QueryString["age"];

????????Response.ClearContent();
????????Response.ContentType?
=?"text/plain