What version of flash are you using? YOu can try delegate to solve scoping issues but i kinda set it up in two ways as the comments suggest. Also, avoid references to root if possible.
import mx.util.Delegate; function buildNav(p_content:Array):Void { for (var i:Number = 0; i<numberOfItems; i++) { //attach the nav Item trace("done iteration "+i); var mc:MovieClip= navContainer.attachMovie("navItem", "navItem"+i, i); mc._y =i*15 mc._x = 0 //assign the title mc.navItemText =p_content[i].navItemText; // you could do this to correct scope mc.link=p_content[i].jobURL; mc.select=Delegate.create(this,onSelect);// this allows you to pass //params mc.onRelease=function(){this.select(this.link)} // or you could do something like : // mc.onRelease=function(){ getURL(this.link,"_blank"); } } } function onSelect(p_url:String){ getURL(p_url,"_blank"); } buildNav(contentItems);// build the nav passing in the data _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com