YOUR FEEDBACK
johnpetersen wrote: Great post. You hit some good points, and hopefully me sending this post. It wil...

SYS-CON.TV
TOP MICROSOFT .NET LINKS


Flash ASP.NET
Dynamic interactive medium for Web applications

As the World Wide Web's landscape has evolved from the days of multimedia-void static HMTL pages, the need for a dynamic interactive medium for Web applications has become apparent. Adobe Flash, as many developers know, is the most widely distributed, capable technology for achieving this new Internet medium. But Flash developers can't achieve the features expected from modern Web applications with Flash alone - for Flash's resources to be put to proper use, Flash must team up with a server-side technology capable of functionality such as database access and file manipulation. Microsoft's newest Web technology, ASP.NET, is a perfect counterpart for Flash, putting powerful capabilities at the fingertips of Flash developers, created using a programming language that is both friendly and familiar to ActionScript developers.

ASP.NET
ASP.NET, like other Web platforms such as PHP, JSP, and ColdFusion, is a set of Web development technologies that can be used to create Web applications and Web Services. ASP.NET is the next generation of Microsoft's Active Server Pages, a technology that was widely used to create Web applications in the 90s and early 2000s. ASP.NET represents not only the newest in Microsoft's Web technology arsenal, but also one of the most advanced Web development platforms currently available.

ASP.NET by itself is actually just a small part of a larger development framework created by Microsoft, known collectively as the .NET Framework. The .NET Framework is a software development platform that is used to build and deploy applications for a variety of uses, ranging from Web-based applications to Web Services to desktop-based applications. Although created by Microsoft, the .NET Framework is an Open Source standard, designed to be completely platform-independent, and therefore isn't restricted to execute on a Microsoft-based operating system.

The Open Source, platform-independent distribution of the .NET Framework is called Mono and is available at www.gomono.com. Among other things, the Mono Framework lets ASP.NET applications be deployed on non-Microsoft base Web servers, such as Linux or Sun.

Languages like ASP.NET are typically referred to as "server-side" languages because, unlike Flash applications, which are displayed and execute in the Flash Player on a user's computer, server-side languages perform their magic on a Web server. Typically, server-side languages like ASP.NET are used to generate HTML documents that are sent to a browser for display. Server-side languages are used, for example, to generate all of the content you see on large-scale sites like www.amazon.com or www.cnn.com. When used in conjunction with Flash, however, ASP.NET is used instead to access and process information, package that information in a well-defined manner, and transmit that information to a Flash interface, which displays it for a user. Its ability to function in this role lets developers access the powerful functionality of ASP.NET without relying on HTML as a user interface. Instead, a rich interactive medium such as Flash can be employed, dramatically increasing the capabilities of Web-based applications.

Why Use ASP.NET for Flash Development?
Just because ASP.NET is one of the newest and most powerful server-side platforms available doesn't necessarily make it a good match for Flash developers. It's because some of ASP.NET's underlying features match up perfectly with the needs of Flash development that make it a perfect server-side comrade. And not only does ASP.NET provide all of the machinery necessary for Flash development, but it makes that machinery easy to operate, taking care of much of the underlying grunt work that other languages don't.

One of the foundations of the .NET Framework and ASP.NET is called the Framework Class Library (referred to as FCL). The FCL is a collection of reusable, commonly used objects. These objects let developers build on complex code that has already been created, eliminating the need to "reinvent the wheel" in your application. The Framework Class Library is very similar to the pre-built classes and components provided in Flash such as MovieClip, Button, and variable types such as String and Number. The libraries in FCL include tremendously powerful collections, such as ADO.NET - the .NET Framework's data access libraries - and ASP.NET - the libraries that give .NET the ability to create and distribute Web applications. Access to the FCL gives developers a major jumpstart in application development, allowing focus to reside on the higher-level design of the application and steer clear of unnecessary dirty work. For Flash developers specifically this means that you can spend more time on the Flash side of the application and less on server-side functionality.

One of the classes included in FCL that makes integrating with Flash a breeze is Web Services. Using ASP.NET, the creation of Web Services is a very painless process, since much of the underlying work is already contained in FCL. Web Services make it possible for developers to execute complex functions with an ASP.NET application and return complex results to a Flash application without having to create complicated data-formatting procedures.

Another reason that Flash developers will find ASP.NET a good match is the programming language commonly used to create ASP.NET applications, C#. C# (pronounced see sharp), is the newest language in the C family of languages. C# is a best-of-breed language combining the most popular features of C++, Java, and Visual Basic - which share the same foundations as ActionScript's foundation, JavaScript. Because C# and ActionScript have emerged from very similar models, their syntax is very similar, making for an easy transition between the two languages. Like ActionScript 2.0, C# is also a fully object-oriented language, which makes development very intuitive for an ActionScript programmer. I should mention that, although C# is the preferred language for creating ASP.NET applications, it's by no means the only one. Because of the flexibility of the .NET Framework, ASP.NET applications can be written in any ASP.NET compatible language, such as VB.NET and JScript (Java for .NET). This flexibility also makes the transition process easier for a developer who might already be familiar with one of these compatible programming languages.

What Types of Functionality Can ASP.NET Be Used For?
Although there are an infinite number of things that you can use ASP.NET to do, there are some powerful features that are commonly incorporated into Flash applications:

  • Access stored data from a database
    - Using ASP.NET, it's possible to retrieve data from nearly any kind of database, including Microsoft SQL, MySQL, Access, and Oracle, to display in a Flash-based interface.
  • Insert and update database data
    - ASP.NET can be used to update or insert data coming from a Flash interface into a database. Acting as the intermediary, ASP.NET can handle any database connectivity issues and respond accordingly.
  • File uploads
    - File uploading is an essential feature of many Web-based applications. With Flash 8, Adobe released the ability to upload files from a user's file system directly to a Web server, monitoring the progress along the way. Using ASP.NET, it's possible for Flash to "hand off" the file to the Web server for proper placement.
  • Image manipulation
    - Using ASP.NET, image files that exist on a Web server can be run through any number of manipulations, including resizing, cropping, and conversion. This can be a very useful feature when used in combination with Flash 8's advanced image processing techniques and user-uploaded image files.
  • Security
    - ASP.NET is capable of many security-based functions that aren't available when using just Flash. FCL has advanced encryption and decryption algorithms built-in, making it easy for developers to do complex security techniques.
Creating ASP.NET Applications
Another one of the strengths of ASP.NET for Flash developers is the preferred development environment used to create ASP.NET applications - Visual Studio.NET. Visual Studio.NET 2005 is one of the most advanced development environments in existence today. The features built into Visual Studio.NET not only help make ASP.NET development more effortless, but also help developers new to .NET programming learn these languages more easily.

In the past, Visual Studio.NET was not an affordable tool for many developers, with its various editions starting at around $1,000. However, with its 2005 product line, Microsoft has released a version of Visual Studio.NET called the "Express Editions" that is available free of charge until November 6, 2006. Specifically for Flash developers, the Visual Web Developer Edition is a perfect tool for beginning ASP.NET development, and is available for download at http://msdn.microsoft.com/vstudio/express/vwd/.

Methods Used for Flash-ASP.NET Interaction
When creating applications that make use of Flash and ASP.NET, a major obstacle can be the fact that they are two very separate systems - one executing on a client system, another on a Web server. Because of this separation, it's very important to understand the methods available to communicate between the two systems - without the proper communication channel, the two systems are useless to each other. As the Flash Player has evolved, so have many methods available to do this communicating.


About Ryan Moore
Ryan Moore is the lead software architect and a principal of Balance Studios Inc. (www.balancestudios.com) as well as epicsoft, Inc. (www.epicsoft.net) of Green Bay, WI. Ryan is a C# programmer and Certified Macromedia Flash Developer. Ryan currently maintains a weblog at http://blogs.ittoolbox.com/c/engineering/

YOUR FEEDBACK
craig wrote: There are points in this article that are inaccurate. I could be wrong, but my understanding of ACtionScript is that it is really similar to Javascript. Javascript, ActionScript and C# all do have that similar c-based syntax, but that is where the similarity ends. Where C# and Java are class based, object-oriented, strongly typed compiled languages, Javascript and actionscript are loosely typed, prototype based, languages. C# and Java are similar, but neither are very similar to ActionScript or Javascript. In fact, Javascript's name was made to sound like Java for marketing reasons only -- its philosophical underpinnings and practical usage is actually quite different. Its been a while since I did Flash development but I understood ActionScript to be more similar to Javascript. For example, does ActionScript have inheritence or interfaces? Is it strongly typed? Do you create cla...
MICROSOFT .NET LATEST STORIES
OpenSpan and TIBCO have announced a technology and business partnership designed to extend TIBCO solutions to desktop environments. The partnership will enable TIBCO Service-Oriented Architecture, Business Process Management and Business Optimization solutions to more rapidly integrate...
In a move that looks tailor-made for an antitrust suit, Microsoft says it’s going to give away a consumer security kit that it’s building code named Morro. It should be available in the second half of next year – probably more like mid-year. The freebie widgetry is supposed to de...
Tidal Software has announced Intersperse 8.0, a product that monitors J2EE and .NET applications and their transaction component performance to produce meaningful metrics for managing applications and high-level business processes. The product leverages a combination of lightweight Ja...
DataGuise has announced their first masking in place solution for multi-database environments such as Oracle, Microsoft SQL Server, and others. The dgSolution Suite provides secure masking of database content and is designed for the highest level of flexibility and functionality across...
The BlackBerryR Technical Webcast Series is designed to help BlackBerry administrators better manage and leverage the capabilities of their BlackBerry solution. Each webcast is packed with detailed technical information, covering topics that are relevant to you. Our on-demand webcasts ...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES
Simba Technologies Inc., industry's choice for standards-based relational and multi-dimensional data...