There are a few different ways this could be done. This may be the easiest one to make a start with:
1. Divide up blue shape with hole into two shapes, like this: [ ]
2. Put each shape on a different layer (first lowest)
3. Create a new layer between these two layers
4. Draw orange bar on this layer --
Now you can animate that bar going through the opening
Hope this helps
J
You can't have everything. Where would you put it?
As janocli wrote, you can only do this with 3 layers. An partial orange bar on top, a blue open rectangle below that, and a partial orange bar on the bottom.
You could use masking, but it's a little tricky for newcomers to get their minds round it (I still have problems!), so I suggested something simpler. How would you do it?
You can't have everything. Where would you put it?
Anime Studio (and Moho) is a very powerful program, which allows you to create very sophisticated animations, with relative ease, provided you know what you want and how to do it.