I started getting this error today from an application I am developing using FlashBuilder 4. Here's the full stack trace (bold text replaced the actual appname):
ArgumentError: Error #2085: Parameter aliasName must be non-empty string.
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.0.0\frameworks\projects\fra mework\src\mx\managers\SystemManager.as:2620]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.0.0\frame works\projects\framework\src\mx\managers\SystemManager.as:2539]
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx \preloaders\Preloader.as:515]
Looks like the the flash vm tries to load & initialize my application, but fails. I cant seem to figure out why this is happening? It was working last week.
Few things that could have changed:
a) our company updates the flash runtime to patch any vulnerabilities, that may have caused something? ( i tried in FF, IE, and Chrome...same err.)
b) my code updates...but i swear the changes were done further along in the screens...and this error occurs when the app is just getting started.
Appreciate any help/insight...thanks in advance.
If you are using some thing like above in your application and then either the value/path is changed or the alias value is missing.
oh man. thank you. that was it. mhmm...i think this should've been a compiler error. ( I had the alias=""...but since i didnt yet write the remote class, left it blank 2 days back...and of course, forgot about that!)
Not sure how you figured that out...is it mentioned somewhere, that i missed? But I think the compiler should warn me on such errors. Anyone else thinks not?
thanks for the answer!