The image viewer is founded and loaded in the output to the
screen, but I cannot get the Image Viewer to display the image
correctly, even though I succeed when either I run the .swf from
the command-line or from an HTML page.
My webapp is called FRSApp. The directory structure is, under
The error is either a "failed to load image" generated by the
Image Viewer code, or a Flex system error message, resembling a
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
Solved the problem. I had made several mistakes. One of them
was to pass in the J2EE context path when what was needed was the
fully qualified image url:
The second mistake was to assume the flashvar variable could be
picked up by initializing Action Script in the the mxml file,
designated by <mx:script> tags. No, the flash variable will
only be visible within the <mx:Application>