mck28
05-15-2004, 02:07 PM
I have a scrollpane embedded in my main swf (main.swf) file. The scrollpane (Pane_scroll) pulls another swf (embedded.swf) into it, which has an dynamic text field. I added a print button to embedded.swf, but i don't know what actionscript code i can use to print the scrollpane or the embedded swf file.
Here is my button code:
this.Print_but.onRelease = function() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
my_pj.addPage(0);
my_pj.send();
delete my_pj;
}
So, basically, my addpage function target is not correct because it is pointing towards the root directory. I tried to put the instance name of the scrollpane, but that didn't work and then i tried to even make a movie clip of the embedded.swf that mirrored it but that didn't work either. So far, i've put the following code into the addpage () and none of them have worked:
embedded.swf
"embedded.swf"
Pane_scroll
"Pane_scroll"
this.Pane_scroll
"this.Pane_scroll"
does anyone have any suggestions?
Thanks in advance.
Here is my button code:
this.Print_but.onRelease = function() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
my_pj.addPage(0);
my_pj.send();
delete my_pj;
}
So, basically, my addpage function target is not correct because it is pointing towards the root directory. I tried to put the instance name of the scrollpane, but that didn't work and then i tried to even make a movie clip of the embedded.swf that mirrored it but that didn't work either. So far, i've put the following code into the addpage () and none of them have worked:
embedded.swf
"embedded.swf"
Pane_scroll
"Pane_scroll"
this.Pane_scroll
"this.Pane_scroll"
does anyone have any suggestions?
Thanks in advance.