0 Replies Latest reply on May 7, 2010 12:06 AM by Live today

    The image is not visible

    Live today Level 1

      I crate a project where I capture the image and show it in a different MXML component as an captured image.

       

      My first part works fine and I can view the video but unable to capture the image on the other component.

       

      I took a "Canvas" and try to add image over there,now I can see the cavvas border as well as I select border color and then also able to see the container but not able to view the captured image on that.

       

      I use addchild() function,and that works well I saw by debugging and also puting alert.But not able to understand what is missing.

       

       

      To add the image on the canvas I use the following code:


      private function takephoto():void{

                                       .

                                       .

                                       .


                snapshotHolder.addChild(scaledImage);
                       fro.photo.addElement(snapshotHolder);
                      fro.pic();

                                       .

                                       .

                                       .

      }


                   

      photo is the id of canvas, fro is the id of the canvas where I want to view the captured image.

       

      public function pic():void{
                      this.photo.visible=true;
                     }

       

      Can you please help me to solve my problem???