Latest OpenLaszlo Reference

If you’re not already using it, I’d highly recommend you start using the nightly builds of the OpenLaszlo Reference. You can either download a nightly build of OpenLaszlo that contains it, or use the hosted live copy. Unless you really need to read it offline, use the hosted version.

This trunk version of the reference looks similar to the old OpenLaszlo 3.x reference, but the doc generation tools have been rewritten from scratch, and the standards have been revised. It’s more accurate, more events are listed, the appearance is cleaner and the categories have been simplified. Here’s how the new attribute categories work:

  • initialize-only: You can only set this attribute once, when initializing the object. It doesn’t matter if you use a tag or script to initialize the object. e.g. name, id.
  • read-write: This is an attribute that you can change at run-time (via a setter method or the generic setAttribute() setter method, or a constraint). e.g. x, width.
  • readonly: You can not set this attribute at init time (either in a tag or in script), but you can read it using JavaScript (using dot-syntax), or inside a constraint. e.g. framesloadratio, totalframes.

Note that if you download OL 4.0.9.1 (the current stable version), you won’t get the latest reference; instead you’ll get the old 4.0 one, that’s worse than the 3.x version.

Leave a Reply

Your email address will not be published. Required fields are marked *