Hi list,
I want to extend the dataset class, here's a simplified example :
<canvas>
<class name="mydataset" extends="dataset" type="http"
onerror="Debug.error('While fetching', this.src, ':',
this.getErrorString());"
ontimeout="Debug.error('While fetching', this.src, ': timeout');"
ondata="Debug.write('Sucessfully fetched', this.src);"/>
<mydataset name="ds1" src="data.xml" request="true">
<method name="doStuff">
Debug.write('stuff done');
</method>
</mydataset>
<script>
new mydataset(canvas, {name:'ds2', src:'data2.xml', request:true});
</script>
</canvas>
It works fine, except that I get a compiler warning when using the 'mydataset'
tag (as opposed to creating it via script) :
> extenddataset.lzx:7:57: element "mydataset" not allowed in this context.
> Check whether it is spelled correctly, and whether a class with this name
> exists.
Using recent builds of legals/waflecone, swf7 target.
Any idea to shut the warning up ?
--
Vincent de Phily