开发者

calling flex swf function from asp.net

I cre开发者_C百科ate a swf with flex. Than I embeded that swf into aspx page.But how can I access/invoke/call swf function from asp.net???


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.

Flex can interact with the HTML Page using JavaScript and ExternalInterface. JavaScript can call methods on the SWF using the same API.

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.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜