2

I'm just starting to develop an AS3/MXML application on Linux using the command-line Flex 4 compiler. When running mxmlc -source-path=. MyApp/Main.as, I get the following warning:

/home/andreas/projects/as3/MyApp/src/MyApp/Main.as: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.

Another SO answer says that the solution is to link to my preloader. I don't think my project needs a preloader as it's pretty small; can I just ignore the warning?

Community
  • 1
  • 1
Andreas
  • 7,470
  • 10
  • 51
  • 73
  • I believe the issue is if you're using run-time shared libraries (something like .so or .dll files loaded at run-time and cached) then it needs a preloader because the preloader generally runs once for the RSLs loading and once for the application swf itself loading. If it's just a warning and your app still runs fine I think it's safe to ignore, maybe it just has a blank frame it uses while loading the RSLs. The other option it's giving is to embed the library code in your swf. – shaunhusain Jul 28 '12 at 18:52

2 Answers2

1

You should make a preloader, even if your file is pretty small.. the best if you have a preloader, because what's if the user has a very slow internet connection? Or lost the connection while loading.

Zhafur
  • 1,626
  • 1
  • 13
  • 31
1

If your project is really small (like less than a megabyte) and you don't think it will be used widely, a preloader isn't completely necessary. As Zhafur said people with a slow connection such as dial-up might be confused for a while but even so, small apps shouldn't take too long.

However, if you can be bothered, a preloader is probably a good choice for any Flash app embedded in a web page. And if it's small, you don't need anything fancy, just a simple percentage count would do the trick.

puggsoy
  • 1,270
  • 1
  • 11
  • 34