small medium large xlarge

Generic-user-small
05 Jun 2014, 10:25
ASM Maklad (1 post)

on Section 1.3 Animating the Shapes: I added the code as mentioned and got this error : “ Uncaught TypeError: undefined is not a function preview_frame.html:58 animate “

I managed to isolate the troubled code and narrowed down to this line:

requestAnimationFrame(animate);

What seems to be the broblem here?

Chris_strom_headshot_200_pragsmall
06 Jun 2014, 16:59
Chris Strom (142 posts)

I’d have to see the code to be sure, but my guess would be that there is a typo on the line before it, which should be: function animate() {

If you can’t see a problem with it, paste a copy of the code in here (blank line, three tildes, new line, your code, new line, and three more tildes):

 
 ~~~
 function animate() {
   requestAnimationFrame(animate);
   // ...
 }
 ~~~

Or use the “Share” menu option and paste the URL in here.

Generic-user-small
29 Jun 2014, 04:50
Thomas Koon (13 posts)

CHRIS SAVES THE DAY AGAIN!

  You must be logged in to comment