Hi,
I have a movieclip that is loaded from the main timeline. Within that mc I have a button that when clicked I want to pass a variable back to a function within the main timeline.
The below bold string is what I want to pass as a variable from the button click event in the mc to the function LoadGallery in the main timeline.
All of the above code resides in the main timeline (_root), I don't show a button click event here from the mc because I don't have one. All I need that button click event to do is to populate that bold string above.Code:Defines the xml path to pass to the function function loadGallery1(){ loadGallery("Flash/gallery1.xml"); } Calls LoadGallery function and recieves the xml path: function loadGallery(galName){ _root.xmlDataPath = galName; mcLoader.loadMovie("Flash/viewer.swf"); } Calls function to run it: loadGallery1();
Can anyone help me with this?
thanks




Reply With Quote