Compatible with Adobe Air?

Using Print2Flash Document API
Post Reply
robertcrown
Posts:6
Joined:Fri Feb 10, 2012 2:27 am
Compatible with Adobe Air?

Post by robertcrown » Fri Feb 10, 2012 2:35 am

Hi everyone,

I'm trying the find out if Print2Flash would work with Adobe Air.

I've downloaded the SDK and tested the "docapisample.fla" but changed the publish settings to Adobe Air 1.5. I get the following error:

SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at Print2Flash::Print2FlashDoc3/loadDoc()[C:\Users\Robert\Documents\Downloads\print2flashsdk\DocumentAPI\ActionScript3 documents\Samples\FlashCS\Print2Flash\Print2FlashDoc3.as:26]
at Print2Flash::Print2FlashDoc3()[C:\Users\Robert\Documents\Downloads\print2flashsdk\DocumentAPI\ActionScript3 documents\Samples\FlashCS\Print2Flash\Print2FlashDoc3.as:20]
at docapisample_fla::MainTimeline/frame1()[docapisample_fla.MainTimeline::frame1:6]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at global/runtime::ADLEntry()


Please help as I need to find a solution to this as soon as possible.

Thanks,
Rob

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Compatible with Adobe Air?

Post by staff » Fri Feb 10, 2012 3:32 am

Try to use the attached updated Print2FlashDoc3 class source file. You need to replace with it the old Print2FlashDoc3.as file located in the Print2Flash folder of the sample.
Attachments
Print2FlashDoc3.as
(1.2KiB)Downloaded 1310 times

robertcrown
Posts:6
Joined:Fri Feb 10, 2012 2:27 am

Re: Compatible with Adobe Air?

Post by robertcrown » Fri Feb 10, 2012 3:52 am

That worked perfectly.

Thank you!

Post Reply