А вы случаем с языками программирования вообще знакомы или как?

Код AS3:
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
const flashVars:Object = stage.loaderInfo.parameters;
// ваша мутотень!!!
viewer_id = flashVars['viewer_id'];
// secret для генерации сигнатуры
secret = flashVars['secret'];
// id сессии
sid = flashVars['sid'];
// адрес API-сервиса
api_url = flashVars['api_url'];
auth_key = flashVars['auth_key'];
// вызываем функцию получения профиля пользователя, просматривающего приложение
// var VK:APIConnection = new APIConnection(flashVars);
VK = new APIConnection(flashVars);
//getProfile(viewer_id);
VK.api('getProfiles',{ uids: viewer_id,fields:'photo_big,sex,bdate,city,country,education'},onComplete, onError);
}