I have two swf files. One displays results of a search, the other the specific information of a particular element from the search. The data for this is located in one XML document, using an attribute so i can select a specific elemtent. One swf loads the other. When I do this, I want to pass a string variable to the loaded swf to tell it to display the information on a particular element. My loading code is as follows...
function loadElement(event:MouseEvent):void
{
// load the element
myLoader.load(new URLRequest("element.swf"));
// add it to screen
this.parent.addChild(myLoader);
// remove search
this.parent.removeChild(this);
}
the variable i want to pass is a global String variable called "ref". How can i pass this, then access it from element.swf?
Thanks
Posted By: Steve, Dec 4, 16:21:42
Written & Designed By Ben Graves 1999-2025