PDA

View Full Version : bug with replicator with 4.2.0.1 and swf9


pydyp
03-10-2009, 01:12 AM
<?xml version="1.0" encoding="ISO-8859-1"?>

<canvas title="Hello world" debug="true">

<dataset name="toto">
<root>
<data number="1"/>
<data number="2"/>
<data number="3"/>
<data number="4"/>
<data number="5"/>
</root>
</dataset>

<simplelayout axis="y"/>
<replicator dataset="toto" xpath="/root/data" pool="true">
<view height="22">
<simplelayout axis="x"/>
<edittext datapath="@number"/>
<button text="Delete" onclick="parent.datapath.deleteNode();"/>
</view>
</replicator>
<button text="Serialize" onclick="Debug.write(toto.serialize());"/>

</canvas>


If you try to delete all the lines, 2 lines will always stay "visible" even not in the dataset anymore.

And a simple question: why my button Serialize is before the replicator and not after?

Thanks all

Pierre-Yves DIENST

pydyp
03-12-2009, 10:43 PM
Should it be a bug entry?

senshi
03-13-2009, 10:26 AM
Your example works fine in swf9 with the nightly builds.

pydyp
03-13-2009, 08:57 PM
Thanks Senshi