I'm having issues taking ImageSnapshots in my local-with-networking SWF.

The content it doesn't like is images (Loader instances) loaded from an 
embedded blob:
     [Embed(source="payload.zip", mimeType="application/octet-stream")]
   
The blob is zipped, so there's some byte manipulation on the source data before 
going into Loader.loadBytes:
     sourceImageLoader.loadBytes(data, 
         new LoaderContext(false, ApplicationDomain.currentDomain, null));
    
I've tried with a null LoaderContext to no avail as well.

Is there any setting I can use to bless the data sufficiently to make this 
scenario work?

Thanks much,
michael


SecurityError: Error #2148: SWF file file:///C|/flexworkspace/app.swf cannot 
access local resource file:///C|/flexworkspace/app.swf/[[DYNAMIC]]/1. Only 
local-with-filesystem and trusted local SWF files may access local resources.
        at flash.display::BitmapData/draw()
        at 
mx.graphics::ImageSnapshot$/captureBitmapData()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\graphics\ImageSnapshot.as:188]
        at 
mx.graphics::ImageSnapshot$/captureImage()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\graphics\ImageSnapshot.as:282]



Reply via email to