I'm not sure why that's failing - it might be a compiler issue with new
Stats()...
Note that there are some components built into OL already that may give
you what you want (minus the nifty graphs):
<frametimer/>
<memorymonitor/>
Regards,
Max Carlson
OpenLaszlo.org
On 3/9/10 10:51 PM, ason wrote:
Hi all,
I am trying to execute Flash's Stats on an OpenLaszlo app.
But the code does not work.
I must say that I dont know if this works or not.
Just a test.
But any ideas?
<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee">
<view>
<switch>
<when property="$as3">
<passthrough>
import flash.display.*;
import net.hires.debug.*;
</passthrough>
</when>
</switch>
<handler name="oninit"><![CDATA[
var vr = this.getMCRef();
vr.addChild(new Stats());
]]></handler>
</view>
</canvas>
minamotonoason(ason)
Japanese OpenLaszlo User