I've only used the tree component a little, but I think that would work fine. You don't need to do anything in Flash but change the path/filename of the xml file it's using to be the coldfusion page which will output the xml dynamically. The Coldfusion file will follow the loose code that Alan outlined in the first post.
-Scott >Ok, > >A twist on this would be the tree control inside flash that uses xml as the >datasource. > >I currently use this via a hardcoded xml file but would lke to change it to >a query based xml file if that makes sense > >Will your function allow for this? > >Jim > >(Sorry about my first errant reply to the list) > >You've got the right idea on the CF side. What I've done recently is place >your swf in a typical HTML page and have it (the swf) call the cfm page >using a load xml function - the actionscript is roughly: > >XML.prototype.ignoreWhite = true; >dataXML = new XML(); >dataURL = "./createxml.cfm"; >dataXML.load(dataURL); >dataXML.onLoad = ...some function to proceed to in the swf... > >Works like a charm and you can have a flash event recall the XML load method >if you need to refresh the data without refreshing your HTML window. > >-Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3588 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
