Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-28
4
Medium Priority
?
309 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
  • 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

971 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