View Full Version : Images embedded within dynamic TextField not printing
Jayhawk
04-23-2008, 01:47 PM
Not sure if there's already a thread on this, but my issue is that images that are embedded within a dynamic textfield via XML are not showing up when I try to print using PrintJob. The images are showing up properly within the textfield on the screen, but not in the print preview (and of course not in the final print).
The print functionality is fairly straight forward, I have a MovieClip that contains one dynamic textfield. The textfield is populated by XML and CSS files.
adeem
04-23-2008, 07:23 PM
i did work on printing before and i also come across such issue, in my case it was bcoz i was removing the image from displayobject ( it still shows there but not in printing).
my case was like, i have array of sprite object, and i m showing only one sprite object on stage. in SpriteObject i have html text which also have images sometimes.
soo let suppose, i have a displayobject ('displayedPage') which add sprite objec to the screen, So when i do something like this
this.removeChild(displayedPage); // remove the currently displayed page from the stagae
after that, img is still shown on the stage but not on printing...
if you could post some code here, i might help you !!!
Jayhawk
04-24-2008, 04:21 PM
I figured out my problem this morning. The issue was that the images that were embedded within the textfield were being added at runtime and needed a split second to load the image from the server before placing the MovieClip in the PrintJob (pj.addPage()). I took it a step further and added the images in my library to load into the textfield faster. The printjob function work great after that.
There was another good function getImageReference() that helped me get a reference to the image within the textfield. In my case now, it's a 2 framed MovieClip, that I can switch after the component has already been embedded within the textfield.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.