CamCanvas-API- icon indicating copy to clipboard operation
CamCanvas-API- copied to clipboard

ccCapture is not a function

Open cheluis opened this issue 16 years ago • 8 comments

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

cheluis avatar Oct 17 '09 18:10 cheluis

Hum. Have you installed it locally? Which flash you are using?

taboca avatar Nov 16 '09 20:11 taboca

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?

slowkow avatar Jan 16 '11 06:01 slowkow

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.

taboca avatar Jan 16 '11 16:01 taboca

Maybe you are trying to open the file from the file explorer not from an url (localhost/path/to/example) for example

cheluis avatar Apr 13 '11 03:04 cheluis

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

johol545 avatar Jul 22 '11 23:07 johol545

Thanks Cheluis.. it worked :)

nittinghai avatar Sep 04 '11 01:09 nittinghai

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();

eyeamME avatar Nov 14 '11 21:11 eyeamME

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

ghost avatar Dec 11 '11 10:12 ghost