deleting empty lines doesn't switch between containers
So here's a weird problem I'm having. I'm basically working on an editor in Flash. I start out with one container and the user can write up text. Then, when the text height in that container reaches the last line, I create a new container. When the first container is full, it correctly jumps to the next container. The same goes for when a user deletes from the second container, it goes back to the first container. These containers represent pages.
Now the problem lies with deleting lines from the 2nd container and jumping back to the first one. All works well IF there are characters on the last line of the 1st container. If, however, I have 5 empty lines (just line breaks on them) in the first container, and then I get to the first character in the 2nd container, pressing Backspace doesn't do anything. The flow composer correctly decreases the number of lines, but the cursor only goes in the 1st container when it meets a line that has characters on it. Hitting the Backspace 3 times for example, keeps the cursor on the first line in the 2nd container. If I click on the last line in the 1st controller, the cursor jumps to the 3rd from last line (where the cursor should have ended up after pressing backspace 3 times). Trying to click back on the 2nd container, I can no longer put the cursor there as there are no lines in it.
So my question is, why doesn't the cursor jump to the 1st container when clearly the composer knows that there are no lines in the 2nd container anymore?
