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