[Laszlo-user] unload resource

taocore taocore at laszlomail.com
Thu Sep 6 23:09:29 PDT 2007


LzView.unload() does not work. Try the code below:


<canvas debug="true">

  <dataset name="ds">

     <image src="cd_cover.jpg"/>

  </dataset>

  <simplelayout/>

  <view name="v" datapath="ds:/image/@src">

    <method name="applyData" args="d">

       this.setSource(d);

    </method>

  </view>

  <button>OK

     <method event="onclick">

        parent.v.unload();

     </method>

  </button>

</canvas>



taocore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070906/5748584e/attachment.html


More information about the Laszlo-user mailing list