unexpected token: preload

edited May 2014 in JavaScript Mode

I found an old sphere texture example here and I am trying to make it work in javascript mode. When I don't include the line

@pjs preload = "MercatorMap.jpg"`

at the begging the image does not load, and when I do include it I get an "unexpected token: preload" error. Has there been an undocumented change in preloading images, or is there something else I'm missing? Thank you, Kelson Ball

Answers

Sign In or Register to comment.