Dreamweaver

Is there anyway to make dreamweaver work with actionscript files. I tried to but I cant find a fast way to preview or see compile errors without having to switch of with flash. Suggestions?