Comunidad de diseño web y desarrollo en internet online

ScrollPane dentro de Window component

Citar            
MensajeEscrito el 04 May 2007 12:47 am
que tal, tengo una imagen que quiero mostrar dentro del componente Window
pero mi imagen es mas grande que el tamaño del Window
para ésto quiero usar el ScrollPane

Hay alguna forma de que el componente Window tenga scrollbars?? y cómo lo hago??

ayudenme jejeje

Por alecks

16 de clabLevel



Genero:Masculino  

Manzanillo, Colima, México

msie7
Citar            
MensajeEscrito el 04 May 2007 06:21 pm
Encontré una página donde explica cómo hacerlo pero la verdad no me ha salido :( y esque no sé mucho de ActionScript

Según http://ghostwire.com/go/357 aquí lo explica....

The component does not have its built-in scrollpane. To embed a GhostWire ScrollPane, follow these steps:
(1) Drag and drop an instance of the ScrollPane (barebones version, without frame) onto the stage and name the instance "myScrollPane".
(2) Convert that instance into a symbol and export it. Give the symbol an identifier, let's say "myScrollPane". Delete the symbol on the Stage.
(3) Drag and drop an instance of the Window component onto the Stage and name it "myWindow".
(4) Add the following actionscript to the timeline:
// ** Prepare **
var embeddedScrollPane = myWindow.getContent().myScrollPane;
embeddedScrollPane.setSize(myWindow.getViewableSize().width,myWindow.getViewableSize().height);
myWindow.onResize = function(w,h)
{
embeddedScrollPane.setSize(w,h);
}
// ** Load the content **
// ** Note that now you load into the scrollpane instead of the window **
// EITHER
// embeddedScrollPane.setScrollContent(symbolID);
// OR
// embeddedScrollPane.loadScrollContent(url);



Les agradecería mucho si alguien me dijera como hacerlo, o si alguien ya ha hecho algo así

Por alecks

16 de clabLevel



Genero:Masculino  

Manzanillo, Colima, México

msie7
Citar            
MensajeEscrito el 08 May 2007 01:42 am
alguna respuesta??

la verdad me gustaría mucho poder usar este control
así q se los agradecería mucho q me apoyaran!

Por alecks

16 de clabLevel



Genero:Masculino  

Manzanillo, Colima, México

msie

 

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