I have the following property defined in my webcam as3 webcam class
public function get paused():Boolean
{
return (cam == null);
}
public function set paused(p:Boolean):void
{
if(p){picture.draw(vid,flip);cam = null;}
else cam = Camera.getCamera();
vid.attachCamera(cam);
}
Is it possible to access this from javascript? When I had it as a simple function it worked with:
ExternalInterface.addCallback("paused", paused);
But that wont compile after I changed it to properties.
"Error: Implicit coercion of a value of type Boolean to an unrelated type Function."
I'm an actionscript newbie so maybe there's something obvious I'm missing.