Tuesday, June 9, 2009

Flex loads with a blank screen

I'm developing some complex GUI app using the Flex builder 3 (eclipse plug in) and while i was working i suddenly got a blank screen when i ran my application.

no error was printed out in the consul. it appeared that flex was loading but wasn't loading my application.

if this happens to you too, check your code to see if you are embedding a file as XML:

[Embed(source="...data.xml")]
private static var xmlData:Class;


if you are, and the file happens to be malformed (some mistake in the XML structure) you are not going to see any error from the compiler or the runtime(!)
just a peaceful, zen like, blank page.

bugger

1 comment:

  1. It gets worse. Try making some code changes to use Application.application.url to determine the server address dynamically. This works OK run under Tomcat or Weblogic locally but you get the blank screen of zen when trying it on a QA server no matter if you hit the Apache reverse proxy or go directly to the WebLogic QA servers.

    ReplyDelete

Please do not post spam on this blog, Spam sites will be reported to google.
thank you kindly.