Sorry, I was assuming you wanted a website where the user only accessed content via the flash. In that case you would create a home page that served the flash file with HTML, but everything else in XML.
If you're wanting dual views then Scott is right, you would need two webskins. A standard approach to create a "switch" webskin that includes an XML webskin if url.format = "xml" and an HTML version otherwise. That way the flash can access the data it needs, but the content is still available as per usual to browsers. <cfif structkeyexists(url,"format") and url.format eq "xml")> <cfinclude template="displayXML" /> <cfelse> <cfinclude template="displayHTML" /> </cfif> Blair On 10/9/07, Scott Talsma <[EMAIL PROTECTED]> wrote: > > You would probably have to create two webskins--one to provide the flash > object (and output something into flashvars for the xml data callback), > and > another to output the xml data (to which the callback would be made after > the flash object loads). > > This would be an example of the xml template: > > <cfsetting enablecfoutputonly="yes"> > > <cfset request.bHideContextMenu = true /> > > <cfsavecontent variable="xml"><cfoutput><root> > <title><![CDATA[#stObj.Title#]]></title> > <body><![CDATA[#stObj.Body#]]></body> > </root> > </cfoutput> > </cfsavecontent> > > <cfsetting showdebugoutput="false"> > <cfcontent type="text/xml"> > <cfoutput>#xml#</cfoutput> > > <cfsetting enablecfoutputonly="no"> > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Nick > Sent: Monday, October 08, 2007 10:14 AM > To: farcry-dev > Subject: [farcry-dev] Re: Flash/Flex frontend > > > I'm only just getting started with Farcry. Would you by any chance be able > to include a sample of how the webskin might work that way? If I modify > the > webskin to output just the XML, wouldn't I just get XML when I try to view > the page, rather than the desired flash content? > > On Oct 6, 6:36 pm, "Blair McKenzie" <[EMAIL PROTECTED]> wrote: > > An alternative is to simply change all the webskins so that they > > output XML instead of HTML. Then the flash app would access the data > > exactly the same way as a user looking at a normal website: by opening > > /index.cfm?objectid=xxx, where the objectid specifies the data/content > item. > > > > Blair > > > > On 10/6/07, nickel4242 <[EMAIL PROTECTED]> wrote: > > > > > > > > > You would need to set up proxy cfcs to access your custom types and > > > the built in types throught application scope. So dmHTML_proxy.cfc > > > should access application.types.dmHTML directly in order to interact > > > with it. I would put these somewhere under the www folder. Perhaps > > > in a folder called remote or cfcs or something. > > > > > The functions in these cfcs should be set to access="remote" and > > > should return the same XML as your JSP pages are calling now. You > > > should be able to reuse a lot of your Flash content. > > > > > Navigation nodes are a content type just like dmHTML, and any of > > > your custom types. If you look at the genericNav custom tag you can > > > see how it gets them from the DB. You will want to do something > > > similar and either pass it via Flash Remoting or XML to your > Flex/Flash > stuff. > > > > > Make sure when you author the proxy cfcs that you include some kind > > > of authentication so that you know your Flash stuff is calling your > > > remote methods. > > > > > On Oct 5, 2:06 pm, Nick <[EMAIL PROTECTED]> wrote: > > > > I've heard this is a fairly common occurance, but can't find any > > > > sample code on how it would be done. I'm wanting to have FarCry > > > > drive an all-flash site. Currently, our sites are in JSP, and > > > > we're getting the XML data into flash through HTTP calls. Pretty > straight forward. > > > > How would I do the same within the Farcry framework, such that > > > > Farcry would build the navigation and content all dynamically? > > > > > > Is there a sample Flash/Flex project perhaps that I could look at > > > > as an example of how it would be done? Thanks. > > > > > > Nick > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
