Problem in doubleClickEnable

I am using
this code to enable double click

 (ImageContainer.getChildAt(i) as MovieClip).doubleClickEnabled =true;

But I am getting error Value is not a function