Search box doesn´t work in flash Full Screen mode

Publishing Print2Flash Documents embedding them in Flash movies
Post Reply
alfonso_ortega
Posts:2
Joined:Fri Apr 05, 2013 10:12 am
Search box doesn´t work in flash Full Screen mode

Post by alfonso_ortega » Fri Apr 05, 2013 10:45 am

Hi.

I am trying to embed a PrintToFLash document in Flash ussing the AS3 code provided by you. Everything works fine, except the search box tool and the goto page tool. My Flash movie executes, in the very first lines of code: stage.displayState = StageDisplayState.FULL_SCREEN.

When the Movie is in FullScreen mode, the user can´t write in the search and the gotopage tools. I have to press the Escape key to allow the user to write in these fields. Is there any fix or workaround you know to this situation?

This are the code that I´m using:

Code: Select all

// importamos las clases necesarias
import flash.display.Stage;
import flash.display.StageDisplayState;
import Print2Flash.*;
import flash.events.Event;
import flash.ui.Mouse;

var paginas:Number;
 

stage.displayState = StageDisplayState.FULL_SCREEN;

// cargue del documento P2F
var P2FDocLoader:Print2FlashDoc3=new Print2FlashDoc3("pisc.swf",258,50,765,716,this);
P2FDocLoader.addEventListener(Print2FlashDoc3.ONLOADEVENT, OnLoaded);

var P2FDoc:MovieClip;

function OnLoaded(e:Event) {
  P2FDoc=P2FDocLoader.getDoc();
  P2FDoc.setCurrentZoom("page");
}

present.addEventListener (MouseEvent.CLICK, paginar1);
pisc.addEventListener (MouseEvent.CLICK, paginar2);
momI.addEventListener (MouseEvent.CLICK, paginar3);
momII.addEventListener (MouseEvent.CLICK, paginar4);
momIII.addEventListener (MouseEvent.CLICK, paginar5);
momIV.addEventListener (MouseEvent.CLICK, paginar6);
momV.addEventListener (MouseEvent.CLICK, paginar7);
momVI.addEventListener (MouseEvent.CLICK, paginar8);

function paginar1 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(6);
	txt_cap.text="Presentación e Introducción";
}
function paginar2 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(8);
	txt_cap.text="El Plan Integral de Seguridad y Convivencia Ciudadana (PISCC)";
}

function paginar3 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(12);
	txt_cap.text="Conocimiento del marco normativo y de políticas públicas";
}

function paginar4 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(24);
	txt_cap.text="Elaboración del diagnóstico de la situación de seguridad y convivencia ciudadana";
}
function paginar5 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(36);
	txt_cap.text="Formulación estratégica del PISCC";
}

function paginar6 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(44);
	txt_cap.text="Planeación financiera y operativa";
}

function paginar7 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(62);
	txt_cap.text="Implementación y seguimiento del PISCC";
}

function paginar8 (evento:MouseEvent):void{
	P2FDoc.setCurrentPage(67);
	txt_cap.text="Evaluación";
}


Thank you in advance.

Alfonso Ortega

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Search box doesn´t work in flash Full Screen mode

Post by staff » Fri Apr 05, 2013 5:45 pm

You need to switch your application not to “full screen” mode but to “interactive full screen” mode in order to achieve this:

Code: Select all

stage.displayState = "fullScreenInteractive";
Also, you need to have the Flash Player 11.3 or a higher version for this function to work.

alfonso_ortega
Posts:2
Joined:Fri Apr 05, 2013 10:12 am

Re: Search box doesn´t work in flash Full Screen mode

Post by alfonso_ortega » Fri Apr 05, 2013 8:39 pm

Hello again.

Thanks for your reply. I tried the new code and does not work. Also, I have to make a multimedia CD, and the main movie is an executable file. I have to ensure that the CD is fully functional in earlier versions of Flash Player.

Is there any other possible solution? If I use AS2 there any code I can use?

Thanks in advance.

Alfonso Ortega

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Search box doesn´t work in flash Full Screen mode

Post by staff » Fri Apr 05, 2013 10:12 pm

This is a limitation of Adobe Flash Player before version 11.3. Earlier versions of the Flash Player do no support keyboard in full screen mode (see this Adobe help page: http://help.adobe.com/en_US/FlashPlatfo ... splayState).

It is strange that this code still does not work for you. If you embed your Flash movie in an HTML page, make sure that you specify allowFullScreenInteractive parameter in HTML code like this:

Code: Select all

<object ...>
<param name="allowFullScreenInteractive" value="true"/>
...
<embed allowFullScreenInteractive="true" .../>
</object>

Post Reply