In my experience 3.0 api works only on a web server...
He's not talking about hosting the API, he's talking about a sample not working.
I'm not talking about it either.
Here there is a thread about this issue
http://forums.arcgis.com/threads/61584-Sample-scripts-no-longer-work-since-upgrade-to-v3.0-of-the-AP...