Hi ,
You should do it in the CreationComplete handler of ConnectSessionContainer and not applicationComplete.
Here is an example I tried that works for your case.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:rtc="AfcsNameSpace" layout="absolute" width="100%" height="100%" >
<mx:Script>
<![CDATA[
private function onCreationComplete():void
{
webCamera.startWebcam();
}
]]>
</mx:Script>
<rtc:AdobeHSAuthenticator id="auth" userName="XXXXX" password="XXXXX" />
<rtc:ConnectSessionContainer id="cSession" authenticator="" width="100%" height="100%"
roomURL="XXXXXXXXXXXXXXXXXXXx" creationComplete="onCreationComplete()" >
<mx:HBox top="10" right="10" left="10" bottom="10" verticalGap="6" horizontalAlign="center">
<mx:VBox width="100%" height="100%" >
<rtc:WebCamera width="100%" height="100%" id="webCamera" />
</mx:VBox>
</mx:HBox>
</rtc:ConnectSessionContainer>
</mx:Application>
Hope this helps.
Thanks
Hironmay Basu