No worries re: lateness.

The reason I put in the ternary operator was because I get an ActionScript error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at LzApplication()
   at LzSpriteApplication()

...so I have to check for m before trying to access m.value. There's probably a better thing to put there instead of "undefined", though...

And I'll look into the state examples.  Thanks!

Max Carlson wrote:
Sorry for the late reply. For the state examples, you should be able to use applied/onapplied for constraints and to find out when the state was applied/unapplied.

Also, why did you have to add a ternary operator (? :) to tag_constraints.lzx?

J Crowley wrote:
Change 20080813-laszlo-2 by [EMAIL PROTECTED] on 2008-08-13 13:19:53 EDT
   in /home/laszlo/src/svn/openlaszlo/trunk-solidus
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: An assortment of bug fixes for doc examples

New Features:

Bugs Fixed: LPP-6778 - "Constraints in tags" example in Constraints fails with ActionScript error, SWF9
           LPP-6783 - Methods, Events, Attributes example 23 is broken
LPP-6785 - States example 2 fails with ActionScript error, SWF9 exclusive LPP-6786 - Compilation error in States example 5 LPP-6787 - Compilation Error in Unit Testing example 1, SWF9 exclusive

Technical Reviewer: max
QA Reviewer: henry
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Updated examples to be compliant with current/new ways
   of doing things.

Tests: Run each of the modified files and they should compile and
   have no ActionScript errors.

Files:
M      docs/src/developers/programs/states-$5.lzx
M      docs/src/developers/programs/states-$2.lzx
M      docs/src/developers/programs/states-$6.lzx
M      docs/src/developers/programs/databinding-$27.lzx
M      docs/src/developers/programs/methods-events-attributes-$23.lzx
M      docs/src/developers/programs/lzunit-$1.lzx
M      docs/src/developers/programs/tag_constraints.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080813-laszlo-2.tar





Reply via email to