Null errors within print2flash_fla
Posted: Sun Aug 25, 2013 10:33 am
Hi,
I am trying to embed a swf created with print2flash in to an AIR application; ultimately I need it for both desktop and mobile.
I have installed the trial of print2flash and generated swf files, with output settings using the Standard Actionscript 3 template, and with all the 'disable' settings unchecked.
I have tried to load the generated swf using the Print2FlashDoc3 MXML component from the print2flash SDK download.
I have also tried downloading using a Loader directly, setting the LoaderContext domain as detailed at http://help.adobe.com/en_US/FlashPlatfo ... oader.html
I have tried doing this within a desktop app, and within a mobile app.
In all cases, the swf fails to display. When I use the Loader, I get the following error message when the swf completes loading:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at print2flash_fla::MainTimeline/CenterMsg()
at print2flash_fla::MainTimeline/frame1ResizeHandler()
at print2flash_fla::MainTimeline/OnSettingsAvailable()
at print2flash_fla::MainTimeline/frame1()
For a mobile project, using Print2FlashDoc3.mxml, I find that Security.allowDomain("*") throws an exception, and then when loading completes I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at print2flash_fla::MainTimeline/frame2()
I have attached a .zip containing my 3 test projects (which are set up to use Flex SDK 4.5.1, but I have tried withi 4.6 too).
Can anyone advise how to get a print2flash swf to load in an AIR app?
I like the look of the API and I would buy the product if it works, but at the moment it looks like it is a non starter - hopefully I am just missing a trick.
Thanks,
Kevin
I am trying to embed a swf created with print2flash in to an AIR application; ultimately I need it for both desktop and mobile.
I have installed the trial of print2flash and generated swf files, with output settings using the Standard Actionscript 3 template, and with all the 'disable' settings unchecked.
I have tried to load the generated swf using the Print2FlashDoc3 MXML component from the print2flash SDK download.
I have also tried downloading using a Loader directly, setting the LoaderContext domain as detailed at http://help.adobe.com/en_US/FlashPlatfo ... oader.html
I have tried doing this within a desktop app, and within a mobile app.
In all cases, the swf fails to display. When I use the Loader, I get the following error message when the swf completes loading:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at print2flash_fla::MainTimeline/CenterMsg()
at print2flash_fla::MainTimeline/frame1ResizeHandler()
at print2flash_fla::MainTimeline/OnSettingsAvailable()
at print2flash_fla::MainTimeline/frame1()
For a mobile project, using Print2FlashDoc3.mxml, I find that Security.allowDomain("*") throws an exception, and then when loading completes I get:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at print2flash_fla::MainTimeline/frame2()
I have attached a .zip containing my 3 test projects (which are set up to use Flex SDK 4.5.1, but I have tried withi 4.6 too).
Can anyone advise how to get a print2flash swf to load in an AIR app?
I like the look of the API and I would buy the product if it works, but at the moment it looks like it is a non starter - hopefully I am just missing a trick.
Thanks,
Kevin