                 trace(err.name + " " + err.message);
             }
 
-            if (ExternalInterface.available) {
-                ExternalInterface.call('cameraman._tookPhoto');
-            }
+            this.callback('tookPhoto');
         }
 
         public function dropPhoto() : void {

            videoface.height = cam.height;
        }

        public function takePhoto() : void {
            // freeze image
            try {

                trace(err.name + " " + err.message);
            }

            this.callback('droppedPhoto');
        }

        public function sendPhoto() : void {
