Whoa, what a journey its been, Flex & ColdFusion a partnership made in heaven???? hmmmmmm, all I can say is its wicked once its working
So, I am writing this post so it must be working, so far mac and pc both like it which is cool, further debugging is needed but thought I would get it up and blogged.
http://www.nutrixinteractive.com/contentMgr/bin/adminManager.html
A client wanted a site for providing potentially shed loads of data, videos and downloads, so I thought Flex could be fun for this one. Only problem was that I also needed a content management system for the client to update and add to the site as there may be a quick turn around of information. The bible for me was Adobe Flex 2 Training Source and I cannot recommend this enough for getting started. One aspect I wanted to avoid was the utilisation of soap.WebService for sending and retrieving information from a database purely for the reason that I want to use ColdFusion. So implemented RemoteObject instead and found it awesome.
So now in full swing with Flex and ColdFusion, what I really like is building custom event classes and custom components like a file uploader and for the actual site a flv player. Its nice to spend loads of time to create these components knowing that the next project you need similar functionality you can just plug your custom component in piece of cake.
One silly problem I had was getting the whole lot to work on my shared remote server, a few things that I had to check and support at my webhost provided include (please note I cannot say that the webhost support is the root to things working or whether they should are correct, they simply worked for me):
-The server is running version 7,0,2,142559.
-Amended your Jrun wildcard filter such that IIS passes requests for “missing files” (ie gateway calls) through to coldfusion.
-To resolve error: access denied (coldfusion.tagext.GenericTagPermission cfobject) I’ve enabled CFObject.And I set up the project by creating the flexappfolder in my personal website located in my ColdFusion root (i.e. C:\CFusionMX7\wwwroot\mywebsiteroot\flexappfolder) and then created a project in Flex choosing:
ColdFusion Flash Remoting Service
Used the default for:- use ColdFusion server
Once the project was created I went into project properties and in Flex Builder Path put the output folder URL as http://localhost:8500/flexappfolder/bin
The Flex Server settings showed Root Folder as C:\CFusionMX7\wwwroot and Root URL: http://localhost:8500/
Ensure that the note notation paths to the cfcs include the flexappfolder e.g. flexappfolder.cfcs.mycfc
Then uploaded the whole shiznit to me remote server.Oh, and it certainly did not work str8 away, a lot of trial and error, my main (or maybe not mine) fault is that there seem to be many different bits of advice and information on how to do this online. All I can say is persevere, its well worth it.
P.S. If you would like a similar Flex Content Management System developed for your site please contact me on simon@newtriks.com
Brgds,
CP
| Copy and Paste the code below | |
| Email and IM | |
| Websites | |
| Forums | |
follow:
July 31st, 2007 at 5:04 pm
Just thaught id complement you on this project, im brand new to flex and was looking for an example similar to yours. Anyways im guna keep reading.
August 20th, 2007 at 7:52 pm
thanks man!
April 5th, 2009 at 5:12 am
looks like the link is down, is there a way to see your content management system?