[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Print Scrolled Area with Combo Boxes in Flash

Posted on 2007-10-14
11
Medium Priority
?
195 Views
Last Modified: 2010-04-03
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
0
Comment
Question by:brendanwynne
  • 6
  • 5
11 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 20075407
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
 

Author Comment

by:brendanwynne
ID: 20076378
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
 
LVL 23

Expert Comment

by:Zeffer
ID: 20076470
It should print the stage within the clip boundaries at any one time..well it used to :\

Z
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:brendanwynne
ID: 20076477
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
 
LVL 23

Expert Comment

by:Zeffer
ID: 20076507
sorry can't test this ..I have your fla..please wait..or maybe someone else will assist

Z

0
 

Author Comment

by:brendanwynne
ID: 20076557
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
 
LVL 23

Expert Comment

by:Zeffer
ID: 20090307
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
 

Author Comment

by:brendanwynne
ID: 20094429
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
 
LVL 23

Expert Comment

by:Zeffer
ID: 20098525
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
 
LVL 23

Accepted Solution

by:
Zeffer earned 2000 total points
ID: 20099258
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
 

Author Comment

by:brendanwynne
ID: 20099565
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question