Tengo este código que llama a un XML donde se definen las rutas y los contenidos
e caso es que quiero agregar un campo mas de texto en el swf que recoja datos de xml
pero no lo consigo, quiero que se llame créditos.
A ver si alguien me puede ayudar
Muchas gracias
Código ActionScript :
stop(); // // // var videoPath:String = undefined; // //--------------------------------------------------------------------------------------------------------------------- // Here you set the Mask //--------------------------------------------------------------------------------------------------------------------- ima.setMask(target); // import mx.transitions.Tween; // // // // // //--------------------------------------------------------------------------------------------------------------------- // Function that builds the MULTIMASK //--------------------------------------------------------------------------------------------------------------------- buildMask_SI = setInterval(buildMask, 50); // // // var riga:Number = 1; var colonna:Number = 1; var i:Number = 0; function buildMask():Void { if (i<24) { target.attachMovie("box","box"+i,i); target["box"+i]._x = colonna*241-241; target["box"+i]._y = riga*141-141; if (riga<4) { riga++; } else { riga = 1; colonna++; } i++; } else { clearInterval(buildMask_SI); buildList_SI = setInterval(buildList, 150); } } // //--------------------------------------------------------------------------------------------------------------------- // XML LOADING //--------------------------------------------------------------------------------------------------------------------- var buildMenu_SI:Number; xmlLoader = "Loading "; // projXML = new XML(); projXML.ignoreWhite = true; projXML.onLoad = function(success) { if (success) { list = this.firstChild; // listNumbers = list.childNodes.length; // e = 0; // } }; xmlLoader = ""; //--------------------------------------------------------------------------------------------------------------------- // +++++++++++++++++++++++++++++++++++++ // // HERE YOU CHANGE THE PATH OF THE // XML YOU WANT TO LOAD // // +++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------------------------------------------------- projXML.load("data/xml/videolist.xml"); // // // //--------------------------------------------------------------------------------------------------------------------- // Function to build list //--------------------------------------------------------------------------------------------------------------------- function buildList():Void { if (e<listNumbers) { ima.listLoader.attachMovie("listItem","listItem"+e ,e); ima.listLoader["listItem"+e]._y = e*90; // ima.listLoader["listItem"+e].title.htmlText = list.childNodes[e].attributes.title; ima.listLoader["listItem"+e].subtitle.htmlText = list.childNodes[e].attributes.subTitle; // ima.listLoader["listItem"+e].title = list.childNodes[e].attributes.title; ima.listLoader["listItem"+e].subtitle = list.childNodes[e].attributes.subTitle; ima.listLoader["listItem"+e].link.htmlText = list.childNodes[e].attributes.linkText; ima.listLoader["listItem"+e].videoURL = list.childNodes[e].attributes.video; myTween = new Tween(ima.listLoader["listItem"+e], "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 30, false); e++; } else { clearInterval(buildList_SI); checkBtn(); //action to load first video ima.title.htmlText = list.childNodes[0].attributes.title; ima.desc.htmlText = list.childNodes[0].attributes.subTitle; videoPath = list.childNodes[0].attributes.video; ima.video.videoLoader(); } } // // //--------------------------------------------------------------------------------------------------------------------- //Some variables //--------------------------------------------------------------------------------------------------------------------- var itemSelected:Number = 1; var itemHeight:Number = 90; // // //--------------------------------------------------------------------------------------------------------------------- // Slide Buttonds Controls //--------------------------------------------------------------------------------------------------------------------- //hide buttons ima.btn_down._visible = true; ima.btn_up._visible = true; // // // ima.btn_down.onRelease = function() { itemSelected++; changePic(); }; ima.btn_up.onRelease = function() { itemSelected--; changePic(); }; // // function checkBtn() { if (e>4) { // ima.btn_up._visible = true; ima.btn_down._visible = true; // } } // // // //--------------------------------------------------------------------------------------------------------------------- // Function to change Image //--------------------------------------------------------------------------------------------------------------------- function changePic() { // if (itemSelected == 1) { ima.btn_up._visible = true; ima.btn_down._visible = true; // // } else if (itemSelected>=Math.round(e-3)) { ima.btn_down._visible = true; ima.btn_up._visible = true; // } else { ima.btn_down._visible = true; ima.btn_up._visible = true; } var myTween:Object = new Tween(ima.listLoader, "_y", mx.transitions.easing.Strong.easeOut, getProperty(ima.listLoader, _y), -((itemHeight*itemSelected)-itemHeight)+130, 14, false); // }