Originariamente inviato da Zadok
ciao a tutti, ho inserito un pop up in un filmato flash:
var larg=Stage.width
var alt=Stage.height
var titolo=""
var nome="testo.swf"
var mio_stile = _global.styles.Window = new mx.styles.CSSStyleDeclaration()
//scegli il colore
mio_stile.color =0xffffff
//il colore dello sfondo
mio_stile.backgroundColor=0xffffff
//stile del testo e così via
mio_stile.fontStyle = "normal"
mio_stile.fontSize=13
mio_stile.fontFamily="arial"
mio_stile.textAlign="left"
mio_stile.borderStyle="solid"
mio_stile.borderColor=0xff6600 btn.onRelease=function(){
var popUp=mx.managers.PopUpManager.createPopUp(_root,m x.containers.Window, false, {
closeButton:true, title:titolo, contentPath:nome })
popUp._visible=false
oggetto = new Object();
oggetto.handleEvent = function(par){
if(par.type == "complete"){
popUp._visible=true
var LARC= popUp.content._width
var LunC=popUp.content._height+21
popUp._x=((larg-LARC)/2) - 120
popUp._y=((alt-LunC)/2) + 230
popUp.setSize(popUp.content._width , popUp.content._height+30 )}}
popUp.addEventListener("complete",oggetto)
listener = new Object()
listener.click = function(){
popUp.deletePopUp()}
popUp.addEventListener("click", listener)}
il problema è che l'aspetto del pop up non piace e non riesco a fare modifiche cosa devo fare. Grazie.