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
Solved

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

Posted on 2008-10-28
4
304 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
flash cs6 4 347
File drag and drop 6 145
Text Transformation using ActionScript 3 5 151
Flash Media Live Encoder unreliable encoding start 2 43
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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.

840 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