On Mon, Jan 5, 2009 at 1:30 AM, Don Kerr <[email protected]> wrote:
> I'm only using mx:ModuleLoader, so I cannot set a breakpoint on this tag. How
> do I
> inspect the contents of contentLoader when I'm not using pure
> actionscript/breakpoint?
You can just open the ModuleManager.as file and set a breakpoint on
line 717 (as reported by the stack trace) in Flex Builder. If you're
using the command line debugger:
br ModuleManager.as:717
> Strange thing is that I get the error once on first time page load, then on
> page refresh, it
> works ok and continues to work on all subsequent refreshes. This suggests a
> client-side
> issue. May be an issue with my Mac.
I wouldn't rule out the possibility of a Flash Player bug in your
specific environment, although that's not very likely. Still, it seems
strange that contentLoaderInfo is null -- that should never happen.
You could try loading the module in AS3 with a simple Loader and see
if you still get the problem.
loader = new Loader();
loader.contentLoaderInfo.addEventListener("complete", completeHandler);
loader.load(...);
In the completeHandler function, check that loader.contentLoaderInfo
is not null.
Manish
--
http://manishjethani.com