The most frustrating part of being a programmer is keeping up with my own legacy code. I used to do a lot of flash and flex projects before apple killed flash. Now I find myself needing to go back and update something on an old site and it's tough to properly maintain my work environment after switching computers a couple of times.
First Flash Builder 4.5 wouldn't open on my new machine.
After a ton of googling, and trying all kinds of things including editing the registry, I found the simple answer.
All I had to do was change the name of the workspace folder, and viola, Flash Builder opened.
Then I run into my next headache, the system couldn't find the old fds.swc file that used to be in the C:/coldfusion9/wwwroot/WEB-INF/flex/lib folder.
That was a nightmare finding that old file. I think I'll put it online somewhere in case anyone needs it.
Then the next headache was upgrading from the old flash sdk to the new one. I couldn't remember which sdk I used on the old code, so I had to update it before the files would compile.
Then I had to change some code before I could compile. I got the error: 'application' has been deprecated since 4.0. Please use 'FlexGlobals.topLevelApplication'."
So on that I had to replace every "Application.application" reference in your project with "FlexGlobals.topLevelApplication". Also had to replace the "import mx.core.Application" with "import mx.core.FlexGlobals".
Altogether I wasted like half a day on this, and the setup is still not complete. Before I was running my flash remoting out of the C:/ColdFusion9/wwwroot folder and using a port number. Now I have everything running through IIS7 and the physical folder is now C:/inetpub/wwwroot so I still have to change the destination for my remoting. I'm not even sure what to change this to. I put the CFIDE folder into the c:/inetpub/wwwroot folder but I think ColdFusion still "lives" at c:/ColdFusion9/ (I'll not sure about that) and then the remoting is expecting a server name/port number in the remoting-config.xml, so I have to do a little research to figure this out. But I'm writing this down with the hopes that somebody out there knows the answer to my quandary.
No comments:
Post a Comment