05 Jun 2014, 10:25
Generic-user-small

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?

06 Jun 2014, 16:59
Chris_strom_headshot_200_pragsmall

Chris Strom (85 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.

29 Jun 2014, 04:50
Generic-user-small

Thomas Koon (11 posts)

CHRIS SAVES THE DAY AGAIN!

  You must be logged in to comment