Can swf pass variable to javascript

hi all,
i have a html page in this page i am using a swf file which have 4 button.on click of that button i want to change the html page imgae holder pic .please help me.bump