hi! I'm just trying to get up and running with mobile devices by using the lynda.com tutorials. But I'm stuck because I keep getting an error that prevents the rest of the script from running. I'm on flashcs4, using device central, and the error is '{' expected on line 41 of the script, which is as follows...

Selection.setFocus(btnNews);

this.onKeyDown = function()
{
switch(Key.getCode())
{
case ExtendedKey.SOFT1 :
fscommand2 ("Quit");
break;
case ExtendedKey.SOFT2 :
this._parent.attachMovie("Status", "Status", 0);
break;
default :
trace("Pressed some key");
}
}
Key.addListener(this);

if( System.capabilities.hasSharedObjects)
{
SharedObject.addListener("soLastSelection", showLastSelection);
var soLastSelection:SharedObject = SharedObject.getLocal("soLastSelection");
}

function showLastSelection(argSo:SharedObject)
{
if( argSo.data.lastButton)
{
Selection.setFocus(argSo.data.lastButton);
}
else
{
Selection.setFocus(btnNews);
}
}

btnNews.onRelease = loadScreen;
btnUpcomingShows.onRelease = loadScreen;
btnEverythingElse.onRelease = loadScreen;

function loadScreen():void
{
var clipName:String = this._name;
clipName = clipName.substring( 3, clipName.length );
if(System.capabilities.hasSharedObjects)
{
soLastSelection.data.lastButton = this;
soLastSelection.flush();
}
this._parent._parent.attachMovie( clipName, clipName, 0);


}
I've accounted for all the curly braces, so I dont see what it could be. But if there is something obvious going on that I dont see, I would appreciate the input. Thanks!