// Для первого фрейма import flash.external.*; // и для кнопки on(release) { call_js = ExternalInterface.call("swapLayers", "lyr2"); }