Code Monkey home page Code Monkey logo

Comments (8)

taboca avatar taboca commented on August 20, 2024

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

from camcanvas-api-.

slowkow avatar slowkow commented on August 20, 2024

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?

from camcanvas-api-.

taboca avatar taboca commented on August 20, 2024

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.

from camcanvas-api-.

cheluis avatar cheluis commented on August 20, 2024

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

from camcanvas-api-.

johol545 avatar johol545 commented on August 20, 2024

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

from camcanvas-api-.

nittinghai avatar nittinghai commented on August 20, 2024

Thanks Cheluis.. it worked :)

from camcanvas-api-.

eyeamME avatar eyeamME commented on August 20, 2024

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

from camcanvas-api-.

 avatar commented on August 20, 2024

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

from camcanvas-api-.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.