• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Still having printing problems.

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
sjp060497
Asked:
sjp060497
  • 3
  • 2
1 Solution
 
rootdirCommented:
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
 
sjp060497Author Commented:
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
 
rootdirCommented:
send your movie to sanjuo@yahoo.com I will take a look
0
 
rootdirCommented:
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
 
sjp060497Author Commented:
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
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.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now