Print Scrolled Area with Combo Boxes in Flash

I want to print a scrolled area in Flash, which includes combo boxes. Is it possible to print the entire content of the scolled movie clip, including the options that the user has made within the various combo boxes. Thanks!

I've uploaded a sample file of the movie clip I would like to print here:
www.thepropertyviewer.com/scroll.zip
brendanwynneAsked:
Who is Participating?
 
ZefferConnect With a Mentor Commented:
I tried printing this from the broswer..It was very similar in appearance to the print from flash..but despite the scrollbar provided by the browser..it only printed one page! gimme a break..
Incidentally ..you had correctly set the registration point for the printable material.. to ..top-left..which would corresponds to flash's default reference of 0,0...so I am still mystified :-/

Z
0
 
ZefferCommented:
on a button put..

on(release){
   print(_root.scrollpane, "bmovie");
}

on a new layer in frame 1 put the frame label.. #b

went to test it but "printer out of inks"..
but it should do it.

Z
0
 
brendanwynneAuthor Commented:
Thanks Zeffer, but I tried that already. It only prints the area between the scroll bars, which is currently viewable.  I think I need to create a movie clip in run-time, which temporarily copies the content from the scrollpane movie clip, but without scrollbars.  I'm just not sure how to do this. Thanks a lot!
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
ZefferCommented:
It should print the stage within the clip boundaries at any one time..well it used to :\

Z
0
 
brendanwynneAuthor Commented:
Hey Zeffer. It does print the stage but I need to print what is inside the scrollpane movie clip, most of which is not viewable on the stage at any one time...
0
 
ZefferCommented:
sorry can't test this ..I have your fla..please wait..or maybe someone else will assist

Z

0
 
brendanwynneAuthor Commented:
blue-genie posted this response in relation to a similar query but my scrolled content has Combo Boxes as well as text, so not sure how to re-create the copied movie clip off-screen without resetting the combo boxes..?  Thanks!
________________________________________________

ok , put an empty movieclip on the stage (off screen)

lets say give it a name loader_mc

user scrollpane.getContent to return the clip that's loaded (if you're only loading 1 clip you know the linkage ID already so you can specify it explicity).

loader_mc.attachMovie("linkageID");

so on your print method.

if you're using version 7 you can use the Print Job class (see help file) alternatively just use normal print command...
print_btn.onRelease = function() {
      doPrint();
};
function doPrint() {
      var whichToLoad = "my_clip";
      var itemToPrint = _root.loader_mc.attachMovie("my_clip", "my_clip", this.getNextHighestDepth());
      print(itemToPrint, "bmovie");
}

blu :-)
________________________________________________
0
 
ZefferCommented:
I don't think that's going to work
I have managed to print content from the scrollpane but only that which is showing at any one time.
I have looked all over for a solution to this and it seems to be a real problem..also looked at Macromedia documents which are really no help..they address specifying page sizes but not how to print the entire contents of a particular clip.

On one forum someone said they use a work-around which is to resize the scrollpane content to the size of the scrollpane window..then resize back after it is sent to the printer but i've found a reference to that in livedocs and it would be printed at the scaled down size..so no good.
So basically stumped by this one..you would think it would be an absolutely basic task to accomplish wouldn't ya.

Z
0
 
brendanwynneAuthor Commented:
Thanks for your help, Zeffer!

It does seem like a major omission of Flash not to be able to easily print scrolling content. However as a workaround I've uploaded a fla here:
www.thepropertyviewer.com/classschedule.zip

Could you tell me how I can use printjob to print all of the content on different pages, filling the width of each page, rather than scale everything down to the one page.  The .swf is embedded in the .html file.  There are no scrollbars to get in the way now.
0
 
ZefferCommented:
I have spent heaps of time and 39 pages (most both sides) and probably half my new inks ..ah well.. on this and finally got it printing right from flash ..it is a nightmare really ..doesn't seem to behave like help and the livedocs say it will..and it ends up being a whole lot of painstaking guesswork..registration is supposed to be at 0,0.it isn't ..scaling of the clip at print time doesn't work..etc
I had to scale the clip slightly to make it fit the print page.. (it's still clipping the edges slightly but the vital info is there)..move the time buttons inside the main clip..which was a graphic but now it's a movieclip called mc
I put it in the html page and the print button wouldn't work until I moved the code to the button..and now the print panel comes up..I click print..a small printer icon turns up on my task bar and then immediately disappears??..no printing happens AARRH!..it's like the browser has kicked it off.
I'm sending you what I did..you'll see it prints ok from flash..why it won't from the html page ..I really don't know
Will try and figure it out.

http://www.redpearl.co.nz/ee/printjob.zip

Z
0
 
brendanwynneAuthor Commented:
Thanks so much for your help with this, Zeffer.  You got me 90% of the way there!  In terms of printing, Flash is supposed to have come a long way but I think a lot more work needs to be done. Really basic things still pose problems.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.