I would just make the suggestion that perhaps you can cause a print-stylesheet rule to swap in a static image that represents the SWF for when a user is printing... that way the swf appears to be printed along with the page, but in reality it's just an image like everything else. As suggested before, this image could be a transparent PNG so the design/layering of your page can be maintained.
Essentially, you just have the "screen" media style put display:block on the SWF, and display:none on the alternate image. And then for "print" media style, you swap and make the SWF display:none and the image display:block. This doesn't catch the "snapshot" live-action state of the SWF, but it gets pretty close to being the page printed with what appears to be the SWF in there. In fact, you could get really exotic and have multiple different screenshots of your SWF prepared, and simply pick which one via CSS to have printed depending on where the user was in the timeline of your SWF. --Kyle From: Aran Rhee Sent: Monday, December 15, 2008 5:33 PM To: [email protected] Subject: RE: Printing a .swf embedded w/ wmode transparent Brad. I have done a project using bitmapdata / saving images using AIR to save an image sequence directly to disk for making backup images (animated GIF / static GIF) for online swf display ads, but never to integrate back into a web page. Re: transparency printing - There are lots of transparent GIFs / PNGs in modern websites which seem to print ok. You could do a pretty quick proof of concept (without doing all of the bitmapdata authoring) with a pre-created image to see if it will work for you... Aran From: [email protected] [mailto:[email protected]] On Behalf Of Brad Swords Sent: Tuesday, 16 December 2008 4:33 AM To: [email protected] Subject: Re: Printing a .swf embedded w/ wmode transparent That's a very good idea, and i roughly I roughly considered that option. I may have to do the same. Pls let me know how yours works out. I was wondering how printing works out for your images w/ alpha. Have you tried this? Thanks, Brad On Sun, Dec 14, 2008 at 10:58 PM, Aran Rhee <[email protected]> wrote: The only crazy thing I can think to do is take a BitmapData snapshot of the swf (which can maintain 32bit transparency) from within Flash, and then save the image data as an transparent PNG, and recombine the image / other layers as appropriate to print. Something like: http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/ (PNG version) http://www.quietless.com/kitchen/upload-bitmapdata-snapshot-to-server-in-as3/ But using PNG, and pushing the resultant image into the page via AJAX to print and the like. As I said, pretty crazy.... (but hey it's Monday and I live in Australia - we are always a bit crazy down here) Aran From: [email protected] [mailto:[email protected]] On Behalf Of Brad Swords Sent: Monday, 15 December 2008 5:02 PM To: [email protected] Subject: Re: Printing a .swf embedded w/ wmode transparent Yeah, I am screwed...just trying to save a project. I appreciate the word. -B On Sun, Dec 14, 2008 at 9:57 PM, Aran Rhee <[email protected]> wrote: Others may know more, but I don't think what you are wanting to do is possible. Every browser handles the wmode=transparent (+ printing) in a different way, so I would be very surprised if you found a cross-browser solution that works. I have a hard enough time trying to get a normal web page printing as it should ! The print job class in Flash will not render anything outside of the swf, so you would need to have whatever content you wanted to print within the swf (not behind in the HTML page) Aran -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of beez Sent: Monday, 15 December 2008 4:47 PM To: SWFObject Subject: Re: Printing a .swf embedded w/ wmode transparent I have a label printing app that I have embedded into HTML w/ wmode transparent. I am printing using JavaScript to a div containing the .swf...no problems. Does anyone know how to print from html using wmode tranparent: in IE the the .swf background shows up and in Firefox nothing shows up. Also does anyone know a way to print in Flash w/ out a background??? I have already tried printJob in Flash. Thanks! -B --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" 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/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
