basicly we use actionscript direct in button right ?

or we can put the script on frame action

now i wonder to know, can we put the button script to control specific button in flash from the xml or txt ?

just like load text from txt file, but now i need to control the button