For making it visible all the time, try setting visibility="visibile".

   <test visibility="visibile" bgcolor="0x00FF00" y="50"
testattr="$path{'ds:/foo/text()'}" />


A value of "collapse" (the default) will make it invisibile if there is  a
datapath but  no match.

The new "visibility" attribute was supposed to be more CSS-like, but still
compatible
with the pre-4.0 behavior, I will check and see what the issue is...






On 6/17/07, Robin Sheat <[EMAIL PROTECTED]> wrote:

Using lps-4.0.2, tested under swf7,8 and dhtml, the box that should be
green
doesn't show up. As soon as I change the $path to something else (say,
remove
the '$' to make it just a string) it works. However, this kinda kills
binding. What's going on here?

<canvas width="100" height="100">

        <class name="test" extends="view" height="50" width="${
parent.width}">
                <attribute name="testattr" type="string" />
        </class>

        <test bgcolor="0xFF0000" />

        <dataset name="ds">
                <foo>bar</foo>
        </dataset>

        <test bgcolor="0x00FF00" y="50" testattr="$path{'ds:/foo/text()'}"
/>

</canvas>
--
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D




--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to