1 Reply Latest reply on Nov 23, 2007 5:27 AM by yogi4yu

    Access of undefined property

    yogi4yu
      Hi all,
      I am a newbie to flex n flash stuff. I want to build simple one to one AV+text chat using FMS. I was able to recreate / modify some tutorials in AS3( text was not working though :( ). But when i tried to recreate them in flex, i was screwd up.
      Later i tried to run simplex mxml application , but is also giving "1120: Access to undefined " everything i define.
      Here is my code

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:VideoDisplay x="53" y="10" width="107" height="83" id="local_video"/>
      <mx:Script>
      <![CDATA[
      import flash.media.Video;
      import flash.display.Sprite;
      import flash.media.Camera;
      import mx.core.UIComponent;


      public var my_cam:Camera = new Camera();
      my_cam.getCamera();
      local_video.attachCamera(my_cam);

      ]]>
      </mx:Script>
      </mx:Application>

      what's wrong with it? i even tried to create video object using as3, but same result was there.