Solved

Still having printing problems.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Flash Free Transform Tool 2 129
Begin mp4 video on first frame 6 167
Converting CFGRID from Flash to HTML in Coldfusion 1 90
Adobe Indesign CS6 4 99
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

895 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

18 Experts available now in Live!

Get 1:1 Help Now