Thursday, October 04, 2007

Fluorine with AS3 .NET 2, Spoonfeeder

Step by step guide to flash remoting via Fluorine:
  • OS: Vista Ultimate
  • Web Server: IIS7
  • Server Side: .Net 2.0 (C#)
  • Actionscript: 3.0
  • IDE: VS 2005, Flash CS3
Step 1: Download and Install Fluorine
  • Direct download: Fluorine 2.0.7.824 Windows installer (Visual Studio wizard, source code) download
Step 2: Create a new Fluorine web project
  • Simply launch vs 2005, menu, File>New>Web Site> choose fluorine asp.net web app.
  • Save your app. away from c:\users\ iis7 doesn't seem to like it, for the sake of this tutorial i will assume you saved in c:\development\fluorine
Step 3: Install and Configure IIS7
  • Go to "control panel" make sure you are not on the classic mode, click uninstall programs under Programs Icon (label is misleading it used to be add/remove prog. in XP stupid vista)
  • Click the link "turn windows features on or of" in the left hand side task panel
  • Check IIS and ASP.NET as illustrated
  • Run the IIS7 manager to configure IIS7,
  • Expand the tree on the left, till you get "Default web site" right click choose "Add Application" make sure to change App pool to "Classic .NET AppPool"
  • Verify the gateway.aspx by launching you web browser run "http://localhost/fluorine/gateway.aspx" if you get a blank page and done at the status bar then your good to go else you've got iis configuration problems.
Step 4: Actionscript 3 code
call the .net method in sample.cs from flash
code will be published soon...
Step 5: Test it