ccCapture is not a function
Hi. I'm trying to test your api on WinXp, and when I try to test the basic example, it thorws me a js error with this message: ccCapture is not a function. I'm so newb with flash, if you can help me I would appreciate it
thanks
Hum. Have you installed it locally? Which flash you are using?
I have the same problem. I just tried to open taboca-CamCanvas-API--300da2f/samples/basic/camcanvas.html. The flash works, but when I click the Capture to Canvas button, the below error is thrown.
Error:
Uncaught TypeError: Object #<an HTMLEmbedElement> has no method 'ccCapture'
captureToCanvascamcanvas.html:58
(anonymous function)camcanvas.html:69
onclick
I'm using:
- Ubuntu 10.04
- Google Chrome 9.0.597.45 beta
- Shockwave Flash 10.1 r102
Weird, because the example on your site (http://www.taboca.com/p/camcanvas/) works fine. I don't know what to do, any tips?
Maybe you need to host this in HTTP-based. It could be related to that. Can you give a try? hosting in a local web server? Maybe security related.
Maybe you are trying to open the file from the file explorer not from an url (localhost/path/to/example) for example
If you are running the flash locally (file://) the swf file has to be in the local-trusted sandbox. See http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html and http://www.javascriptkit.com/javatutors/trycatch.shtml
Thanks Cheluis.. it worked :)
I get the same issue. I have my files on my server and when I press the button on chrome, safari, and mozilla the image is captured. When I use internet explorer 9 the image isn't captured and I get an error on the console "SCRIPT438: Object doesn't support property or method 'ccCapture' " my javascript is function captureToCanvas() { flash = document.getElementById("embedflash"); flash.ccCapture(); } the error is in flash.ccCapture();
hi, I had the same issue, but when i put my code base in local host then it start working. i put my code in /var/www