Welcome!

Adobe Flex Authors: Matthew Lobas, PR.com Newswire, Shelly Palmer, Kevin Benedict

Related Topics: Adobe Flex

Adobe Flex: Article

Microsoft .NET In A Flash, A New Tool Lets .NET Developers Write Flash Applications

Large companies are embracing Flash for rich media delivery, developers are jumping on the bandwagon in swarms

Not long ago developers and IT professionals looked at Flash with disdain. The anti-Flash camp had contempt for its lack of accessibility, minimal standards compliance, and of course there was the infamous back button debacle. But things have changed. Large companies are embracing Flash for rich media delivery. Developers are jumping on the bandwagon in swarms. In the last year there's been an explosion in Flash development tools, including several full-featured development environments and a homespun SWF compiler or two. Flash video suddenly seems to be everywhere, and if you're not talking about AJAX you're talking about rich Internet applications with Flash. So, now that we're confident that Flash is here for the long haul, the question becomes: Is Actionscript coming along for the ride?

Recently, a flurry of developer tools has made Flash development a more attractive proposition. Now, with a plug-in, developers can use Eclipse (the Java favorite) as their IDE, and even compile to SWF with a compiler called MTASC. Still, some developers turn to another solution, such as Flex, for full-featured layout components and true rapid application development.

Interestingly, one of the most exciting tools to surface lately doesn't have anything to do with Actionscript at all. Xamlon Web, created by Xamlon, Inc., lets .NET developers create Flash applications purely in C# or VB.NET. Entire program can be written in Visual Studio .NET and then deployed to the SWF format. Although there are undoubtedly some nuances in developing for Flash Player using .NET, the process is strikingly similar to developing for a typical Windows forms application.

Xamlon, Inc., is the brainchild of Paul Colton, the original author of the JRun server software purchased by Allaire and, subsequently, Macromedia. Originally, Paul's concept was to make Microsoft's Extensible Application Markup Language (XAML) available to .NET developers for immediate use in developing Windows desktop applications. XAML, which will be released with .NET 2.0 and Windows Longhorn, is an application markup language comparable to Mozilla's XUL or Macromedia's MXML. Although Colton's original product, Xamlon Desktop, was well received, he found that the product's real power was in deploying to the Web using SWF.

As Colton described his vision for Xamlon Web, "The idea is to let developers use Visual Studio to write in .NET and deploy directly to the Web without knowing anything about the target, which in this case is Flash."

Colton feels that making the Flash format a viable option for .NET developers is a big step. "We've taken the very best of Microsoft and deployed it to the very best coming out of Macromedia, and we're delivering one product that neither company really can because of competitive forces," he said, suggesting that the combination of Flash delivery with the Microsoft development workflow and IDE creates a best-of-breed product that their parents can't deliver.

The jury is out on how effective Xamlon is and will be until the 1.0 release arrives in mid-July, but even the current beta version has been used to do some interesting things. One example on the Xamlon Web site uses SOAP Web Services to create a Flash-based airline seat selector entirely in XAML and C#. Another connects to an XML source and displays local weather information. And, while the XAML-based layout is one of the more interesting features, it's actually not needed to develop applications. In fact, a developer could write a Xamlon application using only standard C# with no XAML at all.

The Xamlon process leverages existing Microsoft technology and tools to achieve a streamlined process that's familiar to .NET developers. Xamlon Web offers complete Visual Studio integration, letting developers create their apps in a familiar way and then deploy to the SWF format. Perhaps the most interesting component is that, unlike competing tools, Xamlon doesn't compile the C# or VB.NET code; Microsoft's compiler compiles the code into Microsoft's Intermediate Language (IL). Xamlon then takes over, creating a SWF file from the IL bytecode. This means that Xamlon will evolve more or less as the Microsoft .NET platform does, and should support any .NET language. Xamlon Web will also allow for some extensibility, including a component framework for extending Xamlon's capabilities.

Xamlon Web claims to be fully .NET-complaint and support most common .NET classes. It only includes a subset of .NET functionality that Flash can support, which is actually quite powerful. The product is still in beta, so we won't have full functionality until the July release, but Colton is confident that version 1.0 will be production-ready.

For the experienced Flash developer, Xamlon offers the SwfNative namespace that lets developers access most of the functionality available in an Actionscript application. The only glaring omission is the remote NetConnection, so connecting to a Flash Communication Server isn't possible. Xamlon plans to investigate this more thoroughly, so hopefully an early version will rectify this problem. Flash Remoting isn't supported either (although SOAP Web Services are).

Macromedia's MXML was one of the first commercially available application markup languages, and it seems that Xamlon Web will actively compete against Flex in some respects. Although Xamlon's Web site flatly says that it won't, Colton spoke of a server-based version of Xamlon Web following 1.0's release. When asked what advantages Xamlon Web had over Macromedia Flex, he replied, "XAML is much more thorough and involved and has a much broader set of capabilities than MXML." While this may be true, it's also true that only a subset of XAML and .NET can really be applied in the context of a Flash application. If the two products ultimately do compete, there will be irony in the fact that Flex runs atop JRun, the server software originally written by Colton.

And, since Colton did create JRun, why does Xamlon support .NET and not Java? Xamlon's rationale as a company was Microsoft's XAML, so it makes sense that the software supports .NET, but it poses problems for developers who write in Java or on the Apple platform - in fact, they're pretty much excluded from Xamlon. Colton says he intends to correct this in the future by creating a Java version of the software and it will be interesting to see if the Java version supports XAML markup as fully as the .NET version. Colton didn't have a projected release date for the Java version, but stated that it's 'in the works.'"

He repeatedly said that Xamlon's main benefit was multi-channel delivery: in theory, a Xamlon application can be delivered via the Web, a desktop application, and a mobile device with little extra effort. This, of course, is something developers have been attempting to attain for years, so it'll be interesting to see if Xamlon's unique blend of Microsoft and Macromedia technologies achieves it. It has yet to deliver the proof-of-concept.

Does Xamlon deliver on its promises? The Xamlon Web beta comes with more than 20 examples that try to show that it does, and the Xamlon Web site has some more intriguing real-world examples of applications developed in Xamlon. Since no programming article would be complete without the perennial "Hello World" example, let's dive into how Xamlon can be used to create the simplest of applications. This is the XAML markup code:

More Stories By Jim Phelan

Jim Phelan, a member of the Editorial Board of Web developer's & Designer's Journal, is VP of Development and Chief Architect for Stream57, a New York City based firm specializing in communication solution development for the enterprise. Jim's expertise in creating solutions for consolidation and collateralization of business communications has allowed his team to create applications for the management and delivery of live and on demand rich media content. He is a strong proponent of the Adobe Flash Platform.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
MXDJ News Desk 08/03/05 01:21:12 PM EDT

Microsoft .NET On A Flash, A New Tool Lets .NET Developers Write Flash Applications
Not long ago developers and IT professionals looked at Flash with disdain. The anti-Flash camp had contempt for its lack of accessibility, minimal standards compliance, and of course there was the infamous back button debacle. But things have changed. Large companies are embracing Flash for rich media delivery. Developers are jumping on the bandwagon in swarms. In the last year there's been an explosion in Flash development tools, including several full-featured development environments and a homespun SWF compiler or two.

@ThingsExpo Stories
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, will examine the regulations and provide insight on how it affects technology, challenges the established rules and will usher in new levels of diligence...
In his session at @ThingsExpo, Sudarshan Krishnamurthi, a Senior Manager, Business Strategy, at Cisco Systems, discussed how IT and operational technology (OT) work together, as opposed to being in separate siloes as once was traditional. Attendees learned how to fully leverage the power of IoT in their organization by bringing the two sides together and bridging the communication gap. He also looked at what good leadership must entail in order to accomplish this, and how IT managers can be the ...
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
In the enterprise today, connected IoT devices are everywhere – both inside and outside corporate environments. The need to identify, manage, control and secure a quickly growing web of connections and outside devices is making the already challenging task of security even more important, and onerous. In his session at @ThingsExpo, Rich Boyer, CISO and Chief Architect for Security at NTT i3, discussed new ways of thinking and the approaches needed to address the emerging challenges of security i...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
The financial services market is one of the most data-driven industries in the world, yet it’s bogged down by legacy CPU technologies that simply can’t keep up with the task of querying and visualizing billions of records. In his session at 20th Cloud Expo, Karthik Lalithraj, a Principal Solutions Architect at Kinetica, discussed how the advent of advanced in-database analytics on the GPU makes it possible to run sophisticated data science workloads on the same database that is housing the rich...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
"MobiDev is a Ukraine-based software development company. We do mobile development, and we're specialists in that. But we do full stack software development for entrepreneurs, for emerging companies, and for enterprise ventures," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.