Solved

Still having printing problems.

Posted on 2001-08-14
5
257 Views
Last Modified: 2006-11-17
Hello,
Well, I am still having a bit of a problem with a Flash printing application.
I have series of movie clips that are selectively loaded from a button
on the Flash home page.  Each movie clip includes a menu with one button
allowing the user to print a document in Flash.  To create the printable
documents, I simply included (within the movie clip) a !#p label on the
first frame of the movie clip.  After a stop action on the 10th frame, I
have five more frames that contain the five pages of the printable
document, and a sixth frame that contains the bounding area for
printing.  I put #p labels on each of the frames that contain the
printable pages, and a #b label on the last frame that contains the
bounding area layer.  I then assigned an action to the print button
within the movie clip.   The actionscript I used is as follows:

on (release) {
    printAsBitmap (0, "bmovie");
    }

When I test the movie clip, the print button works fine.  That is, it
prints the five pages just as I want.  However, when the movie clip is
loaded from the original Flash home page, when I press the print button
in the loaded movie clip, it prints all of the pages of the home page
Flash movie, rather than the pages I want printed from the loaded movie
clip.  I hope this makes some sense.

I tried modifying the print command as follows:

on (release){
     this.printAsBitmap (0, "bmovie");
     }

....but, that did not work.

Any ideas why this works fine from the movie clip itself, but not when
the movie clip is loaded into the parent movie?

Thanks,
Stephen Pintauro

0
Comment
Question by:sjp060497
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:rootdir
ID: 6384533
How are you loading your movie clip in original flash home page? Clearly it depends on loading movie clip into home page flash movie.

printAsBitmap (0, "bmovie");

Instead of 0 you have specify the level of your movie. Here 0 means your original flash home movie. It should be like this,

printAsBitmap(target, "bmovie");

Cheers
Rootdir
0
 

Author Comment

by:sjp060497
ID: 6384691
I tried that too.  The movie clip that contains the print button and the printable pages/frames is called part2_1.swf, and it gets loaded into an invisible movie clip placeholder with the target name "history".  So, I edited the actionscript for the print button in the part2_1.swf movie clip to be as follows:

on (release) {
     printAsBitmap ("history", "bmovie");
      }
   
But, that still will not print the proper pages from the part2_1.swf movie clip.  It still tries to print all of the pages from the root movie.

I also tried the same idea using levels.  That is, I tried loading the part2_1.swf file into level 1, then assigned the following actionscript to the print button:

on (release) {
     printAsBitmap (1, "bmovie");
      }

But, that didn't work either.  Any ideas?
Thanks,
Stephen
0
 
LVL 6

Expert Comment

by:rootdir
ID: 6385341
send your movie to sanjuo@yahoo.com I will take a look
0
 
LVL 6

Accepted Solution

by:
rootdir earned 200 total points
ID: 6386127
Yes I got the answer.

  First you are doing nice project.

  See you are loading index as your base movie at "level0".

  Next you are loading lessonnav.swf movie at target "target1".

  Then you are loading paer2_1.swf at location "target"

  So you need to specify all the path like this

on (release) {
  printAsBitmapNum("_level0.target1.target", "bmovie");
}

I checked and I am able to print only those 5 pages.
I dont know what happen to my yahoo email, right now I am unbale to access it. As soon as that site will up I will send you your updated part2_1.fla file.

  If you need any further help mail me.

Cheers
RootDir
0
 

Author Comment

by:sjp060497
ID: 6388054
RootDir,
Thanks so much for you help with this.  Not only does it now work great, but I have a clear understanding of the process.  
Thanks again,
Stephen
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

726 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