cfcFlexplorer 0.1 Released
I'm very happy to announce the release of my latest project, cfcFlexplorer. This project was inspired by Ray Camden's friday puzzler from September in which he proposed that someone take on the challenge of creating a cfc tester. cfcFlexplorer is a Flex based tool which does that, and a little more.
With cfcFlexplorer you simply modify an xml file which contains two variables: the server root directory and the directory from which to begin crawling for CFCs. Once the application recurses the directories, it returns all CFCs (except application.cfc's and anything under cfide) into a navigation tree. From there you can navigate through the tree, selecting any component that you would like to see further information on. When a component is selected, the 'methods' grid is populated with all of the methods within that component. When a method is selected, all of the associated parameters for that method are populated into the 'parameters' grid. The parameters grid contains an addional editable column called 'value' which allows you to populate test values and invoke the component. When invoked, the application opens a new window which will dump the results of the call (if applicable). If your component has an init constructor, a checkbox is automatically populated and the init() function is called prior to invoking your component so that any necessary instance data is available to your call. (Note: If your constructor requires parameters, populate those in the param grid prior to calling your function).
You can either download cfcFlexplorer below, or check it out at RIAForge. There are definitely some enhancements/changes I'd like to make in the future, but I really wanted to get this out there since I think it's a tool that many will find helpful. Currently cfcFlexplorer does not handle passing complex objects (structs, arrays, queries, etc) as parameters so if your method requires these you will not be able to test them.
If anyone would like to help out with the project, drop me a line and let me know. I plan on doing a more detailed write up later this week summarizing my first experiences with Flex. Overall, the project took me about 12 hours so far. That may sound a little high for a simple project, but I did get tripped up here and there a bit on the syntax, etc with Flex. I honestly do feel incredibly comfortable with the MXML and AS3 so far. Perhaps a year of hacking Flash Forms to bits taught me more than I thought it did!







Ryan
Obviously, the tool is probably best kept on a test server to avoid exposing your methods to the public!
Your right! You do have to have fun sometime!! I think its definately a cool application, you've inspired me to finally take the leap into Flex 2 and put a flex interface on one of the apps that Im currently working on.
Great Job!!
When are you planning on populating the SVN repo? It's empty!
SecurityError: Error #2148: SWF file file:///C|/Inetpub/wwwroot/afmetrics/cfcFlexplorer/Flex/bin/cfcFlexplorer.swf cannot access local resource file:///C|/Inetpub/wwwroot/afmetrics/cfcFlexplorer/Flex/bin/settings.xml. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at flash.net::URLLoader$iinit()
at cfcFlexplorer/::initApp()
at cfcFlexplorer/___Application1_creationComplete()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
I'm running the app locally and have access to all resources. Thanks.
I plan on cleaning up the zip when I get a chance to better organize it and get rid of the redundant files.
Location: C:\inetpub\wwwroot\cfcflexplorer\
Error:
faultCode:Client.Error.MessageSend
faultString:'Send failed'
faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed'
Todd, I was about to start making enhancements to it - want to collaborate? Wouldn't want to do something that you're already working on.
I think the first thing to do is:
- Have a script which generates an XML file that contains the cfc tree and details; as opposed to trying to analyze it real time, that would speed things up dramatically.
- Allow for multiple roots. E.g
Root1 CFCs
Root 2 CFCs
Etc...
This tool has huge potential!
how can i create transparent/semi-transparent control that can overlap more than other control?
Thanks
great Job
Thanx!!!
I agree there is great potential and would really appreciate the collaboration.