# Loaded and embedded all the text, no idea now?

**URL:** <https://forum.kirupa.com/t/loaded-and-embedded-all-the-text-no-idea-now/186418>\
**Category:** Uncategorized\
**Created:** [April 21, 2006, 3:32am UTC](https://forum.kirupa.com/t/loaded-and-embedded-all-the-text-no-idea-now/186418 "2006-04-21T03:32:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimer](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@slimer](https://forum.kirupa.com/u/slimer)\
**Post date:** [April 21, 2006, 3:32am UTC](https://forum.kirupa.com/t/loaded-and-embedded-all-the-text-no-idea-now/186418/1 "2006-04-21T03:32:04Z")

</div>

hey there;  
i have a main file that other swf’s load into. in the loading swf’s i have dynamic text fields (set to dynamic) that i feed from a var. these fields are on top of mc buttons with rollovers. when i view the files on their own in the player they work perfectly. as soon as i try to preview them inside the main swf or in a browser, the rollovers arent working and the text is not there. the mouse icon does turn to a text image when i move across the area but thats about it. i looked aorund the forums and couldnt find anything. if there is a link someone knows of please send it?  
i have embedded the text while it was on the button in the supporting swfs. and in the main swf i did it through the “new font” on the library, and set the linkage to export.  
thanks  
heres my code…

stop();  
//create an array of button lables  
var lables\_array:Array = new Array(“shift jacket”,“msr tee”,“shift cap”,“shift beanie”,“fox hoody”,“fox cap”,“fox cap”,“msr meshback”,“msr hoody”,“tld logo cap”,“shift tshirt”);  
var cuttentBt:MovieClip; // variable to hold currrent bt were programming  
//loop through all the buttons and program them  
for(var i=0; i \< 11; i++){  
currentBt = \_root[“btn” + i]; //remember the current button  
currentBt.lable\_txt.text = lables\_array\* // set the lable on the button  
currentBt.onRelease = function(){//program the button  
\_root.resetButtons();  
this.gotoAndStop("\_selected");  
this.enabled = true;  
}  
}  
//reset =================================  
function resetButtons(){  
for(var i = 0; i \< 11 ; i++){  
currentBt = \_root[“btn” + i];  
currentBt.gotoAndStop("\_up");  
currentBt.enabled = true;  
}  
}

---

<div class="post-metadata">

**Author:** ![slimer](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@slimer](https://forum.kirupa.com/u/slimer)\
**Post date:** [April 22, 2006, 12:41am UTC](https://forum.kirupa.com/t/loaded-and-embedded-all-the-text-no-idea-now/186418/2 "2006-04-22T00:41:11Z")

</div>

no dice? ended up i didnt have any button actions put towards the actual button itself, just the artwork. so the rollovers are working but the text is still not there. i made the textbox and the rollover inside the same movieclip on different frames and just duplicated it time after time with the embedded textbox. does that make the textbox void on all the other duplications? im sure its something small and stupid… sorry to bug you guys

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [April 22, 2006, 4:25am UTC](https://forum.kirupa.com/t/loaded-and-embedded-all-the-text-no-idea-now/186418/3 "2006-04-22T04:25:45Z")

</div>

Take out all the references to \_root because since you loaded into another swf, its not the root anymore =)
