sandhya
11-19-2007, 10:13 AM
I am trying to use import tag in 4.0.7
But i get the following error while loading the library
WARNING: null setters on «kernel/swf/LzSprite.as#11/16#1#0| LzSprite for Library build/test/testimportview.lzx.swf named testimportview» framesloadratio 0
WARNING: null setters on «kernel/swf/LzSprite.as#11/16#1#0| LzSprite for Library build/test/testimportview.lzx.swf named testimportview» loadratio 0
The code sample is
test.lzx
========
<canvas width="800" height="600" debug="true" >
<import href="testimportview.lzx" name="testimportview" stage="defer"/>
<view width="200" height="100" bgcolor="0xff00cc" name="testview" align="center">
<simplelayout axis="y" spacing="3"/>
<button text="load library" onclick="testimportview.load()"/>
</view>
</canvas>
testimportview.lzx
==============
<library>
<view width="100" height="200" bgcolor="yellow"/>
</library>
But i get the following error while loading the library
WARNING: null setters on «kernel/swf/LzSprite.as#11/16#1#0| LzSprite for Library build/test/testimportview.lzx.swf named testimportview» framesloadratio 0
WARNING: null setters on «kernel/swf/LzSprite.as#11/16#1#0| LzSprite for Library build/test/testimportview.lzx.swf named testimportview» loadratio 0
The code sample is
test.lzx
========
<canvas width="800" height="600" debug="true" >
<import href="testimportview.lzx" name="testimportview" stage="defer"/>
<view width="200" height="100" bgcolor="0xff00cc" name="testview" align="center">
<simplelayout axis="y" spacing="3"/>
<button text="load library" onclick="testimportview.load()"/>
</view>
</canvas>
testimportview.lzx
==============
<library>
<view width="100" height="200" bgcolor="yellow"/>
</library>