List Info

Thread: Accessing Overlays in JavaScript (works in Lingo)




Accessing Overlays in JavaScript (works in Lingo)
user name
2006-07-28 10:00:08
Hi all,

I can addOverlay and removeOverlay fine in JS, but
attempting to access
overlays in order to set scale or any other properties,
e.g.:

sprite(1).camera.overlay[5].scale = 0.5

works fine in Lingo but fails in JavaScript, stating that
"sprite(1).camera.overlay[5] has no properties";
 and, of course, the
documentation only offers examples of how to do this in
Lingo.  (The
addOverlay and removeOverlay functions work pretty the same
in both
languages.)

Anyone know how to do accomplish this in JS?  Am I
misintrepreting the
docs, or is this missing from the JS side or...?

Thanks!
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )