Flash & ASP.Net Application Integration
| Posted in .Net Framework, Action Script, C#, Flash | Posted on 01-11-2010
0
Introduction
if you are familiar with web applications you found that building any website consist two steps Web Design & Web Development. As software developer of course you are familiar with different programming language like Java, C# and more languages this is normal for you as developer but what about designing tools. There are different website design tools in the market like Flash, Silverlight (Check the Difference) and more. in this article, I will explain how you can integrate between Flash File(@Designer) embedded in the website which will be ASP.Net web application (@Development).
Suppose that your application is implemented in ASP.Net framework and you have one flash file(filename.fla), you need to bind dynamic data from database and apply some certain business logic and bind the results to flash controls on flash file. So, you need to write two different kinds of code
-
Calling database & business logic as .Net code.
-
Binding code as Action Script.
At this point you search for how you can call .Net code in flash movie using action script language, I do the similar and I found that flash has the ability for parsing XML object so it is be very amazing to use XML as channel between .Net code and flash movie and get the response of method call as XML object. So let’ describe our technical solution is building ASP.Net web service layer and on the other side how to consume web service methods using action script 2.0
Try with your Hand
@Flash
The WebServiceConnector component lets you access remote methods exposed by a server using the industry-standard Simple Object Access Protocol (SOAP). A web service method can accept parameters and return a result. Using the Flash authoring tool and the WebServiceConnector component, you can inspect, access, and bind data between a remote web service and your Flash application. to discover more about the WebServiceConnector class check the following link WebServiceConnector
So, we need to implement two parts
-
ASP.Net web service
-
Action Script 2.0 Code to consume ASP.Net web service
Creating ASP.Net Web Service
simply create new ASP.Net WebService project
you will use ready WebService method which be created when you create new WebService project. this is web method doesn’t take any parameters and return string Hello World
Calender
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Dec | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | |||


Use the Highlighter
This website now has an AutoPublish widget:

