Hi Does anyone have any ideas about this?
I am really stuck and lost for ideas about how to solve this. Thanks Paul On Sep 20, 2:40 pm, pclinx <[email protected]> wrote: > Has anyone got getPrintableBitmap to work in AIR > > I have replicated the code from Flash example. > > private function printMap():void { > var printJob:PrintJob = new PrintJob(); > printJob.start(); > var sprite:Sprite = new Sprite(); > sprite.addChild(map.getPrintableBitmap()); > > try { > printJob.addPage(sprite); > } catch (error:Error) { > // Show alert > } > printJob.send(); > } > > but I still get the following error: > > SecurityError: Error #2192: Security sandbox violation: > BitmapData.draw:http://maps.googleapis.com/mapfiles/lib/map_1_16.swf > cannot access app:/TipPrint.swf. > at flash.display::BitmapData/draw() > at com.google.maps.core::MapImpl/getPrintableBitmap() > at com.google.maps.wrappers::IMapWrapper/getPrintableBitmap() > at TipPrint/printMap()[C:\Users\Paul\Documents\Flex Builder 3\TipPrint > \src\TipPrint.mxml:213] > at TipPrint/__pbPrint_click()[C:\Users\Paul\Documents\Flex Builder > 3\TipPrint\src\TipPrint.mxml:330] > > It is not obvious from the API documentation what is wrong > > Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
