Need help passing data into field?

hey peeps,

I managed to get some bit’s working, but just stuck on my syntax with trying to get the description from XML into a dynamic MC, it’s normally passed on the Onrelease() but am trying to load it in before hand ‘Check the code below’ i’m just getting true appearing in the dynamic field, if i trace it it’s displaying the right info from the XML, any ideas?


var thumb_spacing = 70;
// load variables object to handle loading of text
**var description_lv = new LoadVars();**
**description_lv.onData = function(raw_text){**
**currentThumb_mc.DJ.VenueN2.description_txt.text = raw_text;**
**}**
 
//-------------------------------------------------------
 
function GeneratePortfolio(portfolio_xml){
var portfolioPictures = portfolio_xml.firstChild.childNodes;
 
for (var i = 0; i < portfolioPictures.length; i++){
var currentPicture = portfolioPictures*;
var currentThumb_mc = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
currentThumb_mc._y = i * thumb_spacing;
currentThumb_mc.createEmptyMovieClip("thumb_container",0);
currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);
currentThumb_mc.createEmptyMovieClip("DJ",1);
 
//create DJ: clip
currentThumb_mc.DJ.attachMovie("DJ2","DJ3",2)
currentThumb_mc.DJ.DJ3._x = 56
currentThumb_mc.DJ.DJ3._y = -5
currentThumb_mc.DJ.DJ3.DJN_txt.text = currentPicture.attributes.title;
 
//create Venue: clip
currentThumb_mc.DJ.attachMovie("VenueN","VenueN2",3)
currentThumb_mc.DJ.VenueN2._x = 56
currentThumb_mc.DJ.VenueN2._y = 7
**currentThumb_mc.DJ.VenueN2.description_txt.text = description_lv.load(this.description); ---------**trying it here
 
currentThumb_mc.title = currentPicture.attributes.title;
currentThumb_mc.venue1 = currentPicture.attributes.venue1;
currentThumb_mc.image = currentPicture.attributes.image;
currentThumb_mc.description = currentPicture.attributes.description;
 
 
currentThumb_mc.onRelease = function(){
description_lv.load(this.description); -----------Normally here
_parent._parent.popupbox._x = 425;
_parent._parent.popupbox.gotoAndStop(1);
_parent._parent.popupbox.topN.gotoAndPlay(2);
_parent._parent.popupbox.line.gotoAndPlay(2);
}
 
}
 
}
// xml object for xml content (defines sources for selections)
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success){
if (success) GeneratePortfolio(this);
else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
// load
portfolio_xml.load("portfolio.xml");