Solved

Flash Flipping Book: How do I prevent printing functions from also exiting fullscreen mode?

Posted on 2008-10-28
4
307 Views
Last Modified: 2013-11-11
http://stage.cmc.com/PublicDocs/Web%20Catalog/Catalog-Web.html
---> click "View online interactive version"

When the user is in fullscreen mode and click on either of the print buttons, the movie will exit fullscreen mode. This is very undesirable and it is the very last problem I'm facing with my almost finished project.

Below is the code I believe to be relevant. Should you prefer to open the Flash file... it is available for download here:
https://www.yousendit.com/download/Y2o4YlJXSytrUmxFQlE9PQ
//CODE FOR PRINTING
stop();
print_left_btn.onPress = printLeftPage;
print_right_btn.onPress = printRightPage;
 
function printLeftPage() {
	print_box.printIt(myBook.leftPageNumber, myBook);
}
function printRightPage() {
	print_box.printIt(myBook.rightPageNumber, myBook);
}
 
//CODE FOR FULLSCREEN TOGGLE BUTTON
on (press) {
if (Stage["displayState"] == "normal") {
Stage["displayState"] = "fullScreen";
}else
Stage["displayState"] = "normal";
	play();
}

Open in new window

0
Comment
Question by:designsbymlg
[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
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Savong
ID: 22825667
In order to bring up the print dialog the Flash movie must exit full screen mode.  You should be able to bring up a prompt asking the user if they want to return to full screen when the print job is finished.  That would seem to be the best solution in this case.
0
 

Author Comment

by:designsbymlg
ID: 22826604
Ok. Do you have a recommendation for how to implement that?
0
 
LVL 10

Accepted Solution

by:
Savong earned 500 total points
ID: 22826735
Basically show a prompt/MovieClip after the printjob.send() command is called.  In my experience the send command is synchronous, so whatever you do after it won't come up until after the print box has been closed (either ok or cancel).  So just show a prompt then asking them if they want to return to fullscreen, and set the fullscreen the way it was done initially.
0
 

Author Closing Comment

by:designsbymlg
ID: 31510721
Thank you... I finally reposted after waiting 2 weeks for a response... I can't thank you enough!
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

635 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