Hey Jacek,
One of the major requirements for us when we first began development
on this framework was to support Flash 6.0 output since we were
building some mobile applications at the time.
Exceptions are not supported in Flash 6, so we haven't integrated
exception handling yet. We are expecting to branch the code base in
the coming 2 or 3 months and at that time we expect to move our
support up to FP 7, which will include support for exception handling.
We will continue to offer downloads of the Flash Player 6 branch for
developers that are in need of legacy player deployments, but primary
development will soon shift upward into the more robust environment.
Unfortunately, until we get that transition underway, support for
exceptions will be spotty at best. In order to get you productive in
the short term, you could definitely do some boundary-checking on your
arguments in order to unit test the functionality that you're showing
in the example.
assertTrue("view is undefined", view !=3D undefined);
assertTrue("url is undefined", url !=3D undefined);
view.loadMovie(url);
You could also use "assertNotUndefined" but I tend to just make
boolean assertions, even at the cost of some legibility.
Please let us know if you have any more questions and especially if
you wind up implementing some support for exception handling. We would
be interested in taking a patch and possibly publishing an F7
exception branch sooner rather than later.
Thanks,
Luke Bayes
www.asunit.com
|