right, so have your server code (CFCs) sit in the same folder path in dev, staging, and production so doesn't matter what Flex, Flash, HTML client it is, who cares. OR....if you are running ColdFuison 8, you can set application specific mappings in application.cfc. So, in your local dev application.cfc you could have a mapping that looks like production set to whatever you want.
DK On Mon, Jul 14, 2008 at 2:24 PM, Dan Vega <[EMAIL PROTECTED]> wrote: > Douglas, > The remote object path is used in the Flex app and therefor if its hard > coded it doesn't that get compiled? I think the flash vars is a nice way of > doing. I just threw in an initialize event, check to see if it existed and > if not set it and pass that path on to my views. > > private function loadFlashVars():void { > // load flash vars > _ropath = Application.application.parameters.ropath; > if(_ropath == null){ > // must be development > _ropath = "MyProject.src.cfc"; > } > } > > This works for me but I am open to any suggestions, Im still learning. > > > Thank You > Dan Vega > [EMAIL PROTECTED] > http://www.danvega.org > > On Mon, Jul 14, 2008 at 2:17 PM, Douglas Knudsen <[EMAIL PROTECTED]> > wrote: >> >> why not keep the paths the same? Either directly or through >> application.cfc. >> >> DK >> >> On Mon, Jul 14, 2008 at 1:54 PM, Dan Vega <[EMAIL PROTECTED]> wrote: >> > I have a quick questions about Remote Objects & ColdFusion paths. For >> > the >> > latest project I am working on the development took place on my local >> > machine. I would have many remote calls similar to the following. >> > >> > <mx:RemoteObject id="Clients" destination="ColdFusion" >> > source="MyProject.src.cfc.Clients" showBusyCursor="true"> >> > <mx:method name="listClients" result="listClients(event)"/> >> > </mx:RemoteObject> >> > >> > The problem that I am running into is that when i want to push a release >> > build the source path is going to change. When its published the path >> > looks >> > more like this >> > >> > +projectroot >> > +myproject >> > -myswf.swf >> > +cfc >> > -Clients.cfc >> > >> > >> > My question is what do others do about this. I know that in the web >> > world I >> > could read a config file based on live or dev. The problem is that >> > through >> > out this project I have really learned that I need to stop thinking in >> > terms >> > of "basic web application development". >> > >> > Thank You >> > Dan Vega >> > [EMAIL PROTECTED] >> > http://www.danvega.org >> > >> > >> >> -- >> Douglas Knudsen >> http://www.cubicleman.com >> this is my signature, like it? > > -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?