SWiSHMax: Creating Buttons through script
Using this source you can create and remove buttons at runtime.
Home
Bookmark Tutorial
Remove Frame
Report Broken Link
Your browser doesn't support frames