I work with developement server and production server.but the
two server have different structure.for example CFCs are in
different folder.May I just copy swf to production server after I
finish the coding in development server.
First of all, are you using ColdFusion remoting to access
your data? (You should be, if you have the choice)
The problem is in the naming of the path to your CFC
For example, if you reference the CFC as
"components.example.mycode.cfc" and that's where it is on Dev, but
on production the CFC is in "special.folder.mycode.cfc"
There really isn't a great answer for this - but you have two
1) Place your SWF in the same directory as your CFC's - this
really isn't a good idea, or good practice, but then again, you
have different environment structures between your dev and
production machines, so I think we're way past "best pratices"
2) Test your SWF, and before you deploy it to production,
change the path to the CFC's and post it live - pray you don't
Anyone else think of a better answer (besides having
production mirror dev, that is)?