I've never fully understood this example, and I think it's far more complicated than it has to be.

For one thing, the actual text "Blue1" looks like it's being styled by

    #tName {
    fgcolorName : "blue";
    }


<view id="vName" height="100" width="100" bgcolor="$style{'bgcolorName'}"/> <text id="tName" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40"
                fgcolor="$style{'fgcolorName'}">Blue1</text>


Indeed, the text is blue when compiled to DHTML. However, the displayed text is black in both SWF8 and SWF9. The same is true of the other two examples using CSS.

Further, since DHTML doesn't import fonts, the result when you
compile to DHTML wraps oddly. Simplifying the <text> fixes that problem:

<view id="vName" height="100" width="100" bgcolor="$style{'bgcolorName'}"/> <text id="tName" fontsize="30" fgcolor="$style{'fgcolorName'}">Blue1</text>

I also think it would be more clear if <text> were a child of <view> instead of a sibling so
the text appears in the view instead of to its right.

Here's a simplified version of your example (again, this works in DHTML but not SWF):


Attachment: color-$3.lzx
Description: Binary data




If I'm wrong about this, please enlighten me.

Lou

On Nov 13, 2008, at 3:19 AM, J Crowley wrote:

Change 20081113-laszlo-4 by [EMAIL PROTECTED] on 2008-11-13 02:16:21 EST
in /home/laszlo/src/svn/openlaszlo/trunk-liquid
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Color example 3 gives warnings.

New Features:

Bugs Fixed: LPP-7193 - Color example 3 gives warnings.

Technical Reviewer: [EMAIL PROTECTED]
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Fixed this per Lou's recommendation,
eliminating the redundant example.

Tests: Run the affected file -- it should now
be to specification per the comment on the
bug.

Files:
M docs/src/developers/programs/color-$3.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20081113-laszlo-4.tar



Reply via email to