Solved

Still having printing problems.

Posted on 2001-08-14
5
253 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now