Flash components inherit names from components on previous frames

Title pretty much says it all. I navigate to new frame, drag a component button from library to stage, give it an unique name, but when i want to access it via AS, then it says object not found etc. So i checked the names of all objects on stage. It turned out button dont have the name i gave it from properties panel. Instead the name of button, which is located on the frame i navigated from.