Comunidad de diseño web y desarrollo en internet online

Ajuste de pantalla en Flash AS3

Citar            
MensajeEscrito el 04 Abr 2011 10:12 pm
Hola,
estoy haciendo una pagina web y he consguido que se ajuste al tamaño de la pantalla, pero pierdo parte del escenario si la pantalla es más pequeña que el escenario y no me salen los scrallbars. ¿saben alguna solucion?
Les dejo el Actionscript que utilicé.
Gracias

Código ActionScript :

var myStage:Stage =this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;

function resizeDisplay(e:Event):void{
   
   var swfWidth:int = myStage.stageWidth;
   Object(this).fons.width = swfWidth; 
}

myStage.addEventListener(Event.RESIZE, resizeDisplay);

function initialDisplay(e:Event):void{
   var swfWidth:int = myStage.stageWidth;
   var swfHeight:int = myStage.stageHeight;
   
   Object(this).fons.width = swfWidth;
   Object(this).fons.height = swfHeight;
}

addEventListener(Event.ENTER_FRAME, initialDisplay);

Por hec_26

7 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 14 Abr 2011 04:37 pm
¿Nadie me puede ayudar?

Por hec_26

7 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 14 Abr 2011 04:59 pm
Creo que podrias usar SWFFit. Te digo 'creo' porque personalmente no lo he utilizado. Por curiosidad, que tan grande es tu swf?

Por Acreonte

Claber

1543 de clabLevel

5 tutoriales
6 articulos

Genero:Masculino  

Digital Scientist

firefox
Citar            
MensajeEscrito el 14 Abr 2011 06:06 pm
El stage tiene 1150x650 px. Voy a probarlo, ¿sabes como se usa?

Por hec_26

7 de clabLevel



Genero:Masculino  

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.