I create a swf with flex. Than I embeded that swf into aspx page.But how can I access/invoke/call swf function from asp.net???
我用flex创建了一个swf。比我把swf嵌入到aspx页面。但是如何从asp.net访问/调用/调用swf函数???
1 个解决方案
#1
1
You can't exactly. ASP.NET is a server side language; whereas Flex is a client side language. ASP.NET code will generally generates HTML output. And that output can include code to embed a SWF in the HTML page.
你不能完全。 ASP.NET是一种服务器端语言;而Flex是一种客户端语言。 ASP.NET代码通常会生成HTML输出。该输出可以包括在HTML页面中嵌入SWF的代码。
Flex can interact with the HTML Page using JavaScript and ExternalInterface. JavaScript can call methods on the SWF using the same API.
Flex可以使用JavaScript和ExternalInterface与HTML页面进行交互。 JavaScript可以使用相同的API在SWF上调用方法。
Flex can call remote services written in ASPX using the WebService tag for SOAP web Services, the RemoteObject tag for AMF services, or the HTTPService tag for REST Web Services. In most cases these operate int he "request/response" mechanism so that Flex must make a request to the server.
Flex可以使用SOAP Web服务的WebService标记,AMF服务的RemoteObject标记或REST Web服务的HTTPService标记来调用ASPX编写的远程服务。在大多数情况下,这些操作在“请求/响应”机制中运行,以便Flex必须向服务器发出请求。
If you need the server to send data to your Flex App, you'll need a server that supports push notifications. WebORB is one option that works with .NET. LiveCycle and GraniteDS are alternate options.
如果您需要服务器将数据发送到Flex App,则需要一台支持推送通知的服务器。 WebORB是一个适用于.NET的选项。 LiveCycle和GraniteDS是备用选项。
#1
1
You can't exactly. ASP.NET is a server side language; whereas Flex is a client side language. ASP.NET code will generally generates HTML output. And that output can include code to embed a SWF in the HTML page.
你不能完全。 ASP.NET是一种服务器端语言;而Flex是一种客户端语言。 ASP.NET代码通常会生成HTML输出。该输出可以包括在HTML页面中嵌入SWF的代码。
Flex can interact with the HTML Page using JavaScript and ExternalInterface. JavaScript can call methods on the SWF using the same API.
Flex可以使用JavaScript和ExternalInterface与HTML页面进行交互。 JavaScript可以使用相同的API在SWF上调用方法。
Flex can call remote services written in ASPX using the WebService tag for SOAP web Services, the RemoteObject tag for AMF services, or the HTTPService tag for REST Web Services. In most cases these operate int he "request/response" mechanism so that Flex must make a request to the server.
Flex可以使用SOAP Web服务的WebService标记,AMF服务的RemoteObject标记或REST Web服务的HTTPService标记来调用ASPX编写的远程服务。在大多数情况下,这些操作在“请求/响应”机制中运行,以便Flex必须向服务器发出请求。
If you need the server to send data to your Flex App, you'll need a server that supports push notifications. WebORB is one option that works with .NET. LiveCycle and GraniteDS are alternate options.
如果您需要服务器将数据发送到Flex App,则需要一台支持推送通知的服务器。 WebORB是一个适用于.NET的选项。 LiveCycle和GraniteDS是备用选项。