If a site that is made in html and currently has a good or high search engine listing is replaced by a completely flash website, will this effect the current search engine ranking? And If so, what must be done to avoid disturbing the current ranking?

Thank You