XML callback function(iteration of Squirrel Finder)

Hello,

Went through the Squirrel Finder tut and got it working fine, thanks! Now attempting to use the new found tech in a CDROM project where menus are built after runtime (96 frames after) from an XML object.

Problem (I think) is the XML object is being created on Frame1 and I need the functionality of the menus on Frame 96.

Tried a callback function but no pay dirt. Here is the code snipet…

//starts script for menus, where menus_xml is the XML object previously created.
menus_xml.load()

function DisplayInfo(){
parent_mc._visible = false; //is the movie clip instance name
sub_mc._visible = true; //is the movie clip instance name
sub_mc.sub_menu_txt.text = this.description_text;
}…

Then later, the function CreateMenu is called (same as the Squirrel)

//CreateMenu function
function CreateMenu(menus_xml){ //calles stored xml object “menus_xml”
// start with the first item in the XML
var items = menus_xml.firstChild.firstChild.childNodes;
// menu -> menu_items -> childNode:item
for (var i=0; i<items.length; i++) {…

When I run Debug, _level0 shows the XML object menus_xml and all the content is in there. No errors are output to the Output pane throughout the test movie process. The menu “visibility” seems to be working correctly too, though the firstChild menu is displaying but with no content, the sibling is not (correct behavior).

I guess the short question is how do I properly create a callback function for data (stored in the XML object _level0:menus_xml) later in the timeline.

Any thoughts are appreciate.

Thank you.
rwhite