Search optimization

Hi all,
Whats the best way for a for optimizing flash site’s?? Now dont go saying create a html site then lol.
What i have done so far is used swliveconnect to link to pages within the flash from html links.


<a href="javascript:getPage('homer');" target="_self" class="link">Home</a>

Is it better to use direct url link instead of js to pass back var via swlive?
i know that doing direct url would require the page to be reloaded. If this is better for search bots then need’s must.
I have also setup a php script to create and update html pages on the site that releate to dynamic content via site cms.
Is there a way that when the search bots pick up the html pages when displayed in the likes of google and yahoo the link directs to the main site url and not the url the html pages are stored under?
Thanks