Tengo un problema con un swf que quiero cargar en otra pelicula de flash. Funciona perfectamente por separado pero al ejecutarlo desde la peli donde debe aparecer no funciona.
Os paso el código, porque seguro que es algo de las rutas, pero como soy nuevo en esto no lo controlo lo suficiente. Podéis echarme una mano? Gracias.
Código :
Código :
stop();
//-----------CONFIGURATION----------//
var filelink = "bio-esp.xml"; // this defines the XML that Flash will read for the text
var spacing = 60; // change this to alter the spacing between each post
//-----------END CONFIGURATION----------//
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
startheight=0
contmc.entry._visible = false;
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function(success) {
if (success) {
news.TheText.testtxt.styleSheet = cssStyles
dates.TheText.testtxt.styleSheet = cssStyles
}else{
news.TheText.testtxt.text= "CSS unable to load, contact webmaster.";
}
}
my_xml.onLoad = function(success:Boolean) {
if(success) {
tracknumber = my_xml.firstChild.childNodes.length;
for (x=0; x<tracknumber; x++) {
duplicateMovieClip(_root.contmc.entry, "entry"+x, _root.contmc.getNextHighestDepth());
clipRef = eval("_root.contmc.entry"+x)
setProperty(clipRef, _y, spacing+startheight);
clipRef.titletxt.text = my_xml.firstChild.childNodes[x].childNodes[0].firstChild.nodeValue;
clipRef.artisttxt.text = my_xml.firstChild.childNodes[x].childNodes[1].firstChild.nodeValue;
clipRef.desctxt.text = my_xml.firstChild.childNodes[x].childNodes[2].firstChild.nodeValue;
startheight = clipRef._y + clipRef.desctxt.textHeight;
}
nextFrame();
} else {
trace("Unable to load XML");
}
}
my_xml.load(filelink); 