Remove a MovieClip located inside another MovieClip using AS from stage
===

I have two movieclips.

First movieclip is on the stage with an instance name: main

Second movieclip is inside the first movieclip, with an instance name: temp_bar

From the stage I want to remove the movieclip named "temp_bar"

main.removeChild(temp_bar) and removeChild(main.temp_bar) from stage doesn't work. 

Thanks in advance.