PDA

View Full Version : Printing problem/dynamic Movieclips


zac
12-15-2004, 06:57 PM
Hi!
This is a bit of a tough one ...
Im trying to print the content of a large scroll pane that spans multiple pages. So far i have managed to get the contents printing out, dividing the content between the pages using the PrintJob class.
My problem now is that i want to add a header and footer (both movie clips) on each page. Each page that i want to print in the printjob has to reference only one movie clip.
So my initial idea was to create an empty movie clip for each page and then build it up with the content : header first, then the section of scroll pane content followed by the footer, this is where the difficulty is ...
I havent found any way of dynamically "cutting" out just a section of my scroll pnae content so i was hoping to duplicate the content movieclip and just put a mask over the bits that i want.

So my problems are that duplicateMovieClip doesnt (afaik) allow me to attach the duplicated clip to a new movie and i cant use attachMovie as the content in the scrollpane is created dynamically.
And even after i have duplicated the clip i cant seem to reference the textfields inside that clip to populate them.
any guidance here would be really helpful, maybe im going about it the wrong way?

zac
12-16-2004, 08:58 PM
anybody have any ideas on this?